-
-
Notifications
You must be signed in to change notification settings - Fork 413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot convert from AVIF to BMP #1189
Comments
Could you reduce this to a small code sample that I can use to reproduce your issue? Otherwise I would need to debug your code. |
The problem here is how the image is written. Because you are using the In your situation I would advise you to use |
But it only happens with bmp and in my sample I do not use streams. All other conversions work. |
Okay, my code was probably wrong. I have changed the saving to this: https://github.com/Squidex/assets/blob/master/Squidex.Assets.ImageMagick/ImageMagickThumbnailGenerator.cs#L125 And this works. It seems that when I load the avif as collection it has 5 images. No idea, why. And therefore all five images are saved to the bmp stream or file. |
When you load an image with the |
Yes. I know. But I created the avif by converting from png manually. So I don't see how it can have more than one 1 layer. |
Magick.NET version
11.12
Environment (Operating system, version and so on)
Windows, .NET 6
Description
I have an asset library that supports different formats and stores. I have tests for conversion for all formats, and when I run the test for AVIF -> BMP I have the following behaviors:
{"length and filesize do not match
' @ error/bmp.c/ReadBMPImage/847"}`Steps to Reproduce
Checkout: git@github.com:Squidex/assets.git
Run the following test:
The text was updated successfully, but these errors were encountered: