You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Was sent a .jpg image, needed it .png. When downloading the image from Gmail, set format to All Files:
Changed extension from .jpg to .png:
Having been passing this file which I assumed to be a .png into gd.openPng(), when the img being passed gets to the next method it's used by img.colorAllocate() received error: "Cannot read property 'colorAllocate' of null". Took me awhile to come to the conclusion it was originally a .jpg that had its extension changed and gd.openPng() couldn't read it because it wasn't encoded as a .png.
The text was updated successfully, but these errors were encountered:
Hi thanks for reaching out and sorry for my late reply.
I could see if it's possible to do a check wether there's actually image data to act upon when someone tried to open e.g. a jpg with gd.openPng().
I understand from your comment you would have preferred to be informed earlier that the assumed png is not a png, right?
I'll see what I can do in the upcoming weeks.
🍻 Cheers! Vincent
Was sent a .jpg image, needed it .png. When downloading the image from Gmail, set format to
All Files
:Changed extension from .jpg to .png:
Having been passing this file which I assumed to be a .png into
gd.openPng()
, when the img being passed gets to the next method it's used byimg.colorAllocate()
received error:"Cannot read property 'colorAllocate' of null"
. Took me awhile to come to the conclusion it was originally a .jpg that had its extension changed andgd.openPng()
couldn't read it because it wasn't encoded as a .png.The text was updated successfully, but these errors were encountered: