When uploading certain images to a library, some images do not display properly (see attached image 1). This also happens when I click on the icon to see the individual image (image 2). I know the image has uploaded because it gives me the correct file when I go to 'download original image'.

All the files are jpg, but the images that do not display are considerably bigger in size (>5MB file size, ~5000px width/height). Is this the reason for the problem? If so, what settings can I change to display the images properly?

Any help appreciated! (sorry if this is a dupe, couldn't find anything else)
Thanks,
John

CommentFileSizeAuthor
2.png17.71 KBCorbey
1.png152.35 KBCorbey

Comments

Anonymous’s picture

Hello Corbey,

please try this:

1. Have you checked the paths to the images and looked into these directories? Maybe the images_styles have not been created (so far)? This can take some time.
2. Please try to upload the files in a smaller size, let's say 2 MB.

If the images_styles are rendered an in the right spot, can you post the paths to the missing images, and how they differ from the ones working?

Corbey’s picture

Thanks for your reply. Okay so no thumbnails have been created in the media_gallery_thumbnail folder for these files yet.
You say this could take some time, how long does it usually take?
Is there a way to limit the size of files being uploaded, or possibly resize them on upload? The limit for the standard image field doesn't seem to apply to media/gallery and I can't seem to find an equivalent.

Corbey’s picture

Update:

I resized a file to below 2MB and still no joy. I then resized the image dimensions to below 2000 x 2000px and it worked.
Is there any way to allow files above 2000 x 2000px?

If not then I would like to either:
1. Display an error saying the file is too large and needs to be resized for upload or
2. Resize on upload to dimensions that will work.

I'm a bit of a novice so I apologise if this is simple stuff. If anyone could point me in the right direction I would be very grateful.

Thanks,
John

totap’s picture

I've tested it and it works with pictures above 2000px (2668x2001px).
Didn't tested with files >2mb (suppose that it could be dependend of php.ini)

BUT YES! when I upload 1 tested file (this one > 2000px) it didn't show at first. It show up when I upload next file(s). Then another test file (>2000px) was uploaded and showed right.

lsolesen’s picture

Category: bug » support
Status: Active » Fixed

Marking this as fixed, as it seems to be resolved?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.