7 comments

  • Daiz49 days ago
    Been using (and occasionally contributing to) Sharp for quite a while, both professionally and personally. Great library to have at hand when you need to deal with images.
  • 8n4vidtmkvmk48 days ago
    Good library. API can be a bit quirky. Like if you want to read image size before and/or after a resize or if you do or don't want to respect the image orientation/rotation in the image meta data. I usually have to convert to a buffer and then back to Sharp again for it to reload the changes but it works!
  • ahurmazda48 days ago
    Also worth mentioning libvips[0] the underlying engine behind sharp. We use the golang wrapper at work and love the simplicity and speed (ofc)<p>[0]<a href="https:&#x2F;&#x2F;github.com&#x2F;libvips&#x2F;libvips" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;libvips&#x2F;libvips</a>
  • bhouston48 days ago
    It is an amazing library! Been using it for years. It is used in a number of projects I&#x27;ve created including <a href="https:&#x2F;&#x2F;benhouston3d.com" rel="nofollow">https:&#x2F;&#x2F;benhouston3d.com</a> and <a href="https:&#x2F;&#x2F;threekit.com" rel="nofollow">https:&#x2F;&#x2F;threekit.com</a> for auto image resizing, format conversion and optimization.
  • jcupitt48 days ago
    libvips, the library behind sharp, has just released version 8.18.0: <a href="https:&#x2F;&#x2F;www.libvips.org&#x2F;2025&#x2F;12&#x2F;04&#x2F;What&#x27;s-new-in-8.18.html" rel="nofollow">https:&#x2F;&#x2F;www.libvips.org&#x2F;2025&#x2F;12&#x2F;04&#x2F;What&#x27;s-new-in-8.18.html</a><p>It includes support for UltraHDR (HDR and SDR in one JPEG file), camera RAW images, and the Oklab colourspace. This should all be coming to sharp in the next six month or so.
  • pupppet48 days ago
    Been using this forever in CloudFront behaviors to auto-resize images. Thanks for the work, Sharp!
    • pestkranker48 days ago
      We&#x27;re doing the same! The Lambda function also has an authentication layer, so we can protect user-uploaded assets.
    • giorgioz48 days ago
      Interesting! Can you tell me more how you use CloudFront (cache) behaviours with sharp?
      • pupppet48 days ago
        Lots of ways to do this but generally you attach a Lambda function to an origin response. If the path meets specific conditions (is 404&#x2F;403, contains specific query string param) then run the Lambda function.<p>So imagine if you have:<p>original.jpg<p>Then just return it from the origin.<p>But imagine if you have original.jpg?size=150<p>Run the Lambda function (in this case a Sharp resize function) on the original.jpg file and return it. It&#x27;ll get cached so the next time someone calls original.jpg?size=150 it just return the 150px width image without running any function as there was never a need to hit the origin.
  • ejoebstl48 days ago
    Sharp is great. Used it at projects at scale and it never let me down.