[opensuse] Image resizing?
Is there a Linux utility that I can use to convert a folder of larger images to 480x234, the native size for the digital picture frame my wife bought me? It occurs to me that it probably would be more efficient if I fed it images that are its default size, so that it doesn't need to scale them down. Thanks in advance! -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Jerry Houston
Is there a Linux utility that I can use to convert a folder of larger images to 480x234, the native size for the digital picture frame my wife bought me?
It occurs to me that it probably would be more efficient if I fed it images that are its default size, so that it doesn't need to scale them down.
ImageMagick/convert -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 27 December 2008 19:00:29 Patrick Shanahan wrote:
It occurs to me that it probably would be more efficient if I fed it images that are its default size, so that it doesn't need to scale them down.
ImageMagick/convert
Exactly what I needed, and thanks! It worked great. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Jerry Houston pecked at the keyboard and wrote:
Is there a Linux utility that I can use to convert a folder of larger images to 480x234, the native size for the digital picture frame my wife bought me?
It occurs to me that it probably would be more efficient if I fed it images that are its default size, so that it doesn't need to scale them down.
Thanks in advance!
I use this one liner in a shell script do convert photos prior to putting them on the web for a club I belong to. Set the res to what you need and adjust to the type of pics you are converted. for I in `ls -1 *.[j,J][p,P][g,G]`;do convert -resize 640x480 ${I} ${I};echo ${I} Completed;done -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 27 December 2008 20:08:13 Ken Schneider wrote:
I use this one liner in a shell script do convert photos prior to putting them on the web for a club I belong to. Set the res to what you need and adjust to the type of pics you are converted.
for I in `ls -1 *.[j,J][p,P][g,G]`;do convert -resize 640x480 ${I} ${I};echo ${I} Completed;done
That's almost exactly what I did. Mine were all in one folder, so I was able to just use *.*. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sat, Dec 27, 2008 at 23:56, Jerry Houston
On Saturday 27 December 2008 20:08:13 Ken Schneider wrote:
I use this one liner in a shell script do convert photos prior to putting them on the web for a club I belong to. Set the res to what you need and adjust to the type of pics you are converted.
for I in `ls -1 *.[j,J][p,P][g,G]`;do convert -resize 640x480 ${I} ${I};echo ${I} Completed;done
That's almost exactly what I did. Mine were all in one folder, so I was able to just use *.*.
Unlike MS-DOS you don't have to use *.* as a wildcard. * will sufice in Bash. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 27 December 2008 21:18, Andrew Joakimsen wrote:
On Sat, Dec 27, 2008 at 23:56, Jerry Houston wrote:
...
That's almost exactly what I did. Mine were all in one folder, so I was able to just use *.*.
Unlike MS-DOS you don't have to use *.* as a wildcard. * will sufice in Bash.
Not if there are files with no dot in their name that you _don't_ want to process. Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 28 December 2008 06:21:54 Randall R Schulz wrote:
Unlike MS-DOS you don't have to use *.* as a wildcard. * will sufice in Bash.
Not if there are files with no dot in their name that you _don't_ want to process.
Indeed. His point, though, was that the dot is simply a valid filename character in Unix/Linux, and doesn't have the special meaning that DOS/Windows applies to it. I knew that, but my workdays are all spent with Windows, and old habits are hard to break. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sat, 27 Dec 2008 23:08:13 -0500, you wrote:
for I in `ls -1 *.[j,J][p,P][g,G]`;do convert -resize 640x480 ${I} ${I};echo ${I} Completed;done
Useless use of ls and a subshell :) This can be shortened to for I in *.[jJ][pP][gG]; do convert -resize 640X480 ${I} ${I}; echo "${I} Completed"; done Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 28 December 2008 05:07:23 Philipp Thomas wrote:
Useless use of ls and a subshell :) This can be shortened to
for I in *.[jJ][pP][gG]; do convert -resize 640X480 ${I} ${I}; echo "${I} Completed"; done
Just wondering ... can a bash regex include an 'ignore case" operator? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Jerry Houston
On Sunday 28 December 2008 05:07:23 Philipp Thomas wrote:
for I in *.[jJ][pP][gG]; do convert -resize 640X480 ${I} ${I}; echo "${I} Completed"; done
Just wondering ... can a bash regex include an 'ignore case" operator?
that is what "*.[jJ][pP][gG]" accomplishes. -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 28 December 2008 09:37, Jerry Houston wrote:
On Sunday 28 December 2008 05:07:23 Philipp Thomas wrote:
Useless use of ls and a subshell :) This can be shortened to
for I in *.[jJ][pP][gG]; do convert -resize 640X480 ${I} ${I}; echo "${I} Completed"; done
Just wondering ... can a bash regex include an 'ignore case" operator?
Man to the rescue... -==--==--==--==--==--==--==--==--==--==--==--==--==--==--==- nocaseglob If set, bash matches filenames in a case-insensitive fashion when performing pathname expansion (see Pathname Expansion above). -==--==--==--==--==--==--==--==--==--==--==--==--==--==--==- Note, too, that the pattern matching done to find file names using the asterisk / * and question-mark / ? wildcards is _not_ based on regular expressions in the conventional sense. It's referred to (for historical reasons) as "globbing." BASH does have regular expression matching in some of its primitives, but no for file-name-driven wild-card expansion. Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 27 December 2008 20:08:13 Ken Schneider wrote:
I use this one liner in a shell script do convert photos prior to putting them on the web for a club I belong to. Set the res to what you need and adjust to the type of pics you are converted.
for I in `ls -1 *.[j,J][p,P][g,G]`;do convert -resize 640x480 ${I} ${I};echo ${I} Completed;done
I used a variation of this, but ended up with images sized to 416x234, when I had specified 480x234. Obviously, convert preserved the aspect ratio of the original images, fitting them to a height of 234. Does anyone know if there's an option to force the specified size? I would expect a little to be trimmed from the top and bottom, of course, which would be acceptable for this application (digital picture frame). That would be preferable to black bands on both sides of the images. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday, 2009-01-04 at 12:09 -0800, Jerry Houston wrote:
I used a variation of this, but ended up with images sized to 416x234, when I had specified 480x234. Obviously, convert preserved the aspect ratio of the original images, fitting them to a height of 234.
Does anyone know if there's an option to force the specified size? I would expect a little to be trimmed from the top and bottom, of course, which would be acceptable for this application (digital picture frame). That would be preferable to black bands on both sides of the images.
I suppose you have to specify options to trim. Read the man page, there are lots of options. Perhaps chop, clip, extract, resize, scale, trim... You will have to experiment, I don't know which one will be the correct one. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAklhHCEACgkQtTMYHG2NR9U28wCdEyCPOStwszJx2WuPYlIwk4gs V0oAn0mkiCcxn4BMd17BN4/FZO3UTB8A =ZjJG -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun, 2009-01-04 at 12:09 -0800, Jerry Houston wrote:
On Saturday 27 December 2008 20:08:13 Ken Schneider wrote:
I use this one liner in a shell script do convert photos prior to putting them on the web for a club I belong to. Set the res to what you need and adjust to the type of pics you are converted.
for I in `ls -1 *.[j,J][p,P][g,G]`;do convert -resize 640x480 ${I} ${I};echo ${I} Completed;done
I used a variation of this, but ended up with images sized to 416x234, when I had specified 480x234. Obviously, convert preserved the aspect ratio of the original images, fitting them to a height of 234.
Does anyone know if there's an option to force the specified size? I would expect a little to be trimmed from the top and bottom, of course, which would be acceptable for this application (digital picture frame). That would be preferable to black bands on both sides of the images.
I guess you do not want to use a program with a GUI. My approach is here is pretty simple/ Digikam Edit/Select all /Batch/resize images and there you can get proportional, non proportional etc. Another program that does it and one that has the most filter for any possible format you may want to convert is xnview. Unfortunately the present version 1.70 does not work with compiz. The author is working in a new one and he already has the windows version upgraded. The windows version works under crossover. xnview 1.7 is an X application and it does things others do not. It was my favorite until I became a compiz use. Still I have it just in case. -=terry=- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 04 January 2009 13:14:11 Teruel de Campo MD wrote:
I guess you do not want to use a program with a GUI. My approach is here is pretty simple/
Digikam Edit/Select all /Batch/resize images and there you can get proportional, non proportional etc.
When I tried that with the version of digiKam that was installed with SUSE 11.1, the Batch menu had one item in it, an empty space. So I searched for digiKam in the software module of YaST, and found that there was a digikam-kde4 in addition to the one that was installed by default. I installed that, and in the new version (which appears to be a beta), the Batch menu has only "Convert DNG" and "Batch Convert Raw" in it. Where did you get a version that offers resize in the batch menu? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Jerry Houston
I installed that, and in the new version (which appears to be a beta), the Batch menu has only "Convert DNG" and "Batch Convert Raw" in it.
Where did you get a version that offers resize in the batch menu?
Reinstall the KDE3 version. Also make sure the packages digikamplugins and kipi-plugins are installed. Charles -- There are no threads in a.b.p.erotica, so there's no gain in using a threaded news reader. (Unknown source)
On Sun, 2009-01-04 at 15:57 -0800, Jerry Houston wrote:
When I tried that with the version of digiKam that was installed with SUSE 11.1, the Batch menu had one item in it, an empty space. So I searched for digiKam in the software module of YaST, and found that there was a digikam-kde4 in addition to the one that was installed by default.
I installed that, and in the new version (which appears to be a beta), the Batch menu has only "Convert DNG" and "Batch Convert Raw" in it.
Where did you get a version that offers resize in the batch menu?
I was using my business computer with opensuse 11 and that's the one I have been using but before this reply I went to the machine with opensuse 11.1 and not only is all the same but I tested and it works. Charles answered you the problem you have. You do not have the plugins. I wonder how? -=terry=- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Jerry Houston
Does anyone know if there's an option to force the specified size? I would expect a little to be trimmed from the top and bottom, of course, which would be acceptable for this application (digital picture frame). That would be preferable to black bands on both sides of the images.
You need:
,----
| -crop
participants (9)
-
Andrew Joakimsen
-
Carlos E. R.
-
Charles Philip Chan
-
Jerry Houston
-
Ken Schneider
-
Patrick Shanahan
-
Philipp Thomas
-
Randall R Schulz
-
Teruel de Campo MD