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


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

Posts: 16
Registered: 31-Aug-2011
Re: HiDPI images in Lightbox
Posted: 07-Feb-2020 21:31   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
Thanks, it seems to have been fixed. At least when Link to scaled-down images only is chosen.

A question: Should the HiDPI setting be respected also when Link to originals is chosen?

Regards,
Makos
jGromit

Posts: 7,791
Registered: 31-Jan-2006
Re: HiDPI images in Lightbox
Posted: 07-Feb-2020 22:23   in response to: markosphoto in response to: markosphoto
 
  Click to reply to this thread Reply
markosphoto wrote:
A question: Should the HiDPI setting be respected also when Link to originals is chosen?

An interesting question. At present, the jAlbum core ignores the HiDPI setting if you choose Link to originals, since it's not generating any images - it's just using your original, untouched.

But an argument could be made that it should do with originals exactly what it does with scaled images, i.e., lie to the skin about the imageWidth and imageHeight. In other words, if you supply an original that's 4000x3000, it should tell the skin that the dimensions are 2000x1500. So, on a normal monitor, you'd see a 2000x1500 image. On a Retina display, it would display as 2000x1500 CSS pixels, but the display would be using the full 4000x3000 image to fill that 2000x1500 space, thereby yielding a sharper image.

ETA: The problem is that some skins would really choke on this, particularly those that are using a third-party lightbox script, one that can't be altered easily.
Laza

Posts: 2,300
Registered: 6-Sep-2005
Re: HiDPI images in Lightbox
Posted: 08-Feb-2020 09:30   in response to: markosphoto in response to: markosphoto
Helpful
  Click to reply to this thread Reply
Yes, can be fixed - I just didn't think about this scenario. (Fortunately my skins operate with own lightbox.)
markosphoto

Posts: 16
Registered: 31-Aug-2011
Re: HiDPI images in Lightbox
Posted: 12-Feb-2020 21:50   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
Thank Laza, would be great if it could be fixed for original images as well!

Regards,
Markos
Legend
Forum admins
Helpful Answer
Correct Answer

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