Pro tip for optimising images before uploading them somewhere like fedi so the recipient(s) don’t have to download 12 MBs of unimportant detail
magick input.jpg -resize 1000x resized.jpg du input.jpg resized.jpg # see the size difference jpegoptim -s --all-progressive -m70 resized.jpg du input.jpg resized.jpg # see the size differenceResizing the image does most of the heavy lifting. Very few people will blow it up fullscreen on a 4k display; 1000px wide is usually sufficient. The jpegoptim command strips metadata (such as location), turns it into a progressive JPG so it loads more pleasantly, then reduces the image detail by 30%
For PNGs, replace .jpg with .png and the jpegoptim command with
optipng -o6 -strip all resized.pngIt strips metadata and brute-forces common compression settings to find which one is more efficient.
Friends don’t let friends waste bandwidth! :akko_thumbup: