Photon: Rust/WebAssembly image processing library faster than VIPs and PIL

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. photon

    ⚡ Rust/WebAssembly image processing library (by silvia-odwyer)

    That's some pretty aggressive editorializing in the title. The linked page doesn't once use "faster", "VIPS" or "PIL".

    The page does link to benchmarks [0] but Photon isn't the clear victor. It's slower on the PNG benchmark but faster on the JPG benchmark. There are no benchmarks for PIL.

    It's an interesting project but the differentiating factor is more portability and security than speed. WASM means that this can be run in a nice sandbox where its ability to harm the system is drastically reduced.

    [0]: https://github.com/silvia-odwyer/photon/wiki/Benchmarks

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. zune-image

    A fast and memory efficient image library in Rust

    I just wanted to give a huge shout-out to the excellent zune-jpeg library: https://github.com/etemesi254/zune-image/tree/dev/crates/zun...

    Most Python libraries like PIL rely on some flavor of the venerable libjpeg (e.g. libjpegturbo, mozjpeg) which makes it the de-facto standard for loading jpegs.

    A notable downside is that it's written in C and there have been more than a few exploits found inside it over the years. While it's pretty damn mature by now and there has been a huge amount of fuzzing done to tease out remaining issues, fact remains that it's yet another attack vector that makes your resident security guy or gal raise a few eyebrows.

    With zune-jpeg you get a fully memory-safe implementation that can act as a drop-in replacement, and when you turn on the (admittedly experimental) SIMD support for things like the IDCT and color-space conversion it's as fast, or in places even faster, than libjpegturbo/mozjpeg, even on very large (e.g. 4k by 4k) images.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Dynamic watermarking on the JVM

    1 project | dev.to | 4 Jul 2024
  • Show HN: OS Image processing API running on edge functions using Rust and WASM

    3 projects | news.ycombinator.com | 4 Apr 2024
  • Rust/WebAssembly image processing library

    2 projects | news.ycombinator.com | 1 Nov 2022
  • Off my chest: When are some of you browser devs gonna give us native image scaling? This is the best we got ATM.

    1 project | /r/programming | 20 Jul 2021
  • Why JPEG XL Ignoring Bit Depth Is Genius (and Why AVIF Can't Pull It Off)

    6 projects | news.ycombinator.com | 27 Oct 2025

Did you know that Rust is
the 3rd most popular programming language
based on number of references?