Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Script to resize images

    Reply
    gandotratushar | # 1 | 2010-01-10, 17:39 | Report

    Hello everyone, I am attaching a script which can be handy if you want to resize any existing image to any other size (this should come handy if you want to use it for N900). This script is dependant on imagemagick package.
    Hope you all find this one helpful

    also it may not work if the file name has spaces in it.. so there is another script to replace the spaces in the filename with underscores.

    run the rename script first and then you can run the resize script

    Edit | Forward | Quote | Quick Reply | Thanks
    Attached Files
    File Type: zip rename_resize.zip (2.7 KB, 132 views)

    Last edited by gandotratushar; 2010-01-11 at 07:14. Reason: updated script
    The Following User Says Thank You to gandotratushar For This Useful Post:
    Lacedaemon

     
    gandotratushar | # 2 | 2010-01-10, 17:42 | Report

    to use this script, put it in the same directory where all the images are and run "./resize.sh *.jpg" or use "./resize.sh *.*"
    When done, it will create a new folder with the resized images and will not touch the original ones

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by gandotratushar; 2010-01-10 at 17:43. Reason: typo

     
    Lacedaemon | # 3 | 2010-01-10, 17:54 | Report

    That sounds clever, but wouldn't that stretch the image after resize?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    gandotratushar | # 4 | 2010-01-10, 18:07 | Report

    Originally Posted by Lacedaemon View Post
    That sounds clever, but wouldn't that stretch the image after resize?
    thanks
    yes it stretches the images so i would suggest to take the image of a higher resolution (i use 1920 X 1200) and convert them and see which one suits better

    Edit | Forward | Quote | Quick Reply | Thanks

     
vBulletin® Version 3.8.8
Normal Logout