Monday, October 24, 2011

Batch resize images to be uploaded to picasa web album

Probably you know that images smaller than 2048px on the biggest dimension does not count for the occupied space on picasaweb if you are a member of google plus (if you are no I think the limit is 800px).
Accordingly, if you want to resize some photos you can use imagemagick
mogrify -resize '2048x2048' img.jpg
with this command imagemagick will resize the image to fit the 2048x2048 square: we will obtain the longer dimension to be 2048 and the shorter a number smaller than 2048 to mantain the aspect ratio.