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.
image-rendering - CSS: Cascading Style Sheets | MDN
The image-rendering CSS property sets an image scaling algorithm. The property applies to an element itself, to any images set in its other properties, and to its descendants.
MDN Web Docs (developer.mozilla.org)