Wednesday, February 19, 2014

Tip Of The Day (5) : Batch Script to resize pictures in linux (Nemo)

How to batch resize pictures using Nemo/Nautilus scripting


Don't forget to read the other tips:
  • Tip Of The Day (5) : Batch Script to resize pictures in linux (Nemo)

  • Tip Of The Day (4) : Bulk renaming files in linux
  • Tip Of The Day (3) : Linux Mint 13 and Petra Backports
  • Tip Of The Day (2) : Batch resizing pictures in linux
  • Tip Of The Day (1) : Screenshot 


  • See how to batch resize here


    Open your Nemo scripts folder /home/user_name/.gnome2/nemo-scripts

    Create a new file, and paste the following :


    Save and make it as executable, then enjoy ! 

    Go to the folder where pictures you need to resize are, right click in a blank space > scripts > resize

    For Custom pic size, edit this line : 
    for file in *.JPG; do convert $file -resize 800x600 resized-$file;done
    following my previous tip