exif-rs
rawloader
exif-rs | rawloader | |
---|---|---|
2 | 3 | |
208 | 320 | |
- | 1.9% | |
5.5 | 5.4 | |
17 days ago | 10 months ago | |
Rust | Rust | |
BSD 2-clause "Simplified" License | GNU Lesser General Public License v3.0 only |
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.
exif-rs
-
Hey Rustaceans! Got a question? Ask here! (27/2022)!
I dont want the files to waste a lot of space so i decided to resize them. For that i used the resize method from the "image" crate. Everything works fine, until i start to upload images above 5mb. Then the resize method starts to rotate the images. I think i narrowed it down to the resize function deleting any existing exif data inside the image file. That way the orientation flag is removed and the image is in its default position. I already tried to fix this, by saving the exif data before resizing and then rewriting it to the image file. The only library that i could find that supports writing (at least for png and jpeg) was this one: kamadax-exif. The problem is, that when i write the exif data (all the previous data or just the orientation data) the file gets corrupted. Now to my question: Can someone recommend a library that can resize images, that preserves the aspect ratio and does not delete the exif data? if not, does someone have an idea on how to resize the images differently? Or maybe there exists another exif data crate that i can use? I hope this question is understandable, thanks in advance :)
-
Announcing: ImageSieve, a tool to assist in sorting and archiving images and videos
I absolutely loved all the crates available that made my life very simple in many cases. I used (among others) the slint ui framework, kamadak-exif, img_hash, fast_image_resize and rawloader.
rawloader
-
Announcing: ImageSieve, a tool to assist in sorting and archiving images and videos
I absolutely loved all the crates available that made my life very simple in many cases. I used (among others) the slint ui framework, kamadak-exif, img_hash, fast_image_resize and rawloader.
-
QOI: Lossless Image Compression in O(n) Time
The simplest form is just to pack 10 or 12 bit values. There's all kinds of variations of that:
https://github.com/pedrocr/rawloader/blob/a59bb78d156277781a...
There are a few formats that use a curve and less bits. They do become lossy and doing dithering on decompress is useful to avoid banding.
The Nikon one you mention was only used very early and is decoded by decode_8bit_wtable() in that file. It's just looking up the 8 bit value in the table and then adding some randomness to prevent the banding.
What are some alternatives?
img-parts - Low level crate for reading and writing Jpeg, Png and RIFF image containers
dnglab - Camera RAW to DNG file format converter
fast_image_resize - Rust library for fast image resizing with using of SIMD instructions.
rawspeed - fast raw decoding library
image-sieve - GUI based tool to sort and categorize images written in Rust
exiftool-rs - Image metadata scrubber written in Rust.
tutorials - 📚 Stash of tutorials completed for learning cool stuff.
qoi - A rust implementation of the “Quite OK Image” format for fast, lossless image compression
img-hash - A Rust library for calculating perceptual hash values of images
msgpack-rust - MessagePack implementation for Rust / msgpack.org[Rust]