I searched everywhere but couldn't find an answer to this. I would like to output all images of a folder in 50Kb exactly and maintain the original aspect ratio.
I tried ImageMagick
and resizing to 250x250 e.g but it is not working for me, what it does is change the first dimension and adapt the other, so output images have not the same size.
for image in `ls $@*.jpg`; do
mogrify "${image}" -resize 250x250 "${image}"
done
How do it? Thanks