[GH-ISSUE #64] base64 upload issue #43

Closed
opened 2026-02-25 23:40:30 +03:00 by kerem · 1 comment
Owner

Originally created by @evgenyh on GitHub (Jun 27, 2018).
Original GitHub issue: https://github.com/HaschekSolutions/pictshare/issues/64

not sure what causes it, but same file with regular binary upload works fine.
base64 mode returns with following :
<br /> <b>Notice</b>: ########## FILETYPE: image/png in <b>/usr/share/nginx/html/pictshare/models/pictsharemodel.php</b> on line <b>761</b><br /> <br /> <b>Warning</b>: imagepng(): gd-png: fatal libpng error: Wrote palette index exceeding num_palette in <b>/usr/share/nginx/html/pictshare/models/pictsharemodel.php</b> on line <b>790</b><br /> <br /> <b>Warning</b>: imagepng(): gd-png error: setjmp returns error condition in <b>/usr/share/nginx/html/pictshare/models/pictsharemodel.php</b> on line <b>790</b><br /> <br /> <b>Notice</b>: ========= SAVING AS png TO /usr/share/nginx/html/pictshare/tmp/d710q79fd5.png in <b>/usr/share/nginx/html/pictshare/models/pictsharemodel.php</b> on line <b>791</b><br />

after this, file is saved but when accessing it via web, it always return zero sized image

Originally created by @evgenyh on GitHub (Jun 27, 2018). Original GitHub issue: https://github.com/HaschekSolutions/pictshare/issues/64 not sure what causes it, but same file with regular binary upload works fine. base64 mode returns with following : `<br /> <b>Notice</b>: ########## FILETYPE: image/png in <b>/usr/share/nginx/html/pictshare/models/pictsharemodel.php</b> on line <b>761</b><br /> <br /> <b>Warning</b>: imagepng(): gd-png: fatal libpng error: Wrote palette index exceeding num_palette in <b>/usr/share/nginx/html/pictshare/models/pictsharemodel.php</b> on line <b>790</b><br /> <br /> <b>Warning</b>: imagepng(): gd-png error: setjmp returns error condition in <b>/usr/share/nginx/html/pictshare/models/pictsharemodel.php</b> on line <b>790</b><br /> <br /> <b>Notice</b>: ========= SAVING AS png TO /usr/share/nginx/html/pictshare/tmp/d710q79fd5.png in <b>/usr/share/nginx/html/pictshare/models/pictsharemodel.php</b> on line <b>791</b><br /> ` after this, file is saved but when accessing it via web, it always return zero sized image
kerem closed this issue 2026-02-25 23:40:30 +03:00
Author
Owner

@evgenyh commented on GitHub (Jun 27, 2018):

so far the problem only with png images with transparent background

<!-- gh-comment-id:400577897 --> @evgenyh commented on GitHub (Jun 27, 2018): so far the problem only with png images with transparent background
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/pictshare#43
No description provided.