Search…

X3 Photo Gallery Support Forums

Search…
 
lowagie
Experienced
Topic Author
Posts: 46
Joined: 29 Sep 2006, 07:27

the image could not be loaded

18 Aug 2015, 11:29

Hi all,

I'm playing around with the X3 and looking forward for an official CR before I publish my new site & work.

Today I had some issues when I upload several pictures from the same album/lightroom export with same settings & same naming.

2 problems;
- when shown in the album, the aspect is not correct for 1 of the pictures. please look at the portrait pictures in link below:
http://photolowagie.com/lowagie/galleries/travel/france
picture THI_9421
- when opening this strange aspect ratio picture, I get an error "the image could not be loaded"
http://photolowagie.com/lowagie/galleri ... p=THI-9421

The image itself is linking to ../render/.. instead of ../content/..
The other portrait picture has the same path, but has no problem. other images just link to ../content/.. also strange?

* Uploading in another album; does not solve the issue
* viewing the image in the panel DOES work, with correct aspect ratio!

Any idea what's wrong?

Thijs
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: the image could not be loaded

18 Aug 2015, 15:16

lowagie wrote:- when shown in the album, the aspect is not correct for 1 of the pictures. please look at the portrait pictures in link below:
http://photolowagie.com/lowagie/galleries/travel/france
picture THI_9421
Really not sure what you mean. This is what I see, and the aspect ratio of that image in the layout is identical to the aspect ratio of the original image:
Image

The original image full-size image in the link below has the exact same aspect ratio:
http://photolowagie.com/lowagie/content ... I_9421.jpg
lowagie wrote:- when opening this strange aspect ratio picture, I get an error "the image could not be loaded"
http://photolowagie.com/lowagie/galleri ... p=THI-9421
It works fine here:
Image

However, there is a chance you are getting a timeout on your server because it is trying to resize the image to something your server is not capable of resizing to. Are you viewing from a very large (or tall) monitor? This could happen because that image is very unusual dimensions.

Regardless, this issue is not related to aspect ratio and I can't see why you see any difference in aspect ratio.
lowagie wrote:The image itself is linking to ../render/.. instead of ../content/..
This is perfectly normal. Imagevue X3 uses many different sizes of images for displaying images in your layout and popup depending on the device resolution, pixel ratio and layout. The original image is considered the "largest" size, and it will always display smaller sizes if the specific layout and/or device does not require a larger image.
lowagie wrote:The other portrait picture has the same path, but has no problem. other images just link to ../content/.. also strange?
Well, as long as the only problem we are talking about is that you are getting "the image can not be loaded", then yes the problem could be problems resizing the specific image on your server. I don't see any problems with aspect or the url path.
lowagie wrote:* Uploading in another album; does not solve the issue
Because it is related to the image itself, the screen size you are on, and the memory capacity of your server.
lowagie wrote:* viewing the image in the panel DOES work, with correct aspect ratio!
Yes, because the panel disregards intermediate sizes, and just loads the full original.
lowagie wrote:Any idea what's wrong?
So concluding that the only issue is specifically for you, I am curious exactly where you get "the image can not be loaded". It is when you open the specific image in the popup window right? Can you please do the following: # Right-click on the image in the layout, and select "copy link address", and paste the link?
Image
 
lowagie
Experienced
Topic Author
Posts: 46
Joined: 29 Sep 2006, 07:27

Re: the image could not be loaded

19 Aug 2015, 04:14

First, I discovered my original picture I uploaded was 1068*1900, not in a 3:2 aspect ratio. Looks like something went wrong in my lightroom export. Sorry for that (says Adobe)
mjau-mjau wrote:
lowagie wrote:- when shown in the album, the aspect is not correct for 1 of the pictures. please look at the portrait pictures in link below:
http://photolowagie.com/lowagie/galleries/travel/france
picture THI_9421
Really not sure what you mean. This is what I see, and the aspect ratio of that image in the layout is identical to the aspect ratio of the original image:
Image
That's how I see it, different aspect, but that's due to the uploaded picture (wrong aspect, but shown correct)
Image
mjau-mjau wrote: The original image full-size image in the link below has the exact same aspect ratio:
http://photolowagie.com/lowagie/content ... I_9421.jpg
lowagie wrote:- when opening this strange aspect ratio picture, I get an error "the image could not be loaded"
http://photolowagie.com/lowagie/galleri ... p=THI-9421
It works fine here:
Image
This screenshot that's working fine with you is from 9904, the problem picture is 9421. This 9904 is also no problem over here.
mjau-mjau wrote:
However, there is a chance you are getting a timeout on your server because it is trying to resize the image to something your server is not capable of resizing to. Are you viewing from a very large (or tall) monitor? This could happen because that image is very unusual dimensions.
Yes, I have a 3280x2048 resolution. and indeed, on my mobile device (iphone) it's perfect
When I reload the page on my laptop display (1366x768) it loads the image perfect.
mjau-mjau wrote: Regardless, this issue is not related to aspect ratio and I can't see why you see any difference in aspect ratio.
lowagie wrote:The image itself is linking to ../render/.. instead of ../content/..
This is perfectly normal. Imagevue X3 uses many different sizes of images for displaying images in your layout and popup depending on the device resolution, pixel ratio and layout. The original image is considered the "largest" size, and it will always display smaller sizes if the specific layout and/or device does not require a larger image.
lowagie wrote:The other portrait picture has the same path, but has no problem. other images just link to ../content/.. also strange?
Well, as long as the only problem we are talking about is that you are getting "the image can not be loaded", then yes the problem could be problems resizing the specific image on your server. I don't see any problems with aspect or the url path.
lowagie wrote:* Uploading in another album; does not solve the issue
Because it is related to the image itself, the screen size you are on, and the memory capacity of your server.
lowagie wrote:* viewing the image in the panel DOES work, with correct aspect ratio!
Yes, because the panel disregards intermediate sizes, and just loads the full original.
lowagie wrote:Any idea what's wrong?
So concluding that the only issue is specifically for you, I am curious exactly where you get "the image can not be loaded". It is when you open the specific image in the popup window right? Can you please do the following: # Right-click on the image in the layout, and select "copy link address", and paste the link?
Image
I get the issue when I click the image from the album to view it.
the link you've asked:
http://photolowagie.com/lowagie/render/ ... I_9421.jpg

This is the reply from the server: Fatal error: Allowed memory size of 26214400 bytes exhausted (tried to allocate 7462913 bytes) in /home/photolow/public_html/lowagie/app/parsers/slir/slirimage.class.php on line 632

the original picture (http://www.photolowagie.com/downloads/THI_9421.jpg) is only 508KB. I have pictures >1MB in my test where this all works fine.

What's the best solution; upload my images in a smaller format? (the gallery needs to look good on high resolutions (4K, 5K, retina,...))
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: the image could not be loaded

19 Aug 2015, 05:17

I'm gonna narrow down this issue, because it's all related to this:
http://photolowagie.com/lowagie/render/ ... I_9421.jpg
Code
Fatal error: Allowed memory size of 26214400 bytes exhausted (tried to allocate 7462913 bytes) in /home/photolow/public_html/lowagie/app/parsers/slir/slirimage.class.php on line 632
Let me explain to you what's going on here in steps, and why this issue is in fact a very "unlucky" coincidence.

# First of all, Imagevue loads resized images based on math and algorithms to best suit the specific layout- and device that it is being viewed from. That is why you will see /render/ path for many images, as the original /content/ is considered max size.

# Why it works here? For example, from here on my macbook 13" retina, it loads a smaller image, which works fine.
http://photolowagie.com/lowagie/render/ ... I_9421.jpg

# Your original image is 1068 px wide. That is still bigger than the "estimated" size 1024px it wants to load for your specific screen (I assume a large LCD). Therefore, it tries to load the resized image ... If your original image was 1024px wide (or smaller), it would load the original image without resizing, and there would not be any errors.

# Why does it work with the other portraits? Your "other" portraits just happen to not be as extreme aspect as this specific image. The other images that work, request a smaller height in the resize than the image that creates the error. This also proves that it is likely that your server is just a very few % short on memory to be able to render the image that creates the error.

# But why the error though? This is because this specific image has an incredibly unconventional aspect ratio, and your server simply doesn't have the memory to handle resizing to 1024 x 1822 px (which is a very large "height" value).

For example, the other portraits are requesting 1024 x 1534px, as you can see a smaller size.

# Conclusion, this issue only happens specifically when 1) Your server has limited memory resources (although that is normal), 2) Only when being viewed from a large monitor where the "max" 1024 width is calculated (as in your case), 3) Only for such a specific ultra-tall aspect ratio (if it was for instance 2:3 aspect, it would not have problems loading 1024 x 1536). 4) Because essentially, this ultra-tall aspect ratio is creating a bigger image than your server (and therefore Imagevue) is able to process properly.

Solution
I am not sure how your resizing workflow is, but essentially the image width of such aspect is too large. When resizing images with such aspects, the problem would be solved if you had a max-width of 1024 px. If you have 1024px width instead of 1068px, the X3-resizer would not need to kick in when requesting the 1024px size, and it would show the original instead.

For images of normal aspect ratios like 3:2 or 2:3 (or even your other portrait aspects), you need not worry about anything. They will resize nicely because they won't get out-of-proportion resize requests based on extreme aspects.