Looking for a rather easy cli way to resize images. Any suggestions? -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Saturday 2006-04-22 at 19:16 -0400, Ken Schneider wrote:
Looking for a rather easy cli way to resize images. Any suggestions?
ImageMagick - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFESry4tTMYHG2NR9URAu0hAJ0YmLwgHY8uOfWI+CLWyuKc9tKxuwCdHU5K fOnmOZ5c73W+amASRkj/2Vo= =cUWs -----END PGP SIGNATURE-----
On Saturday 22 April 2006 19:16, Ken Schneider wrote:
Looking for a rather easy cli way to resize images. Any suggestions?
-- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
imagemagik ----> convert ?? -- +----------------------------------------------------------------------------+ + Bruce S. Marshall bmarsh@bmarsh.com Bellaire, MI 04/22/06 19:46 + +----------------------------------------------------------------------------+ "Whoso diggeth a pit shall fall therein." - Paraphrasing the Book of Proverbs
On Sat, 2006-04-22 at 19:46 -0400, Bruce Marshall wrote:
On Saturday 22 April 2006 19:16, Ken Schneider wrote:
Looking for a rather easy cli way to resize images. Any suggestions?
imagemagik ----> convert ??
I have this package installed (ImageMagick-6.2.3-4.2) but when I try to run imagemagik I get the "command not found" error. Using pin on the installed package I found the command convert and used that as follows: convert -resize 640x480 oldname.jpg newname.jpg I guess I'll need to write a small script as it will not allow wildcards. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
On Saturday 22 April 2006 23:43, Ken Schneider wrote:
I guess I'll need to write a small script as it will not allow wildcards.
Hi Ken, Like sox for audio, ImageMagick is a collection of discreet, specialized image processing commands bundled together into a package. I haven't used it in a while for batch processing (I think I created several sets of thumbnails, once) but I don't think I had to write a script. Have you been here?: /usr/share/doc/packages/ImageMagick/index.html regards, Carl
I suggest you have a look at this article Graphics from the command line Flip, size, rotate, and more with ImageMagick http://www-128.ibm.com/developerworks/linux/library/l-graf/ -- Regards, Graham Smith
On Sun, 2006-04-23 at 00:12 -0400, Carl Hartung wrote:
On Saturday 22 April 2006 23:43, Ken Schneider wrote:
I guess I'll need to write a small script as it will not allow wildcards.
Hi Ken,
Like sox for audio, ImageMagick is a collection of discreet, specialized image processing commands bundled together into a package. I haven't used it in a while for batch processing (I think I created several sets of thumbnails, once) but I don't think I had to write a script. Have you been here?:
/usr/share/doc/packages/ImageMagick/index.html
regards,
Carl
Thanks Carl and all for the help. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Saturday 2006-04-22 at 23:43 -0400, Ken Schneider wrote:
I have this package installed (ImageMagick-6.2.3-4.2) but when I try to run imagemagik I get the "command not found" error. Using pin on the installed package I found the command convert and used that as follows:
Just try "man imagemagick" (note the spelling typo) and you will see all its apps. If you use info or pinfo you can navigate them.
convert -resize 640x480 oldname.jpg newname.jpg
I guess I'll need to write a small script as it will not allow wildcards.
Yes, it does; read the man: ] To create a visual image directory of all your JPEG images, use: ] ] convert 'vid:*.jpg' directory.miff You just have to quote them so that the shell does not see the wildcards. Remember shell expansion... - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFES3MmtTMYHG2NR9URAj+tAJ49bPH3Rkz1sdnMgW+3tAwSPr1vugCdGw5L I7vMPcNL119Blq5JYKelVnU= =Mpa/ -----END PGP SIGNATURE-----
On Sun, 2006-04-23 at 14:29 +0200, Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Saturday 2006-04-22 at 23:43 -0400, Ken Schneider wrote:
I have this package installed (ImageMagick-6.2.3-4.2) but when I try to run imagemagik I get the "command not found" error. Using pin on the installed package I found the command convert and used that as follows:
Just try "man imagemagick" (note the spelling typo) and you will see all its apps. If you use info or pinfo you can navigate them.
convert -resize 640x480 oldname.jpg newname.jpg
I guess I'll need to write a small script as it will not allow wildcards.
Yes, it does; read the man:
] To create a visual image directory of all your JPEG images, use: ] ] convert 'vid:*.jpg' directory.miff
You just have to quote them so that the shell does not see the wildcards. Remember shell expansion...
I ended up using this: for I in `ls -1 *.JPG`;do convert -resize 640x480 ${I} ${I};echo ${I};done Which worked great, converted about 200 photos in less then a minute. Didn't care about over writing as the originals are on a CD. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
On Sunday 23 April 2006 09:18, Ken Schneider wrote:
I ended up using this:
for I in `ls -1 *.JPG`;do convert -resize 640x480 ${I} ${I};echo ${I};done
Which worked great, converted about 200 photos in less then a minute. Didn't care about over writing as the originals are on a CD.
Is that GPL? :-) Carl
On Sun, 2006-04-23 at 09:27 -0400, Carl Hartung wrote:
On Sunday 23 April 2006 09:18, Ken Schneider wrote:
I ended up using this:
for I in `ls -1 *.JPG`;do convert -resize 640x480 ${I} ${I};echo ${I};done
Which worked great, converted about 200 photos in less then a minute. Didn't care about over writing as the originals are on a CD.
Is that GPL? :-)
Carl
Hadn't thought about it, but ya why not. The results can be seen here: http://www.sailing-singles.net/album/index.html -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
Ken Schneider wrote:
On Sun, 2006-04-23 at 09:27 -0400, Carl Hartung wrote:
On Sunday 23 April 2006 09:18, Ken Schneider wrote:
I ended up using this:
for I in `ls -1 *.JPG`;do convert -resize 640x480 ${I} ${I};echo ${I};done
Which worked great, converted about 200 photos in less then a minute. Didn't care about over writing as the originals are on a CD. Is that GPL? :-)
Carl
Hadn't thought about it, but ya why not. The results can be seen here: http://www.sailing-singles.net/album/index.html
well... do you have room on your boat :-) jdd -- http://www.dodin.net http://dodin.org/galerie_photo_web/expo/index.html http://lucien.dodin.net http://fr.susewiki.org/index.php?title=Gérer_ses_photos
On Sun, 2006-04-23 at 17:27 +0200, jdd sur free wrote:
Ken Schneider wrote:
On Sun, 2006-04-23 at 09:27 -0400, Carl Hartung wrote:
On Sunday 23 April 2006 09:18, Ken Schneider wrote:
I ended up using this:
for I in `ls -1 *.JPG`;do convert -resize 640x480 ${I} ${I};echo ${I};done
Which worked great, converted about 200 photos in less then a minute. Didn't care about over writing as the originals are on a CD. Is that GPL? :-)
Carl
Hadn't thought about it, but ya why not. The results can be seen here: http://www.sailing-singles.net/album/index.html
well... do you have room on your boat :-)
If you ever visit my area I'll make sure there is room for you. Actually going to look at 33' (10.7m) on Tuesday. Almost time to pack it up for the summer here as it can be very dangerous to sail here in the summer, ever sail in a hurricane?, not fun. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
Ken Schneider wrote:
If you ever visit my area I'll make sure there is room for you.
thanks, if ever I come from france :-) Actually
going to look at 33' (10.7m) on Tuesday. Almost time to pack it up for the summer here as it can be very dangerous to sail here in the summer, ever sail in a hurricane?, not fun.
I was in a hurricane in west indies, better not be at sea :-) thanks :-) jdd -- http://www.dodin.net http://dodin.org/galerie_photo_web/expo/index.html http://lucien.dodin.net http://fr.susewiki.org/index.php?title=Gérer_ses_photos
On Sun, 2006-04-23 at 12:46 -0400, Ken Schneider wrote:
If you ever visit my area I'll make sure there is room for you. Actually going to look at 33' (10.7m) on Tuesday. Almost time to pack it up for the summer here as it can be very dangerous to sail here in the summer, ever sail in a hurricane?, not fun.
Not unless your a fan of Spencer Tracy in Captains Courageous and doing a remake. -- ___ _ _ _ ____ _ _ _ | | | | [__ | | | |___ |_|_| ___] | \/
On Sunday 23 April 2006 11:20, Ken Schneider wrote:
On Sun, 2006-04-23 at 09:27 -0400, Carl Hartung wrote:
On Sunday 23 April 2006 09:18, Ken Schneider wrote:
I ended up using this:
for I in `ls -1 *.JPG`;do convert -resize 640x480 ${I} ${I};echo ${I};done
Which worked great, converted about 200 photos in less then a minute. Didn't care about over writing as the originals are on a CD.
Is that GPL? :-)
Carl
Hadn't thought about it, but ya why not. The results can be seen here: http://www.sailing-singles.net/album/index.html
Now Ken, Don't be showing all of these guys photos like that. Next thing we know we will be inundated by them. Bob S.
On Sun, 2006-04-23 at 09:18 -0400, Ken Schneider wrote:
I ended up using this:
for I in `ls -1 *.JPG`;do convert -resize 640x480 ${I} ${I};echo ${I};done
Which worked great, converted about 200 photos in less then a minute. Didn't care about over writing as the originals are on a CD.
And to avoid overwriting would this work? for I in `ls -1 *.JPG`;do convert -resize 640x480 ${I} ${I}.new;echo ${I}.new;done Though I am sure there is a fancier perl way to preserve the extention so the name becomes filespec.new.jpg On that I am still studying perl. -- ___ _ _ _ ____ _ _ _ | | | | [__ | | | |___ |_|_| ___] | \/
On Fri, 2006-04-28 at 06:58 -0700, Carl William Spitzer IV wrote:
On Sun, 2006-04-23 at 09:18 -0400, Ken Schneider wrote:
I ended up using this:
for I in `ls -1 *.JPG`;do convert -resize 640x480 ${I} ${I};echo ${I};done
Which worked great, converted about 200 photos in less then a minute. Didn't care about over writing as the originals are on a CD.
And to avoid overwriting would this work?
for I in `ls -1 *.JPG`;do convert -resize 640x480 ${I} ${I}.new;echo ${I}.new;done
Yes.
Though I am sure there is a fancier perl way to preserve the extention so the name becomes filespec.new.jpg
On that I am still studying perl.
Actually a ksh shell provides that easy enough although I haven't used it in a while. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
On Fri, 2006-04-28 at 14:33 -0400, Ken Schneider wrote:
On Fri, 2006-04-28 at 06:58 -0700, Carl William Spitzer IV wrote:
On Sun, 2006-04-23 at 09:18 -0400, Ken Schneider wrote:
I ended up using this:
for I in `ls -1 *.JPG`;do convert -resize 640x480 ${I} ${I};echo ${I};done
Which worked great, converted about 200 photos in less then a minute. Didn't care about over writing as the originals are on a CD.
And to avoid overwriting would this work?
for I in `ls -1 *.JPG`;do convert -resize 640x480 ${I} ${I}.new;echo ${I}.new;done
Yes.
Though I am sure there is a fancier perl way to preserve the extention so the name becomes filespec.new.jpg
On that I am still studying perl.
Actually a ksh shell provides that easy enough although I haven't used it in a while.
Please show me the script. I have never tried ksh. -- ___ _ _ _ ____ _ _ _ | | | | [__ | | | |___ |_|_| ___] | \/
On Saturday 22 April 2006 23:43, Ken Schneider wrote:
On Sat, 2006-04-22 at 19:46 -0400, Bruce Marshall wrote:
On Saturday 22 April 2006 19:16, Ken Schneider wrote:
Looking for a rather easy cli way to resize images. Any suggestions?
imagemagik ----> convert ??
I have this package installed (ImageMagick-6.2.3-4.2) but when I try to run imagemagik I get the "command not found" error. Using pin on the installed package I found the command convert and used that as follows:
convert -resize 640x480 oldname.jpg newname.jpg
I guess I'll need to write a small script as it will not allow wildcards.
-- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998 =========
Ken, I believe you'll find that running ImageMagick from the shell, you'll use the command "display" instead. Guess they were being kind to us, so we wouldn't have to type the long name out. ;o) Lee
On Saturday 22 April 2006 11:43 pm, Ken Schneider wrote:
when I try to run imagemagik I get the "command not found" error.
Yes, that got me too when I first began using it. Turns out ImageMagick is the name of a collection of command line image-processing utitlities. It is not a command or a program itself. See a list of the tools that make up ImageMagick here: http://www.imagemagick.org/script/command-line-tools.php I noticed elsewhere on the site that it runs on "all major OSs." I did not know that! I thought it was only for Linux (or at least the Unix family). Bryan **************************************** Powered by Mepis Linux 3.4-3 KDE 3.4.3 KMail 1.8.3 This is a Microsoft-free computer Bryan S. Tyson bryantyson@earthlink.net ****************************************
On Monday 24 April 2006 02:30, Bryan S. Tyson wrote:
On Saturday 22 April 2006 11:43 pm, Ken Schneider wrote:
when I try to run imagemagik I get the "command not found" error.
Yes, that got me too when I first began using it. Turns out ImageMagick is the name of a collection of command line image-processing utitlities. It is not a command or a program itself.
See a list of the tools that make up ImageMagick here: http://www.imagemagick.org/script/command-line-tools.php
I noticed elsewhere on the site that it runs on "all major OSs." I did not know that! I thought it was only for Linux (or at least the Unix family).
Bryan
Hi everyone. Don't know whether this is helpful but if you're into imaging as we are then gd is a real time saver. Having had to suffer clicking and poking at a crashintosh for so many years it really is a godsend to have a proper batch operating system again. Steve.
* Ken Schneider
Looking for a rather easy cli way to resize images. Any suggestions?
ImageMagick -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2
On Saturday 22 April 2006 07:16 pm, Ken Schneider wrote:
Looking for a rather easy cli way to resize images. Any suggestions?
Be sure you have imagemagick installed. Two that can do it are convert and mogrify. I have used both with great results. Bryan **************************************** Powered by Mepis Linux 3.4-3 KDE 3.4.3 KMail 1.8.3 This is a Microsoft-free computer Bryan S. Tyson bryantyson@earthlink.net ****************************************
participants (12)
-
BandiPat
-
Bob S
-
Bruce Marshall
-
Bryan S. Tyson
-
Carl Hartung
-
Carl William Spitzer IV
-
Carlos E. R.
-
Graham Smith
-
jdd sur free
-
Ken Schneider
-
Patrick Shanahan
-
steve