[ic] automatically resize product image during upload?

Mike Heins mike at perusion.com
Fri Aug 13 17:31:37 EDT 2004


Quoting John Matecsa (matecsaj at picassofish.com):
> How could one automatically resize a product image during upload?
> 
> On the product editor screen I'm trying to figure out some way to send
> the image name to a shell script after the file is saved. The shell
> script I wrote uses 'convert' from imagemagix to resize the images.
> 
> I'm suspicious that the answer might lay in mv_metadata's filter. I've
> scouted for on-line docs and the mail archives for relevant examples of
> how to use filter but came up dry.
> 
> Am I heading down the right road?
> 
> 
> My motivation... The user wants the convenience of submitting a just a
> high res image, then have the system resize it for thumbnails and a
> moderate image on the flypage. The highres picture is linked to from the
> flypage via a magnifying glass icon. They also want instant
> gratification, and don't want to want for cron job to do the resizing.
> ...customers are always right. Right?
> 
> Thanks in advance for any bones you can throw my way.

This is already done if you have ImageMagick:

	[image src="foo.gif" makesize=100x100]

I think there are docs in the image tag, and this went into 5.2 I 
am sure.

-- 
Mike Heins
Perusion -- Expert Interchange Consulting    http://www.perusion.com/
phone +1.765.647.1295  tollfree 800-949-1889 <mike at perusion.com>

Opportunity is missed by most people because it is dressed in
overalls and looks like work. -- Thomas Edison


More information about the interchange-users mailing list