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've just worked on a collection of images which dominant_colours refused to look at, because they were named with JPEG file extension but were actually WebP images. Here's a simple repro:
Under the hood, dominant_colours is using Rust's image crate which relies on file extensions.
In this project, I was able to change the file extensions to match the image type, but I had to know to run file to identify that these were really valid images.
It would be useful if dominant_colours could suggest that a thing that looks like a JPEG image is actually a WebP image, or some other error message that points in the right direction.
The text was updated successfully, but these errors were encountered:
I've just worked on a collection of images which
dominant_colours
refused to look at, because they were named with JPEG file extension but were actually WebP images. Here's a simple repro:Under the hood,
dominant_colours
is using Rust's image crate which relies on file extensions.In this project, I was able to change the file extensions to match the image type, but I had to know to run
file
to identify that these were really valid images.It would be useful if
dominant_colours
could suggest that a thing that looks like a JPEG image is actually a WebP image, or some other error message that points in the right direction.The text was updated successfully, but these errors were encountered: