Tag Info

New answers tagged

2

ImageMagick tools convert or mogrify will do the job. You can get them via your package manager or the source/rpms here: http://www.imagemagick.org/script/binary-releases.php#unix Basic usage: $ mogrify -resize 820x *.jpg If you need recursion: find . -name '*.jpg' -execdir mogrify -resize 820x {} \;


3

Use convert to do the job. convert -resize "1024x768>" origIMG destIMG will resize origIMG to 1024x768 keeping aspect ratio and resizing only if image is greater than 1024, storing the new image in destIMG. After that you can move the destIMG to the original. Use a loop to travel through all your directories or use find.


1

You may try whether the picture data contain EXIF Information; in that case you can use exiftool, e.g.: $ exiftool -S dscn0986.jpg dscn0986_th.jpg | grep ^Image ImageWidth: 1024 ImageHeight: 768 ImageSize: 1024x768 ImageWidth: 128 ImageHeight: 128 ImageSize: 128x128


0

Depends on the system you are running of course. In Linux, you should be able to do 'file ' and see the size in the output which you can then parse and make decisions from.


2

Use imagemagick or graphicsmagick: identify -format "%w×%h\n foo.png" (imagemagick) or gm identify -format "%w×%h" clipart-playback-buttons-d1e5.png (graphicsmagick, that adds a newline by default) Those print width×height, e.g. 85×75 or 4328×4278. Identify can show you other information of the image, too.


0

TBO can do this, although it hasn't been updated in awhile. It isn't available from the official Ubuntu repositories but can be installed from GetDeb


0

You can only turn montage shadow on or off (it doesn't accept color, fuzziness & offset). Mogrify supports more shadow options, though... (Thanks don_crissti)



Top 50 recent answers are included