I found this command
Resize an image with improved quality:
$ convert input.png -colorspace RGB +sigmoidal-contrast 11.6933 \
-define filter:filter=Sinc -define filter:window=Jinc -define filter:lobes=3 \
-resize 400% -sigmoidal-contrast 11.6933 -colorspace sRGB output.png
But I need something else, I need a command to decrease the image quality.
For example if the input.png is 100pix x 100pix resolution and 100KB size
I want to make an output.png image with the same resolution but lower quality, let say 50KB
how can I do this ?
(My original problem is the limitation to 50KB images, and all I want to do is convert all my images below 50KB size).
I hope this is easy to solve but could not figured out on my own.
Thanks
Simply convert the image to a lower sampling rate. ImageMagick has an article on Transformations that cover a few options.
Results: