Re: [Gimp-user] Scaling image via the command line
Am Sonntag, den 25.01.2009, 12:05 +1100 schrieb David Hodson: On Sat, 2009-01-24 at 11:43 -0700, Sanjay Murthy wrote: I wish to scale the 6MP images from my camera to a smaller size say 600x800 to be loaded into my phone. How can this be done via command line ? What are the switches (and arguments) to be used ? I have hundreds of images to be scaled. doing this with the GUI is impractical. No it isn't. Get David's Batch Processor plugin for GIMP at http://members.ozemail.com.au/~hodsond/dbp.html Or have a look at Phatch: http://photobatch.stani.be/ Regards, Tobias ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
[Gimp-user] Scaling image via the command line
Hi, I wish to scale the 6MP images from my camera to a smaller size say 600x800 to be loaded into my phone. How can this be done via command line ? What are the switches (and arguments) to be used ? I have hundreds of images to be scaled. doing this with the GUI is impractical. I have GIMP on Linux and Windows. I am reasonable linux literate . I work on it for a living. Thanks Sanjay EMAILING FOR THE GREATER GOOD Join me If you have Python installed, I just uploaded a plug-in to registry.gimp.org for batch creating thumbnails from within GIMP. Name: WebThumb -- Steven W. ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] Scaling image via the command line
Hi Tobias, gimp-users, I wish to scale the 6MP images from my camera to a smaller size say 600x800 to be loaded into my phone. How can this be done via command line ? What are the switches (and arguments) to be used ? I have hundreds of images to be scaled. doing this with the GUI is impractical. A possible solution: ImageMagick - Checkout convert, display, identify http://www.imagemagick.org/script/convert.php http://www.imagemagick.org/script/command-line-processing.php#geometry Here's a *sample* Bash script. Perhaps something like this will work in your situation. Read up on the options for resizing (see links above). Hope this helps. # # Resize images in current directory using ImageMagick convert command declare -r ImageExt=jpg declare -r Tag=600x800 declare -r NewSubDir=resized-${Tag} declare -r IMResizeOpt=600x800! # Create directories if not already present if [ ! -d ${NewSubDir} ]; then printf Make subdirectory %s\n ${NewSubDir} mkdir ${NewSubDir} fi # Loop through all files in current folder for theCurrentFile in *.${ImageExt}; do theNewFile=${NewSubDir}/${theCurrentFile%%.${ImageExt}}-${Tag}.${ImageExt} if [ ! -e $theNewFile ]; then printf Converting '%s' to '%s'\n ${theCurrentFile} ${theNewFile} convert -resize ${IMResizeOpt} ${theCurrentFile} ${theNewFile} fi done Maybe a modification of this; == #!/bin/bash for img in *.jpg do convert -sample 25%x25% $img thumb-$img done == ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
[Gimp-user] Scaling image via the command line
Hi, I wish to scale the 6MP images from my camera to a smaller size say 600x800 to be loaded into my phone. How can this be done via command line ? What are the switches (and arguments) to be used ? I have hundreds of images to be scaled. doing this with the GUI is impractical. I have GIMP on Linux and Windows. I am reasonable linux literate . I work on it for a living. Thanks Sanjay EMAILING FOR THE GREATER GOOD Join me___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] Scaling image via the command line
On Sat, 2009-01-24 at 11:43 -0700, Sanjay Murthy wrote: I wish to scale the 6MP images from my camera to a smaller size say 600x800 to be loaded into my phone. How can this be done via command line ? What are the switches (and arguments) to be used ? I have hundreds of images to be scaled. doing this with the GUI is impractical. No it isn't. Get David's Batch Processor plugin for GIMP at http://members.ozemail.com.au/~hodsond/dbp.html -- David ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] Scaling image via the command line
I would use ImageMagick for this instead of the GIMP. $ convert -resize 600x800 source-image dest-image or $ mogrify -resize 600x800 image-to-change-in-place That's width x height, btw, which would usually be 800x600 instead of 600x800... On Sat, Jan 24, 2009 at 8:05 PM, David Hodson hods...@ozemail.com.au wrote: On Sat, 2009-01-24 at 11:43 -0700, Sanjay Murthy wrote: I wish to scale the 6MP images from my camera to a smaller size say 600x800 to be loaded into my phone. How can this be done via command line ? What are the switches (and arguments) to be used ? I have hundreds of images to be scaled. doing this with the GUI is impractical. No it isn't. Get David's Batch Processor plugin for GIMP at http://members.ozemail.com.au/~hodsond/dbp.html -- David ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user -- Mark J. Reed markjr...@gmail.com ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] Scaling image via the command line
r-Encoding: quoted-printable Hi, I wish to scale the 6MP images from my camera to a smaller size say 600x800 to be loaded into my phone. How can this be done via command line ? What are the switches (and arguments) to be used ? I have hundreds of images to be scaled. doing this with the GUI is impractical. I have GIMP on Linux and Windows. I am reasonable linux literate . I work on it for a living. Thanks Sanjay Maybe something like this, http://linux.softpedia.com/get/Multimedia/Graphics/BIRT-37784.shtml Another tool is Imagickmagic Owen ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user