Scale a bunch of images at one time.
Johann Spies
johann.spies at alterit.co.za
Mon Nov 27 21:08:27 UTC 2006
On Sun, Nov 26, 2006 at 02:15:31PM -0600, Kipton Moravec wrote:
> I took a bunch of photographs of a vacation trip and want to make web
> pages with the pictures. Fortunately or unfortunately the camera took
> very high resolution pictures. Too high a resolution for a web page.
>
> Playing around with GIMP Image editor I found if I scale the pictures
> 25% in the horizontal and vertical, I get a pretty good picture for my
> web page. It is about 1/16 the original pixels, so it loads a lot
> quicker and is the right size for the page.
>
> Here is the problem. I have about 150 of these .jpg images in a
> directory that I want to scale the same way. I have been renaming them
> with an "s" appended to the original name (for small), but that is a
> "nice to have" and not necessary.
>
> Is there a way to scale all of of the pictures in one operation? How?
> With what tool? Where is the documentation?
There are a few options
1. Use a tool like f-spot or install Picasa on your computer. Both
can create a web-pabe with scaled down photographs and thumbnails.
2. Use a script which uses Imagemagick's "convert". Here is one that
I found somewhere:
#!/bin/sh
for i in *.JPG ; do
{
out=`echo "$i" | sed "s/JPG/sm.jpg/"`
echo $i
echo $out
convert -scale "800x800" $i $out
};
done
3. Investigate programs which can create web galleries like gallery
and gallery2.
Regards
Johann
--
J.H. Spies - Tel. 021-982 2694 / 082 782 0336 / 021-808 4036(w)
Posbus 4668, Tygervallei 7536
Webblad: http://www.alterit.co.za
"Thou, even thou, art LORD alone; thou hast made
heaven, the heaven of heavens, with all their host,
the earth, and all things that are therein, the seas,
and all that is therein, and thou preservest them all;
and the host of heaven worshippeth thee."
Nehemiah 9:6
More information about the ubuntu-users
mailing list