akirafreak / phppi

Automatically exported from code.google.com/p/phppi
GNU General Public License v3.0
0 stars 0 forks source link

Thumbnail creation error #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What would cause some jpg's to be recognized and others to not be? I am getting 
errors where thumbnails are not being created, but if I click the placeholder, 
the full image is opened.

Original issue reported on code.google.com by gerard.g...@gmail.com on 22 Jul 2011 at 2:45

GoogleCodeExporter commented 8 years ago
Now that I have uploaded around 800 pics from my cell phones SD card, the 
majority have not even a place holder showing. I enabled debug, what do you 
need to see?

Original comment by gerard.g...@gmail.com on 22 Jul 2011 at 3:01

GoogleCodeExporter commented 8 years ago
Also, I have viewed and uploaded both from my android phone, a windows desktop 
running vista and my linux box running PCLinuxOS. I also reloaded the .txt 
files in ascii with no changes.

Original comment by gerard.g...@gmail.com on 22 Jul 2011 at 3:04

GoogleCodeExporter commented 8 years ago
Have you got the site available on the internet so I can check it out to see 
what's happening. If not could you provide a screenshot.

Original comment by gorounreal on 23 Jul 2011 at 7:38

GoogleCodeExporter commented 8 years ago
four-nineteen.com/android/index.php
Its purpose was to be able to just upload pics from my cell phone to my server 
for storage. I reloaded everything and was able to get it to at least recognize 
that there are supposed to be 800 or so pics, but there are still many missing 
thumbnails.

Original comment by gerard.g...@gmail.com on 25 Jul 2011 at 4:25

GoogleCodeExporter commented 8 years ago
Thanks for supplying the link, it appears to not be generating the thumbnails 
for some images correctly. There may be an issue with the thumbnail code. I'll 
check it out with one of your non-working images and see what I find.

Original comment by gorounreal on 29 Jul 2011 at 12:54

GoogleCodeExporter commented 8 years ago
Any luck on this? I'm wondering if it has to do with missing exif or jpg file 
information? I may add a bunch of pics from my camera and see what results that 
gives.

Original comment by gerard.g...@gmail.com on 8 Aug 2011 at 1:28

GoogleCodeExporter commented 8 years ago
I've been able to work out the problem, it appears some devices may not create 
JPEGs correctly. Most image editors are able to open these images and correct 
the issues however PHP does not by default. I've changed a line of code and 
updated PHPPI to 1.0.1 which should fix this issue by trying to bypass any 
image errors.

I've tested with one of your photos and it is working on my end with the 
change. If you wish to keep any customizations but want the fix then just 
overwrite "phppi\includes\classes\phppi.php" with the new version.

Let me know how it goes.

Original comment by gorounreal on 8 Aug 2011 at 1:07

GoogleCodeExporter commented 8 years ago

Original comment by gorounreal on 8 Aug 2011 at 1:07

GoogleCodeExporter commented 8 years ago
Looks like that did it. Thank you. Other issue with image not resizing, will 
post newissue.

Original comment by gerard.g...@gmail.com on 10 Aug 2011 at 1:28

GoogleCodeExporter commented 8 years ago
Great, thanks for submitting the bug.

Original comment by gorounreal on 13 Aug 2011 at 1:26