On Wed, Sep 26, 2007 at 11:13:02AM -0400, John R Puhalski wrote: > sean (and anyone who cares to respond), > > at the software freedom day I asked about resizing pictures for sending > them in emails. As a reminder I've used Nikon software that I could > select any number of pictures, right click and select 'email' and it > would give me the option of resizing the picture for sending. I've been > having a hard time finding how to do that with linux. You mentioned > that you had a way of doing that.
Easy CLI way: convert source.jpg -geometry 800 dest.jpg uses imagemagick to rescale the image to be 800 pixels wide and keep the same aspect ratio. To save more space, you could throw -quality 90 in there or something too. If you installed something like the program 'email', which is a cli email tool with an ambiguous name, you could write a little bash script that does something like: """ #!/bin/bash convert $1 -geometry 800 email-$1 email -s "$2" -attach email-$1 $3 """ This uses the $foo variables to parse arguments. $1 is the first, $2 is the second, and so on, so what this means is: "convert the first file to email-file" "email it with the subject, to the person". ./foo.sh somefile.jpg "Did you get that thing I sent you?" [EMAIL PROTECTED] -m (that email program, btw, is at http://email.cleancode.org/. There are plenty of others, too) -- Mike Kershaw/Dragorn <[EMAIL PROTECTED]> GPG Fingerprint: 3546 89DF 3C9D ED80 3381 A661 D7B2 8822 738B BDB1 Know the rules other people live by. Know them well. Know them in the same way terrorists know about cars: so that you know where to put the bomb.
pgpICjBSl2tQc.pgp
Description: PGP signature
_______________________________________________ Mhvlug mailing list [email protected] http://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug
