4 ms·
For photos on your website, are you talking about resizing, presentation, or stripping metadata? For resizing and metadata stripping, try the "sharp" npm packa
by mceachen 7y ago
For photos on your website, are you talking about resizing, presentation, or stripping metadata?
For resizing and metadata stripping, try the "sharp" npm package. It's fast, well documented, and based on libvips.
For pulling metadata, try the "exiftool-vendored" npm package (or just use exiftool directly as a CLI).
For presentation, know that srcset is now widely implemented. https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimed...
- komali2 7y agoThanks for the tips. I meant presenting. Like, should I do a fatty grid? Organize by trip? Etc. As for srcset I use it on my blog but something about Hugo causes my images to rotate.... Sometimes. Lol.