imagelightbox icon indicating copy to clipboard operation
imagelightbox copied to clipboard

[Request] Custom height not dependant on viewport

Open bbbenji opened this issue 9 years ago • 3 comments

I would like to have the option to define a minimum height for an image which would allow it to expand past the viewport and display more via scrolling. Maybe a better solution would be to set a minimum width on images instead.

Example before Example after

bbbenji avatar Nov 18 '16 10:11 bbbenji

Hi @bbbenji . Can you provide a use-case? It would help.

paxperscientiam avatar Dec 01 '16 06:12 paxperscientiam

Sure @paxperscientiam, for example if the image to be displayed is 800 x 3000px, an infographic. The image's max height is constrained to the viewport height, it will be unreadable. Therefore if it was constrained by width and scrolling was allowed, the image would show at a size comparable to the original, if not original. This would allow readability of any text on the image.

bbbenji avatar Dec 01 '16 07:12 bbbenji

Thanks @bbbenji , I will look into this. @rejas

I've had a similar problem and have used openseadragon. It works quite well, though it is a real pain to setup.

Anyway, this shouldn't take to long to figure. Thanks for your patience.

EDIT

@bbbenji see #77 for progress. Feel free to give input and try test.

paxperscientiam avatar Dec 01 '16 19:12 paxperscientiam