View Full Version : Images uploading problems
Lionel
09-08-2006, 03:46 AM
All over sudden, and this seems to happen randomly, uploading images displays a broken jpg, but image is not really broken as it displays properly when using vb upload.
And some images just won't resize when uploading
example (http://www.haitiwebs.com/forums/forumdisplay.php?f=10)
The Geek
09-08-2006, 07:15 AM
Check your chmod on the images that are appearing broken. What is it?
Lionel
09-08-2006, 07:45 AM
I tried to make it 777, no luck. I downloaded it and looked at it in fireworks, resaved, reuploaded, no luck. That is the header images that are giving me problems. We put the same images via vb upload in same post, they are fine.
The Geek
09-08-2006, 08:28 AM
What are the broken images chmod? Have they been changed to something other than 777?
Lionel
09-08-2006, 09:55 AM
they are all 644. But I think I might know the reason.
1-the image name have an accent. In which case it's no good for me, because I use images with accent a lot.
2-look at image extension. I found a lot like that on server. I am ready to swear I uploaded as jpg.
député_fédéraliste_yoronga_chad_images.jpeg
On the other hand, that one, focus1.jpg, looks fine, but why wouln't it create the thumb?
here is my under construction page, please scroll down to see problem
http://www.haitiwebs.com/newindex.php
Lionel
09-08-2006, 10:10 AM
I also just realized something. The imagename in bold is the name of the other image in article. When I right clicked on the broken name, that is the name I got, but that was not the one that I actually uploaded. It is as if it was reading a name that was not his and therefore appeared broken. Like a confusion in the names.
Lionel
09-08-2006, 10:59 AM
Now listen to this. The image that will not resize into a thumb was originally 350x230. No matter what it will not create a thumb. I resized it to 200 width in fireworks, re-uploaded, and the thumb got created. Even weirder, I have other images at 370 and larger, they create thumbs no problems. :confused: :confused:
The Geek
09-08-2006, 11:38 AM
Let me see if I can recap so I understand where you have gotten to so far:
1- If the image has an accent in it it doesnt seem to upload?
2- This image will not thumbnail? (if its the right size, no thumbnailing takes place)
3- It is renamed with a jpeg extension?
4- The thread contains the image for another thread?
All of this sounds not right at all.
I havent tried the accent thing, but surely this shouldnt make a difference AND I assume you have been using this for some time (with other French users too). I havent really changed the code at all.
Is it one specific image? If so, can you send it to me so I can run some tests uploading it through my Zend debugger?
Lionel
09-08-2006, 11:46 AM
I sent you image. I just started to use it last week.
The Geek
09-08-2006, 12:21 PM
does it seem to be the problem image? i.e. no others seem to be causing you grief?
Lionel
09-08-2006, 12:32 PM
So far only that one will not resize. The other one was broken on every upload attempt.
The Geek
09-08-2006, 12:48 PM
What other one - can you send that?Also - can you try uploading here?
Lionel
09-08-2006, 01:04 PM
The other one that was broken, I reuploaded after many attempts, and this morning it worked after I renamed it.
The Geek
09-08-2006, 01:32 PM
hmm. Was it a mixed case? i.e. Mypic.jpg or myPic.jpg?
Lionel
09-09-2006, 12:07 AM
I came up with something.
In my homepage I copied a bunch of gars modules for every category.
One of them, everytime you open up the homepage, the thumbnail struggled to open.
After careful observation, I was able to determine that the title of the article was the cause. Changing the title, and the thumbnail displayed without struggle. By struggle I mean that thumb will display a large empty rectangle box stretching the page, then will find its way and finally display.
here is the culprit title if you want to test it.
Découvrir Le cinéma et Le Festival International du film Haïtien de Montréal (FIFHM)
More and more I am convinced that this problem with thumbs that I said was random is being caused by accents.
Lionel
09-09-2006, 12:14 AM
hmm. Was it a mixed case? i.e. Mypic.jpg or myPic.jpg?
yes that was a mixed case : Focus1.jpg
and the one that I described as struggling to open: Desmarelles.jpg was what we uploaded but thumbnail folder says it is desmarelles.jpg
The way we do it, we also upload first article thumb as header image. So first thumb from vb upload is Desmarelles and headerimage is desmarelles
The Geek
09-09-2006, 08:01 AM
Try this for me:
Edit your geek/gars/includes/gars_functions_image.php file and change:
$urlpath = strtolower($urlpath . $sname);
to
$urlpath .= $sname;
And let me know if that changes any uplaod problems for you
Lionel
09-09-2006, 09:13 AM
Well for starters, after I made the change, I reuploaded the image and the homepage is no longer dancing. However the thumbnail is still lowercase.
Tomorrow we will monitor for broken image. These things were just random and it is hard to reproduce. I'll tell the guy who is posting articles to make them mixed case.
Lionel
09-10-2006, 09:36 PM
Sorry to report, but the page streching phenomenon started again. I tried disabling compression. Looks like every time there is a new post it starts.
Well I don't know anymore....
The Geek
09-11-2006, 10:15 PM
Leave it with me. Ill run tests tomorrow
Lionel
09-12-2006, 05:31 AM
Thanks. This is a bit weird. In order to have homepage display properly, I must upload the same header image twice.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.