PDA

View Full Version : Auto resizing of uploaded graphic files



veteran
03-Oct-2007, 06:08 AM
Today's digital cameras generate very big files of 6 to 10 megapixels and few users bother to resize them. Is there an easy way in FormMail to automatically resize a set of .jpg files down from, say, 2400x1800 pixels to 800x600px for example? Grateful for any ideas.

russellr
03-Oct-2007, 06:36 AM
Hi,

FormMail doesn't have the logic to do this, but it can include PHP code that does this using its (FormMail's) Hook System.

PHP supports the GD/GD2 graphics library and this has functions for manipulating JPEGs.

You'll definitely need a programmer to write the code, but once it's done it's relatively simple to include it with FormMail. The programmer will need to adapt it to work with FormMail, but that's pretty straightforward.

veteran
03-Oct-2007, 07:02 AM
Thanks for that very fast response, Russell. I have now put a comment into my Form, with an embedded hyperlink to a page explaining why photos need shrinking and how to do it, and I hope that will have the same effect in the long run. Congratulations again on FormMail. The same script is also now processing two separate forms much to my amazement and mystification - but it works perfectly!