-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels

