Sorry for my english.
Actually, I'm using 2 command line to resize images (jpg to jpg or png to jpg depend of original type).
Code: Select all
mogrify -resize 50% /home/repository_destination *.jpg
Code: Select all
convert -background white -flatten -resize 50% img_src.png img_dest.jpg
2) Is it possible to reduce size not with 50% but with a max size like 250ko (IMPORTANT : If origin size is > 250ko for example 5Mo, the new image must be 250ko but if origin size is < 250ko for example 200ko, the new image must be the same 200ko
This is for a website, I need to have max 250ko image (quick loading) but if origin Image is small I don't want to resize it to stay beautifull
And if it's possible to have just one command for png and jpg I take it
Thank's a lot !!!