image
jxl.js
image | jxl.js | |
---|---|---|
37 | 25 | |
4,517 | 296 | |
1.5% | - | |
9.1 | 0.0 | |
4 days ago | about 1 year ago | |
Rust | JavaScript | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
image
-
Transitioning From PyTorch to Burn
With the help of the image crate, loading an image from disk is fairly straightforward.
-
CVE-2023-4863: Heap buffer overflow in WebP (Chrome)
FTR there is a WebP decoder implementation in safe Rust in the image crate: https://github.com/image-rs/image
It used to be quite incomplete for a long time, but work last year has implemented many webp features. Chromium now has a policy of allowing the use of Rust dependencies, so maybe Chromium could start adopting it?
-
Porting a local app to Web
Hello! So I have a local app that I am currently running on desktop (windows). I'm using egui for the UI, and the program basically opens a folder, gets all the images in the folder, and then uses the image-rs library to resize and create a grid of images / some other operations.
- Setting the DPI of an image before saving it
-
png crate gets an ultrafast compression mode, up to 4x faster decompression
png is the de-facto standard Rust crate for reading and writing PNG images, used e.g. by the image crate.
-
What's everyone working on this week (12/2023)?
There's also a CLI to convert between formats. It uses the crate image.
-
The `exr` crate got up to 3x faster, even better performance coming soon
exr is a is a 100% Rust and 100% safe code library for reading and writing OpenEXR images. It is used by the popular image crate to read and write OpenEXR.
-
Announcing zune-jpeg: Rust's fastest JPEG decoder
We're currently looking for contributors to add support for zune-jpeg to the image crate. The image maintainers are open to it, but don't have the capacity to do it themselves. You can find more details here.
-
Does the rust image crate support paletted png?
It would be helpful to contribute to the general change towards an untyped buffer with runtime representations for color space information and fallible conversions. (https://github.com/image-rs/image/pull/1718). It's currently stalling on having too few eyeballs to judge the impact and need for that complexity.
-
picst - a CLI tool to resize clipboard images on the fly
It uses https://github.com/1Password/arboard and https://github.com/image-rs/image under the hood. I haven't tested deeply but I assume it should handle many formats out of the box.
jxl.js
-
JPEG XL and the Pareto Front
> It's so frustrating how the chromium team is ending up as a gatekeeper of the Internet by pick and choosing what gets developed or not.
https://github.com/niutech/jxl.js is based on Chromium tech (Squoosh from GoogleChromeLabs) and provides an opportunity to use JXL with no practical way for Chromium folks to intervene.
Even if that's a suboptimal solution, JXL's benefits supposedly should outweight the cost of integrating that, and yet I haven't seen actual JXL users running to that in droves.
So JXL might not be a good support for your theory: where people could do they still don't. Maybe the format isn't actually that important, it's just a popular meme to rehash.
-
Still no love for JPEG XL: Browser maker love-in snubs next-gen image format
https://github.com/niutech/jxl.js a javascript polyfill taken from the main page https://jpegxl.info/
There are other decoders [0] written in a "safe language" (rust) listed as well. So no there are many "safe" implementations
[0] https://github.com/tirr-c/jxl-oxide
- CVE-2023-4863: Heap buffer overflow in WebP (Chrome)
-
Apple Safari 17 beta release notes: JPEG XL support added
> If you care about JXL, and only want to support JXL, and you put a JXL in your picture tag, then the browser still won't render it, even if you use a picture tag.
Is this true if you provide a polyfill? Have you tried it and it failed? (Serious question.)
https://github.com/niutech/jxl.js
-
FSF Slams Google over Dropping JPEG-XL in Chrome
All of the people here who are so passionate about JPEG-XL will be happy to learn that there's nothing preventing them from using it on their sites right now:
https://github.com/niutech/jxl.js
If you want Chrome to ship with JPEG-XL support, use it. At some point, browser makers will decide it's worth the cost to them and all users to add it.
-
Nvenc vs. QSV: Who Has the Best Hardware AV1 Encoder?
> Please be aware that some images may not load on this page unless your browser supports JPEG-XL
The site could provide a WebAssembly decoder to make the JPEG-XL images work for everyone.
For example, here's a WebAssembly decoder: https://github.com/niutech/jxl.js
Demo: https://niutech.github.io/jxl.js/
-
Question: Is there a list anywhere of which browsers support JPG-XL by default?
at this point, I'd consider just using a polyfill library to decode jpegxl data client-side, like JXL https://github.com/niutech/jxl.js
-
Efficient and performance-portable vector software
:) There are some wasm vs native benchmarks in the context of JPEG XL (for example https://github.com/niutech/jxl.js#benchmark)
-
Adding JPEG XL & QOI Support to my Website OS
For adding JPEG XL support I went with jxl.js which I modified for my use case. After looking through the main file, which is also called jxl.js, I decided I only needed 2 relevant code blocks. The one to decode the image and the one to turn the ImageData into something I could display in my existing codebase (which I already partially had implemented for another use case).
-
JXL.js decoder now features multithreading and SIMD
It's easy - you'll get ReferenceError: SharedArrayBuffer is not defined when the COOP and COEP headers are not set. Multithreading is enabled by default if you use the scripts from multithread folder. If only SIMD is supported, it is being used. Oh, and progressive decoding is also enabled by default.
What are some alternatives?
opencv-rust - Rust bindings for OpenCV 3 & 4
jxl-wasm - WebAssembly-compiled JPEG XL command line tool for Node.js
photon - ⚡ Rust/WebAssembly image processing library
ImageMagick - 🧙♂️ ImageMagick 7
imageproc - An advanced image processing library for Rust.
jpeg-xl - jpeg-xl for the Windows build of ImageMagick
imageproc (PistonDevelopers) - Image processing operations
squoosh - Make images smaller using best-in-class codecs, right in the browser.
rust-ndarray - ndarray: an N-dimensional array with array views, multidimensional slicing, and efficient operations
libiamf - Reference Software for IAMF
oxipng - Multithreaded PNG optimizer written in Rust
node-unblocker - Web proxy for evading internet censorship, and general-purpose Node.js library for proxying and rewriting remote webpages