Topic: Remote upload and black thumbs

Hello everyone,

Firstly, thank you for this great script, and sorry for my english = S

I've installed on my server Chevereto: Images.ne2.in
Everything works fine except the upload from a URL. The image is hosted on the server, but the generated thumbnail is entirely black.
I have this problem to upload from URL only, and I can not find where is the problem.

eg :
http://images.ne2.in/thumbs/f125877727.jpg

I hope you can help me

Thank you in advance.

Calistot

Edit : here the gallery

Last edited by Calistot (2010-04-15 13:46:40)

Thumbs up

Re: Remote upload and black thumbs

did u edit the config.php and made any changes for thumbs , like the resolution size ?

Thumbs up

Re: Remote upload and black thumbs

Hi,

No I didn't made any changes for thumbs in config.php. Should I try others values?

Thumbs up

Re: Remote upload and black thumbs

The resize function is not working at all. You should enable debug (go to config.php) and paste the errors and warnings.
Regards.

rodolfoberrios.com | PLEASE use Tech Support forums to ask for support!

Re: Remote upload and black thumbs

Hi,

Thanks, I didn't see that. It's seem to be only from remote URL hmm
I have enable debug, but there are no errors and warnings  sad . Where I suppose to see this errors? I let the debug on for the moment.
With out resize, and always from remote URL, images are cut on about 20px from the bottom.
I go check my php configuration for GD and cURL.

Thanks again

Edit : from phpinfo();

gd

GD Support                   enabled
GD Version                      bundled (2.0.34 compatible)
FreeType Support          enabled
FreeType Linkage         with freetype
FreeType Version             2.3.9
GIF Read Support            enabled
GIF Create Support          enabled
JPG Support                   enabled
PNG Support                enabled
WBMP Support             enabled
XBM Support                enabled


cURL

cURL support    enabled
cURL Information    libcurl/7.19.5 OpenSSL/0.9.8b zlib/1.2.3

Last edited by Calistot (2010-04-15 16:11:23)

Thumbs up

Re: Remote upload and black thumbs

Calistot wrote:

Hi,

Thanks, I didn't see that. It's seem to be only from remote URL hmm
I have enable debug, but there are no errors and warnings  sad . Where I suppose to see this errors? I let the debug on for the moment.
With out resize, and always from remote URL, images are cut on about 20px from the bottom.
I go check my php configuration for GD and cURL.

Thanks again

The thubms are created with the resize function. This function is the same that chevereto uses to resize full images when you input some width... So, is something with imagecopyresampled and stuff like that.

rodolfoberrios.com | PLEASE use Tech Support forums to ask for support!

Re: Remote upload and black thumbs

I dont understand. I didn't modify the code. I have try with v1.7 and v1.8 and its the same problem.

Last edited by Calistot (2010-04-15 16:29:38)

Thumbs up

Re: Remote upload and black thumbs

Calistot wrote:

I dont understand. I didn't modify the code. I have try with v1.7 and v1.8 and its the same problem.

It's hard to tell more if you can't output the debug. When the script upload a remote picture, it opens a curl transfer and copy the image in the work folder. From this point all the process is the same for both local and remote.

So... If the script can upload remote pictures it means that you probably touch some in the source code or is the most weird issue ever... This seems to be not a curl issue... Sometimes when I upload from local with resize works 100%, %50 (just the image) or 0% (black image and thumb). Thats why in my first post I say that it was a resize issue.

rodolfoberrios.com | PLEASE use Tech Support forums to ask for support!

Re: Remote upload and black thumbs

Thanks to take time for answer. I have not touch anything hmm only add ad. I can upload a new one. => images.ne2.in/new
Debug is on, where can i find the errors? Nothing apear on the page.

In the new one, only put debut "true" and chmod 777 on /up /images /thumbs with recursive. Its the same problem, probably come from server configuration. Probably cURL. Have u got any idea?

Ty a lot

Last edited by Calistot (2010-04-15 17:16:46)

Thumbs up

Re: Remote upload and black thumbs

Calistot wrote:

Thanks to take time for answer. I have not touch anything hmm only add ad. I can upload a new one. => images.ne2.in/new
Debug is on, where can i find the errors? Nothing apear on the page.

In the new one, only put debut "true" and chmod 777 on /up /images /thumbs with recursive. Its the same problem, probably come from server configuration. Probably cURL. Have u got any idea?

Ty a lot

Mmmm did you change something about the random name generator? I'm sure you did. tongue
Because that is the only clue. You change the random name generator (in bad way) and the script can't find the proper image to do is job. That is why sometimes work, because mantains the image name and in the other hand it changes the name.

Edit: I just look the new one and it's the same thing =/

rodolfoberrios.com | PLEASE use Tech Support forums to ask for support!

Re: Remote upload and black thumbs

Ooops, pls sorry,i'm confuse, i have forgot that I change this part. I have try so much things that my brain abandon me ^^

I have ask to my host to reinstall cURL.

I tell you if there are change.

Thumbs up

Re: Remote upload and black thumbs

Ok, iI think that i got it!

When you upload a remote picture (new or old install) you can see that sometimes the uploaded file is incomplete... Meaning that the curl transfer is shutted down (probably by your hosting company or php settings). So I try to upload a very little file.. Like 1kb and there is also errors, the host just don't accept the transfer.

The resize will always fails if the image is corrupted or incomplete, so... there is your problem.

Fix? You can allways use another hosting company. If the server is managed by you (I mean, vps or dedicated) you should config the curl library.

rodolfoberrios.com | PLEASE use Tech Support forums to ask for support!

Re: Remote upload and black thumbs

Your a boss  cool  !! big_smile 
Unfortunately,  it's not my server, but i will request that to my host, that I think, will fix it.
I'll keep you in touch
Thanks again smile

P.S : I love your images ^^

Last edited by Calistot (2010-04-15 17:50:13)

Thumbs up