[Mimedefang] resizing attached images
David F. Skoll
dfs at roaringpenguin.com
Wed Jun 13 11:13:53 EDT 2012
On Wed, 13 Jun 2012 16:54:48 +0200
Randall <randall at songshu.org> wrote:
> for varying reasons i don't want to limit the size of the
> mails/attachments that are send to the list, but would like all
> images that are send to be resized to a small default size before
> distribution to all recipients on the list.
This could be pretty CPU-intensive. I would approach it by calling
action_external_filter from the "filter" routine. Only call it for
image/* parts. Then you need to write something (a shell or Perl
script) that reads an image from ./FILTERINPUT, scales it, and puts
the result in ./FILTEROUTPUT. Take a look at ImageMagick for doing the
resizing.
Regards,
David.
More information about the MIMEDefang
mailing list