4337 links
  • Arnaud's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
page 1 / 1
1 results tagged bulk x
  • Smoking Linux » HowTo – Batch Image Resize on Linux

    Suppose you want resize every your photos to put it on web. As you know, you can’t upload your photos on a webpage with the highest resolution because a web gallery became inaccesible and too slow to load. Suppose that you have a folder containing every photos of you holidays and you want resize it at 640 of width mantaining original aspect ratio. To make a resize there are many tools but I suggest a command line tool called “mogrify”. This tool will be installed with ImageMagick Libraries, so you have to install ImageMagick on you Linux.

    I assuming that you have installed Ubuntu Gutsy:

    sudo apt-get install imagemagick

    After ImageMagick installation, you can use mogrify. For example, I have a folder called “holidays” locate in “/home/user/photos/“. I have to change my path, make a thumbs folder and copy original images on “thumbs folder”. After that I can start image resizing process:

    cd /home/user/photos/holidays
    mkdir thumbs
    cp /home/user/photos/holidays/* /home/user/photos/holidays/thumbs/
    cd thumbs
    
    mogrify -resize 640 *.jpg

    Now I can see on “/home/user/photos/holidays/thumbs/” every my image file resized to 640 of width. If you want force resizing to a particulare size without mantaining original aspect ratio you could change mogrify options:

    mogrify -resize 640×480! *.jpg

    Good Job Man! I hope this howto will be useful for you.

    December 12, 2012 at 4:56:04 PM GMT+1 - permalink - archive.org - http://www.smokinglinux.com/tutorials/howto-batch-image-resize-on-linux
    bulk image resize
Links per page: 20 50 100
page 1 / 1
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation