Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scale image to specific file size
#4
If you want to try ImageMagick (IM)

Digging out my IM notes. One way is using the mogrify command (In Windows now magick mogrify)

mogrify can be dangerous, it overwrites files in place. Always work with copies. Keep the originals safe.

Two stages, first remove any metadata

Code:
magick mogrify -strip *.jpg

In linux the terminal looks like this (no magick needed in linux): https://i.imgur.com/ehAfTrJ.jpg
Next resize to maximum 800 pix but keeping aspect ratio and define a file size around 70 KB

Code:
magick mogrify -resize "800>" -define jpeg:extent=70kb *.jpg

screenshot: https://i.imgur.com/N2IBT54.jpg

Worth a try, best place to ask is IM forum https://www.imagemagick.org/discourse-server/ users section
Reply


Messages In This Thread
RE: Scale image to specific file size - by Ofnuts - 09-15-2017, 04:33 PM
RE: Scale image to specific file size - by rich2005 - 09-15-2017, 06:28 PM

Forum Jump: