Closed peaeater closed 3 years ago
&ignore_icc_errors=true controls this behavior, and you can set it as a default command for all images. ImageResizer silently ignores this, which can be a bad thing.
Ah, thank you. I've set it as a default command in Startup because for me it's only a bad thing if the image can't be viewed.
app.UseImageflow(new ImageflowMiddlewareOptions()
.AddCommandDefault("ignore_icc_errors", "true")
);
I'm using Imageflow.Server 0.5.10 and Imageflow.Server.HybridCache 0.5.10, and getting the following error: Imageflow.Bindings.ImageflowException: ImageMalformed: Error 9: Wrong input color space on transform (ObjectCreationError).
The image, a black and white jpeg, is attached. The same image is successfully handled by Image Resizer 4.0.5.94.
Exception stack:
Startup.cs: