Hey again everyone,
I'm having an issue with the web upload of photos, I keep getting these errors:
Warning: getimagesize(././upload/2010/05/25/thumbnail/TN-20100525085625-6293d646.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /Users/earlnich/Sites/piwigo/admin/include/functions_upload.inc.php on line 266 Warning: filesize() [function.filesize]: stat failed for ././upload/2010/05/25/thumbnail/TN-20100525085625-6293d646.jpg in /Users/earlnich/Sites/piwigo/admin/include/functions_upload.inc.php on line 267 Warning: Cannot modify header information - headers already sent by (output started at /Users/earlnich/Sites/piwigo/admin/include/functions_upload.inc.php:266) in /Users/earlnich/Sites/piwigo/include/page_header.php on line 98
And I'm not sure what it means. The actual images themselves are up (I can open up the link to the real image and it shows it to me), but the thumbnails do not exist (they aren't even in the thumbnail directory).
Thanks for your help!
Liam
Hi Liam,
Are the photos resized?
Can you describe the exact content of your "upload" directory?
Are you using MySQL as database? (we've found a bug on SQLite for photo upload yesterday)
Is GD library installed? (on the administration home click on "show info" link and search "GD" on the page)
Offline
Ah. You're right; seemed to be my GD library. However, now I'm receiving these errors -- any ideas?
Warning: imagesx(): supplied argument is not a valid Image resource in /Users/earlnich/Sites/piwigo/admin/include/functions_upload.inc.php on line 213 Warning: imagesy(): supplied argument is not a valid Image resource in /Users/earlnich/Sites/piwigo/admin/include/functions_upload.inc.php on line 214 Warning: Cannot modify header information - headers already sent by (output started at /Users/earlnich/Sites/piwigo/admin/include/functions_upload.inc.php:213) in /Users/earlnich/Sites/piwigo/include/page_header.php on line 98
Thanks!
Liam
It seems that it's only an issue when I try and upload a PNG file; I get perfect, error-free, thumbnail creation when I upload a JPG image.
Is there anyway that I can get this to work with PNG -- I don't want to have to convert all my images!
Thanks!
Liam
Alright, I've found the answer: if I change like 45 in functions_upload.inc.php to '.png' instead of '.jpg', the thumbnail creation of the png images works perfect.
However, I am unable to batch upload png images (the uploader only looks for jpg images)?
Thanks,
Liam
Liam wrote:
It seems that it's only an issue when I try and upload a PNG file; I get perfect, error-free, thumbnail creation when I upload a JPG image.
Is there anyway that I can get this to work with PNG -- I don't want to have to convert all my images!
Thanks!
Liam
Hum... this issue has already been reported in the chinese forum (well, Winson the Piwigo chinese forum admin notified me since I don't read chinese ;-).
http://cn.piwigo.org/forum/viewtopic.php?id=15704
I've just created a feature request in the bugtracker: [Bugtracker] ticket 1701
Thank you for the investigation, stay tuned :-)
Offline
Liam wrote:
Alright, I've found the answer: if I change like 45 in functions_upload.inc.php to '.png' instead of '.jpg', the thumbnail creation of the png images works perfect.
OK, good I know what to change/add now :-)
Liam wrote:
However, I am unable to batch upload png images (the uploader only looks for jpg images)?
Yes. In admin/themes/default/templates/photo_add_direct.tpl, line 110, adapt:
'fileExt' : '*.jpg;*.JPG;*.jpeg;*.JPEG',
Offline