coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: yrosanel on July 19, 2004, 02:59:39 PM

Title: Auto resizing pictures on upload
Post by: yrosanel on July 19, 2004, 02:59:39 PM
Hi,

I'd like to know how to automaticaly resize the pictures that my users are posting. If you could like send me a script to do it directly. The problem is that I can't access to the php.ini file so I can't change the max memory size... When a user upload a picture with a size of 350Ko or more I get the error :

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 6144 bytes) in /home/vhosts/lironeline.net/rosanel/htdocs/yossi/include/picmgmt.inc.php on line 202

So if you could send me a script to resize the image (in 640X480) directly when the users are uploading there files.

Thx
Title: Re: Auto resizing pictures on upload
Post by: Joachim Müller on July 19, 2004, 03:09:06 PM
The feature you're requesting is being discussed for a future version of coppermine, it currently doesn't exist. As a workaround, you could post a howto on your site to explain users how they can downsize pics on their client before uploading.

GauGau