I'd like to make a static HTML page with a gallery of pixel art images that can be viewed in a javascript-powered "lightbox".
-
I'd like to make a static HTML page with a gallery of pixel art images that can be viewed in a javascript-powered "lightbox". Tons of existing libraries for that, but none of them seem to have a couple niche features I need: aspect correction from non-square (4:2.5) pixel source resolution, nearest-neighbor upscaling small (320x200) images to fill screen / a larger area. Am I in "code your own custom lightbox" territory here, or is there a smarter path?
-
Ryan Castellucci :nonbinary_flag:replied to JP last edited by
@jplebreton nerdsnipe someone into coding it for you (no, actually)
-
Ryan Castellucci :nonbinary_flag:replied to Ryan Castellucci :nonbinary_flag: last edited by
@jplebreton you can do the nearest neighbor upscaling with just css in most browsers I believe, FWIW.
https://developer.mozilla.org/en-US/docs/Web/CSS/image-rendering
Copyright © 2024 NodeBB | Contributors