I want to resize image in linux and want this image to be convert to below the threshold value (certain limit).
eg. Threshold Limit: 500Kb, Image dimension: 100×100
Output image will be in 100×100 dimension and size below 500Kb or exactly 500kb (Not more than 500Kb)
Appreciate your help.
One possible solution would be to use Imagemagick inside a shell script and do the following: