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?
Conversation
Notices
-
Embed this notice
JP (jplebreton@mastodon.social)'s status on Sunday, 01-Sep-2024 06:09:27 JST JP -
Embed this notice
Ryan Castellucci :nonbinary_flag: (ryanc@infosec.exchange)'s status on Sunday, 01-Sep-2024 06:09:27 JST Ryan Castellucci :nonbinary_flag: @jplebreton nerdsnipe someone into coding it for you (no, actually)
-
Embed this notice
Ryan Castellucci :nonbinary_flag: (ryanc@infosec.exchange)'s status on Sunday, 01-Sep-2024 06:11:46 JST Ryan Castellucci :nonbinary_flag: @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
-
Embed this notice