Andries filmer

Feel free with Open Source Software

Andries Filmer - Internet professional sinds 1996.
Ik ben groot voorstander van Free- en Opensource Software (FOSS) en laat deze site jouw overtuigen waarom dit goed is.
Home Over deze website Kennisbank Ezelsoren Freelancer Online gereedschap

Resize Images on the commandline

Index
  1. Resize images
  2. Auto orientation
  3. Crop images
  4. Nautilus
  5. Comments

Quick commandline tips for Images.

Some examples, but you can do much more with convert then resize see man convert for more options

Resize images

 sudo apt-get install imagemagick
 find . -maxdepth 1 -iname "*.jpg" -print0 | xargs -0 -l -i convert -resize 1024x768 -quality 50 -strip {} /tmp/output/{}

Auto orientation

If you use ImmageMagick to make a fotoalbum or make a overview with thumbs you need to set the orientation first.

 cd /to/dir/with/fotos
 for i in *.JPG;do convert -auto-orient $i $i;done

Crop images

 convert image.jpg -gravity Center -crop 50% re_image.jpg

Nautilus

We can also use Nautilus extention which uses ImageMagick.

 sudo apt-get install nautilus-image-converter

Login out/in (or killall nautilus) to get the new options when right-click on a image in Nautilus Now you can resize or scale images with a mouse ;)

This page is created on 2009-06-06 and updated on 2011-02-23

I appreciate if you give some comment about this page. Please go ahead.
Your e-mailaddress will not be published it is only to contact you (if needed).

 
Your name
Your e-mailaddress
To prefent robots to use this form I ask you kindly to type the next characters in the input field.
 

 


Mijn Curriculum vitae | De content op deze website heeft de Creativecommons 3.0 licentie | © 2011
Andries Filmer | http://andries.filmer.nl | andries@filmer.nl | © 2011
Deze website wordt gerealiseerd met Free- en Open Source Software: | | | | | |