Reply to Problem with image_crop with negative value

Problem with image_crop with negative value new!
by WoofWoof75, 17 years, 2 months ago
Salut! Thank you very much for the wonderful Upload Class!

I'm currently using Upload Class 0.25 RC1 for multiple files uploading, but having some problems.

Each file uploaded will first be sent to create thumbnail, then again to resize uploaded image larger than 640 px to 640 px.

Sample #1: with $handle->image_crop = '0 0 -12px 0';
thumb1.jpg 1.jpg

You can see file uploaded in Sample #1 the larger image has a problem with the pure black part being converted into white. But Sample #2 with that image_crop turned off will not have the problem. I'm using image_crop to add a black space for me to add in watermark.png.

Sample #2: without $handle->image_crop = '0 0 -12px 0';
thumb2.jpg 2.jpg

After the uploading process completed, a thumbnails page of images users has just uploaded will be shown to user, but the thumbnail file doesn't exist yet... I'm thinking of adding a sleep() function waiting for thumbnails ready, or do you have a better solution?

I've tested this on both local and live servers, both giving the same problems.
Local: Apache/1.3.33 (Darwin) PHP/5.2.2
Live: Apache/1.3.37 (Unix) PHP Version 5.2.3

Merci beaucoup!

WoofWoof75Reply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important