HaschekSolutions / pictshare

:camera: PictShare is an open source image, mp4, pastebin hosting service with a simple resizing and upload API that you can host yourself. :rice_scene:
https://www.pictshare.net
Apache License 2.0
840 stars 125 forks source link

base64 upload issue #64

Closed evgenyh closed 5 years ago

evgenyh commented 6 years ago

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

evgenyh commented 6 years ago

so far the problem only with png images with transparent background