Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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/Multimed...



Thanks 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: