This question is answered. Helpful answers available: 1. Correct answers available: 1.


Permlink Replies: 18 - Pages: 2 [ 1 2 | Next ] - Last Post: 12-Feb-2020 21:50 Last Post By: markosphoto Threads: [ Previous | Next ]
markosphoto

Posts: 16
Registered: 31-Aug-2011
HiDPI images in Lightbox
Posted: 27-Jun-2019 20:15
 
  Click to reply to this thread Reply
Hi,
I don't seem to get HiDPI images working in Tiger (tried Photoblogger as well, same). I have checked the option for HiDPI images in the Pages tab and provide images that are at least twice the resolution of the image size for the Lightbox (Lightbox: 1080x1080, images: >2160x2160). The Lightbox always shows the image at its "native" resolution (2160x2160). I have also selected "Link to scaled-down images only" in the pages tab. See my settings in attached screenshots.
(this on a local test-server, the published site is still using non-HiDPI until I get it to work).

Am I missing a setting or something else?

Kind regards,
Markos
jGromit

Posts: 7,796
Registered: 31-Jan-2006
Re: HiDPI images in Lightbox
Posted: 27-Jun-2019 22:06   in response to: markosphoto in response to: markosphoto
 
  Click to reply to this thread Reply
Yes, I'm seeing the same thing. Even selecting Scaling: Original (1:1) size and Never scale up, the lightbox images are still being shown larger than the chosen image bounds. De-selecting HiDPI images restores the expected lightbox behavior.
markosphoto

Posts: 16
Registered: 31-Aug-2011
Re: HiDPI images in Lightbox
Posted: 30-Jan-2020 20:05   in response to: markosphoto in response to: markosphoto
 
  Click to reply to this thread Reply
Hi,
Any update on the HiDPI issue for the Lightbox images?

Regards,
Markos
Laza

Posts: 2,300
Registered: 6-Sep-2005
Re: HiDPI images in Lightbox
Posted: 31-Jan-2020 09:10   in response to: markosphoto in response to: markosphoto
 
  Click to reply to this thread Reply
Hasn't this fixed since? Unfortunately I don't have a HiDpi monitor, but when I use Chrome's built-in debugger and select "HiDpi laptop" emulation, everything looks nice.
jGromit

Posts: 7,796
Registered: 31-Jan-2006
Re: HiDPI images in Lightbox
Posted: 31-Jan-2020 13:48   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
You don't need a high-density display to test this. Set the image bounds to 1000x800, HiDPI, and tell Tiger Never scale up. The lightbox should never be more than 1000px wide. Period. Ever. But the lightbox ends up being wider than that on a large-ish monitor.

On a high-density monitor, what Tiger is doing is defeating the purpose of the HiDPI setting, by showing the image at normal density.
jGromit

Posts: 7,796
Registered: 31-Jan-2006
Re: HiDPI images in Lightbox
Posted: 31-Jan-2020 14:07   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
In Java terms, Tiger is doing this:
lightboxWidth = Math.min(monitorWidth, imageWidth);
That would be fine if it were taking the image width as reported by jAlbum, but it's taking the actual width of the JPG, which is double that. What it needs to be doing:
lightboxWidth = Math.min(monitorWidth, Math.min(imageWidth, maxImageWidth));
Laza

Posts: 2,300
Registered: 6-Sep-2005
Re: HiDPI images in Lightbox
Posted: 31-Jan-2020 17:20   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
Thanks, this helped a lot.

I will release a new updated scaling which will also take care of the external content, and can read dimensions from various HTML tags.
jGromit

Posts: 7,796
Registered: 31-Jan-2006
Re: HiDPI images in Lightbox
Posted: 01-Feb-2020 01:03   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
This is still not working properly in Tiger 2.10.2.

A simple test. Add the linked image to a project.

https://jgromit.jalbum.net/dv01.jpg

Leave the image bounds set at 1000x800 (the default), but choose HiDPI images. In the Tiger settings, choose Never scale up.

On my 1920x1080 monitor, the lightbox shows the image at 1268x869px. It should never, ever, be shown larger than 1000x800, the image bounds. Without HiDPI images chosen, it shows correctly at 1000x669px.
Laza

Posts: 2,300
Registered: 6-Sep-2005
Re: HiDPI images in Lightbox
Posted: 01-Feb-2020 10:28   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
Attachment HiDpiTest.JPG (180.9 KB)
Attachment HiDpiTest-devtools.JPG (44.9 KB)
That's weird. I see this.
jGromit

Posts: 7,796
Registered: 31-Jan-2006
Re: HiDPI images in Lightbox
Posted: 01-Feb-2020 14:16   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
Attachment regular.png (1.4 MB)
Attachment hidpi.png (2.3 MB)
Attachment hidpidev.png (73.7 KB)
Very mysterious. Here's what I'm getting, regardless of browser.

ETA: Image bounds 1000x800, HiDPI images, Fit both dimensions, Never scale up. I've even reinstalled jAlbum and Tiger. No change.
Laza

Posts: 2,300
Registered: 6-Sep-2005
Re: HiDPI images in Lightbox
Posted: 01-Feb-2020 15:37   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
Perhaps removing the site cookies can fix this?
jGromit

Posts: 7,796
Registered: 31-Jan-2006
Re: HiDPI images in Lightbox
Posted: 01-Feb-2020 15:41   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
I doubt it - I'm seeing the same thing in local preview (with and without the embedded server), and when viewing the album from the web.

Here's the album: (demo album removed - problem fixed)
Laza

Posts: 2,300
Registered: 6-Sep-2005
Re: HiDPI images in Lightbox
Posted: 01-Feb-2020 16:12   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
Can you please upload with "Debug mode" on?
Here's mine:
http://laza.jalbum.net/Testing%20HiDpi/#img=dv01.jpg
I wonder what might be the difference.
Laza

Posts: 2,300
Registered: 6-Sep-2005
Re: HiDPI images in Lightbox
Posted: 01-Feb-2020 16:14   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
Ooops, I see now - it's really about the minified version. Unfortunately Koala - I use to minify Javascript and CSS - sometimes won't automatically start. I will fix it ASAP.
jGromit

Posts: 7,796
Registered: 31-Jan-2006
Re: HiDPI images in Lightbox
Posted: 01-Feb-2020 16:40   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
That's more like it. :)

ETA: Take the rest of the weekend off.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums