Robert Parker wrote:
> I need a CLI editor to resize jpg files ex digital camera down to
> something suitable for online use.
> I can do the job with Gimp but that is too cumbersome for a repetitive
> job such as this.
>
> A search on Google for 'cli editors for jpg' gets me lists of 1000's
> for GUI editors for mpegs, mp3.
>
> Anyone know of anything suitable?
>
> TIA
> Bob
>
I had to do a quick resize of a directory full of jpg's so that I could burn then to CD, so that
a bunch of friends could watch them on a TV via a DVD player.
The problem was that the originals were large and taking too long to load - so (after installing
imagemagick):
nigel@laptop:~$ cd path_to_dir
nigel@laptop:~/path_of_dir$ for i in *.jpg; do montage -geometry 800x603 -background black
-quality 95 $i -$i; done
(note: the above is all on one line).
You can change some of the parameters such as the quality. The '-background back' is a nice trick
so that 'portrait' pics have a black background that is invisible when viewed on a TV screen. The
'-geometry 800x603' was acquired by resizing one of my cameras jpg's in the Gimp.
This one-liner will make copies of your originals and prefixing them with a hyphen (-$i
HTH
Blessings,
Nigel
--
PrayingForIsrael.net
http://www.prayingforisrael.net/
--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users