Re: Replace image attachments with resized versions

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Brian Cluff
Date:  
To: Main PLUG discussion list
Subject: Re: Replace image attachments with resized versions
What you are describing is exactly that I'm looking for. I'd write my
own, but it just seems like one of those type of things that should
already have a per-built solution out there.

As for having a cron job of find script that would resize the images,
that would be awesome, but they are using windows, and don't have any
control over that.

I wish they are running KDE; I would just make a service menu that
allowed them to right click on their image(s) and select "Process for
Newsletter".

Also changing the camera isn't an option either. It's a LONG drive to
go change it myself, and it also has the same problem as the computer in
that they don't want to learn anything about the camera either... that
and even at 640x480, the images are larger than they need to be for the
news letter. They essentially need to be 400xwhatever proportional.

I think in the end we are gonna just get rid of this customer, because
we are also looking at having to teach them virtumart and that is
complex enough that it makes resizing an image seem like a non-existent
issue. I am however still interested in a solution because I can think
of a ton of uses for it in the future that hopefully don't involve
stubborn customers.

Brian Cluff

On 09/06/2013 12:34 PM, Matt Graham wrote:
> This may be possible. There are some details missing, though. How does
> this message get to Brian in the first place? Does it show up over
> SMTP? If so, the solution will probably involve something like having
> the MTA look for a particular sender, then pass that message off to an
> external filter script. The filter script would then have to split the
> message up into body and attachments, then base64 decode those
> attachments into a temp directory, then do a convert command like the
> one Joe posted earlier on all of those attachments, then stitch the
> message back together, then pass it back to the MTA, then clean up.
>
> I don't know of anything pre-built that'll do all that off the top of my
> head. There's always the wonderful "import email" part of python, if
> python is an option, and there are also mail-parsing Perl modules.

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss