(can you tell Perl isn't my normal server side langauge?)
BrowserUK. Yes, I was converting that particular function from another language. However, the function replacement wasn't working for me. Pointing out my error was helpful in locating documentation that was Perl specific.
Zentara. Thank you for this bit of documented code. I am now able to get the cropped images I was looking for.
$image->copy($sourceImage,$dstX,$dstY,$srcX,$srcY,$width,$height);
Thank you guys both for the quick and straight-foward help.
I was getting a cropped image because the image files I'm uploading are really big, and using copyresized causes the server to timeout and send back an internal server message. Well, even though the script seems to be working on files slightly larger than ones that failed with the old script, the server still times out for the REALLY big ones. Is there anyway to resize an image without putting so much strain on the server? For instance, crop the image without actually having to open it?In reply to Re^2: gdImageCreateFromGd2Part
by sfhazel
in thread gdImageCreateFromGd2Part
by sfhazel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |