Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Cannot upload/resize some images taken from a digital camera #12

Closed
SubodhDahal opened this Issue · 2 comments

2 participants

@SubodhDahal

Whenever I try to upload photos, that have been taken from digital cameras, the following exception occurs:

imagesx() expects parameter 1 to be resource, boolean given

Each of the image is more than 2MB in size, resolution is 3000x4000 pixels and the filetype is JPG.

I haven't installed any image processing libraries so I believe GD library is being used.

@maikeldaloo
Owner

The size of the image is only limited by your PHP settings. So that shouldn't be why it's not working.

Would you mind sharing your code, I just wanna see if there's something in there.

The only reason that could happen, I believe, is if the mime type of the image you upload isn't recognised.

@SubodhDahal

The size limit of the image seemed to be the problem. So now I check the size of the image and the mime type before sending it to resizer. Thanks for the help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.