Convert raster data between different formats. More information: https://gdal.org/programs/gdal_translate.html.
gdal_translate -of JPEG path/to/input.tif path/to/output.jpeg
gdal_translate -a_srs EPSG:4326 path/to/input.tif path/to/output.tif
gdal_translate -outsize 40% 40% path/to/input.tif path/to/output.tif
gdal_translate path/to/input.tif path/to/output.tif -of COG -co COMPRESS=LZW