You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm truly humbled by the recent surge in support for sharp.
Whilst ⭐ and the trending status they bring are both amazing, thank you, the real measure of open source success is happy users.
I'd love to find out more about how you or your organisation are using (or plan to use) this module.
Feel free to add a comment with details of who you are, what you're doing with it and why you chose it. Alternatively let me know via @lovell on Twitter.
Thank you!
Reacted by Yves M.
Reacted by Matthew McEachen, Antón Molleda, Muhammad Ubaid Raza, Manda Putra, mstf66x, Tam, Steven, Marvin Heilemann, Rijk van Zanten, Amine Lahlou and 1 more
StoryDesk is using sharp in prod for resizing and optimizing all the user content uploaded to our cloud based presentation app. We also use it behind the scenes to resize image captures of presentation pages for thumbnail generation.
We choose sharp because it is fast and efficient compared to the alternatives.
We are using Sharp as part of an in-house on-the-fly image re-sizing cluster to handle all of our real estate listing photos at HomeFinder.com. Our old system used ImageMagick to pre-process photos before publication on the web. Your library with libvips is fast enough that we can handle all the photo manipulation on-demand, giving us the flexibility to use any photo size we want on the site, while only processing photos that are actually seen by our visitors.
We're using Sharp to resize / optimize / generate thumbnails of images uploaded by our users and manipulate page screenshots on IgniteTeaching.com and our iPad app. I've been very impressed with the performance and the responsiveness of the maintainers - thanks so much for keeping up the great work!
@fiftythree uses sharp on our Mix backend to pyramid (resize) our user image uploads into different resolutions as well as compositing PNGs onto different background colors (hence #94). We previously used ImageMagick and improved our image processing performance by several factors once we switched to sharp. Thanks for all your hard work on this, @lovell ❤️
We are using Sharp at InVisionApp in increasing amounts as we replace legacy ColdFusion code with node microservices. We are using it for thumbnails as well as general resizes, and chose to use Sharp due to the performance gains compared to Image Magick
@Goues brilliant :) How do you handle duplicate uploads and duplicate file names? I sanitize+uniquify filenames but I don't handle duplicates, because I'm not sure if I should then provide the original filename as the upload id, or create some alias…
@wmertens We might open source in the future but not at the moment - there is a lot of stuff specific for our database and integration with other services that would be time consuming to separate.
In general, duplicate uploads are handled by file hashes. You do not upload to a bucket images are served from, but to an upload bucket. Put Event is then send to SQS for ingesting (another lambda) where we take an MD5 of image and create a rename a file accordingly. Duplicate upload means an image of the same md5 name already exists in public bucket. There is also a Dynamo DB table for storing status (uploaded cannot use uploaded image until it is igested and confirmed).
On the smaller project, this pipeline is downscaled by taking care of duplicates at all and users have limit of stored MB of images, so they are themselves responsible for not creating duplicates.
We went with this solution after trying out lambda@edge on cloudfront, because it would allow for no redirects at all, but edge lambdas are not good with binary data and large response bodies so it didn't turn out well.
I'm using sharp at Criteo to resize on the fly pictures I download (as a first step before doing computer vision on them). This is really important to be able to do it fast and correctly to be able to handle the scale (million of pictures) without using too much disk nor too much time.
Using sharp I'm able to download and resize about 1M images per hour. (that's on a single machine, it can probably be even much faster when we'll distribute it)
Activity
ttback commentedon May 27, 2014
@lovell
Great work and thanks for introducing libvips to the node.js ecosystem.
At http://timesmachine.nytimes.com We generate and optimize millions of thumbnails from original New York Times newspaper scans, which happen to be very large tiff files with dimension (~6000 × 6700). That's 40.2 million pixels for one image file. This creates a major performance bottleneck for our thumbnail generation pipeline.
For more information about what we are doing with images:
http://searchaws.techtarget.com/news/2240220787/New-York-Times-goes-back-to-the-future-with-AWS-storage
jonathanong commentedon May 29, 2014
building an image service like imgur and kraken, but i plan to always make it free and public because https://github.com/mgmtio/simgr
right now i'm testing it on heroku, but i'm running into memory problems and i don't want to pay for a better server haha
nathanpeck commentedon Aug 11, 2014
StoryDesk is using sharp in prod for resizing and optimizing all the user content uploaded to our cloud based presentation app. We also use it behind the scenes to resize image captures of presentation pages for thumbnail generation.
We choose sharp because it is fast and efficient compared to the alternatives.
DMarby commentedon Aug 16, 2014
http://unsplash.it/ Uses sharp for serving user-defined sizes of images, because of it's usability and speed
homerjam commentedon Oct 25, 2014
I'm using sharp to crop/resize assets on the fly for various sites (mainly portfolio/image heavy), I've used Imagemagick for years and have been amazed at the performance gains. I was prompted to investigate alternatives by the guy behind http://images.weserv.nl/ who pointed out how slow it was.
bradisbell commentedon Nov 6, 2014
We are using Sharp as part of an in-house on-the-fly image re-sizing cluster to handle all of our real estate listing photos at HomeFinder.com. Our old system used ImageMagick to pre-process photos before publication on the web. Your library with libvips is fast enough that we can handle all the photo manipulation on-demand, giving us the flexibility to use any photo size we want on the site, while only processing photos that are actually seen by our visitors.
thisjustin commentedon Nov 7, 2014
We're using Sharp to resize / optimize / generate thumbnails of images uploaded by our users and manipulate page screenshots on IgniteTeaching.com and our iPad app. I've been very impressed with the performance and the responsiveness of the maintainers - thanks so much for keeping up the great work!
aronallen commentedon Feb 25, 2015
We are using sharp to deliver dynamically resized and retina optimized movie posters for the streaming services youseeplay.dk and blockbuster.dk.
Zewy commentedon Apr 14, 2015
I am working on replacing my php script that get the images from the ftp server and resize it. Nodejs and Sharp seems to use less resources then php.
gasi commentedon Apr 22, 2015
@fiftythree uses sharp on our Mix backend to pyramid (resize) our user image uploads into different resolutions as well as compositing PNGs onto different background colors (hence #94). We previously used ImageMagick and improved our image processing performance by several factors once we switched to sharp. Thanks for all your hard work on this, @lovell ❤️
Robert-Wett commentedon Jul 10, 2015
We are using Sharp at InVisionApp in increasing amounts as we replace legacy ColdFusion code with node microservices. We are using it for thumbnails as well as general resizes, and chose to use Sharp due to the performance gains compared to Image Magick
pajtai commentedon Aug 31, 2015
On the fly local and s3 image resizer.
x-cray commentedon Sep 21, 2015
Image validation/resize on upload and tile() for breaking big floor plans into tiles to show them with Leaflet.
20 remaining items
wmertens commentedon Mar 7, 2019
@Goues brilliant :) How do you handle duplicate uploads and duplicate file names? I sanitize+uniquify filenames but I don't handle duplicates, because I'm not sure if I should then provide the original filename as the upload id, or create some alias…
Feel like maybe open sourcing your solution?
Goues commentedon Mar 7, 2019
@wmertens We might open source in the future but not at the moment - there is a lot of stuff specific for our database and integration with other services that would be time consuming to separate.
In general, duplicate uploads are handled by file hashes. You do not upload to a bucket images are served from, but to an upload bucket. Put Event is then send to SQS for ingesting (another lambda) where we take an MD5 of image and create a rename a file accordingly. Duplicate upload means an image of the same md5 name already exists in public bucket. There is also a Dynamo DB table for storing status (uploaded cannot use uploaded image until it is igested and confirmed).
On the smaller project, this pipeline is downscaled by taking care of duplicates at all and users have limit of stored MB of images, so they are themselves responsible for not creating duplicates.
We went with this solution after trying out lambda@edge on cloudfront, because it would allow for no redirects at all, but edge lambdas are not good with binary data and large response bodies so it didn't turn out well.
There is a good "how to start" here: https://aws.amazon.com/blogs/compute/resize-images-on-the-fly-with-amazon-s3-aws-lambda-and-amazon-api-gateway/
wmertens commentedon Mar 7, 2019
Very interesting - another aws blog has a post on using sharp and lambda@edge: https://aws.amazon.com/blogs/networking-and-content-delivery/resizing-images-with-amazon-cloudfront-lambdaedge-aws-cdn-blog/
IAmJSD commentedon Apr 1, 2019
I'm using Sharp to handle image manipulation in a open source image capture application for Mac and Linux: https://github.com/MagicCap/MagicCap/blob/develop/magiccap/capture.js#L145
chaddjohnson commentedon Apr 20, 2019
I would like to use Sharp to create CMYK print files.
rom1504 commentedon Jan 11, 2020
I'm using sharp at Criteo to resize on the fly pictures I download (as a first step before doing computer vision on them). This is really important to be able to do it fast and correctly to be able to handle the scale (million of pictures) without using too much disk nor too much time.
Using sharp I'm able to download and resize about 1M images per hour. (that's on a single machine, it can probably be even much faster when we'll distribute it)
whatl3y commentedon Jul 20, 2020
It's the "engine" behind my project photosaic.
I now have >100 stars after posting to Show HN :)
mceachen commentedon Sep 15, 2020
PhotoStructure uses sharp to build and resize preview images: it's great to have a performant library that runs on macOS, Windows, and Linux.
👍 Thanks! 🌟
softy2k commentedon Mar 25, 2021
I'm using sharp to resize/composite on the fly some pictures. The main reason: it's super fast
themoenen commentedon Apr 15, 2022
I use Sharp for all image resizing (both during upload and in realtime by our image server) on Arthur.io.
Couldn't do without <3
rambo-panda commentedon Jun 16, 2023
meotimdihia commentedon Jul 26, 2023
I use Sharp to resize and optimize images.
gibsfinancedev commentedon Aug 16, 2024
bradisbell commentedon Aug 16, 2024
@gibsfinancedev You should do your own audit if it matters to you.