Log in

View Full Version : manipulating image attachment


fneumeier
04-22-2006, 11:48 AM
I'm looking for the place in the code where I can manipulate an image/file when a user attaches it to a posting.

Not being a PHP geek, even with some hours of searching in the code I couldn't find the right place to do this. There are just so many "if"s and obscure (at least to me) variables in the code that I can't find how to address this and where to address this. Pleeease, help!

What I want to do is something that many other users have asked for before and it's extremely simple to do as soon as I know WHERE to do it: I want to resize attached images automatically to a pre-given size, e.g. resizing them so they are not bigger than 600x600 pixel. And no, I do not want my users to resize the pictures before uploading them, I really want to do this on the server automatically (using GDlib) when they upload right after they've uploaded the image file.

Thanks a lot.
Franz

cannabis-world
04-24-2006, 02:10 AM
I'm looking for a way to remove the exif data from attachments on the fly, as they are uploaded. I understand this can be done by reducing the color depth but I like fneumeier don't know how to do this.