procmail
[Top] [All Lists]

Re: Filtering image attachments with procmail

2003-07-14 13:24:41
On Monday, Jul 14, 2003, at 10:41 Canada/Mountain, Tom Wolfe wrote:
I'm wondering if anyone has any ideas on how I could filter incoming image
attachments to reduce their size before being sent on...

I have recently volunteered to run a mailing list for the Association of
Canadian Mountaing Guides. Many of the contributors have digital photos
(mountain conditions, etc.) to submit but, unfortunately, do not have the
technical savvy to reduce their photos to an appropriate size.
Often photos > 800 KB come through, which is a bummer for those of
us with humble modem connections.

Imagemagick will convert most picture formats to smaller sized files. {read ahead} ah, you know about Image Magic...

Basically I would want procmail to send jpeg or gif attachments to
something like ImageMagick to resize them to about 200x300 px, and
optimise the image quality, i.e. indexed gif/png (so the image is < 50
KB), then re-insert the attachments into the original email.

that will mean, I think, creating a new email message. Is the mailing list on the same machine that is running postfix?

It might be easier to do this in mailman, actually, and run Imagemagick's convert there instead of in procmail.

Any ideas on how to get started??... Is this too lofty of a project?

Assuming you are running mailman, I think I would start there.


--
"Queen Isabella and King Ferdinand kicked 200,000 Jews out of Spain, one of the first acts of the Spanish Inquisition, which no one ever expects. " John Carroll's 21st Annual Xmas Quiz answers


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail