PhotoSauce icon indicating copy to clipboard operation
PhotoSauce copied to clipboard

"The component initialization has failed" error.

Open Rufio2031 opened this issue 4 months ago • 2 comments

I recognize this likely isn't a problem with the library itself, but we're having trouble identifying the root cause of the error: "The component initialization has failed".

We believe the issue is somewhere withing the realm of converting a CMYK image to RGB using the default ColorSpaceMode in ProcessImage(). We are using Windows Server 2022 and Windows 11, and believe we have the updated codecs but also aren't super confident in that realm. We're not sure if we need to enable something, or install something, or if there are windows configurations that need to be applied.

Here are a couple call stacks.

at PhotoSauce.MagicScaler.WicTransforms.AddPixelFormatConverter(PipelineContext ctx, Boolean allowPbgra)\r\n at PhotoSauce.MagicScaler.Transforms.MagicTransforms.AddNormalizingFormatConverter(PipelineContext ctx, Boolean lastChance)\r\n at PhotoSauce.MagicScaler.MagicImageProcessor.buildPipeline(PipelineContext ctx, Boolean closedPipeline)\r\n at PhotoSauce.MagicScaler.MagicImageProcessor.ProcessImage(Stream imgStream, Stream outStream, ProcessImageSettings settings)\r\n

at PhotoSauce.MagicScaler.WicTransforms.AddColorspaceConverter(PipelineContext ctx)\r\n at PhotoSauce.MagicScaler.Transforms.MagicTransforms.AddColorspaceConverter(PipelineContext ctx)\r\n at PhotoSauce.MagicScaler.MagicImageProcessor.buildPipeline(PipelineContext ctx, Boolean closedPipeline)\r\n at PhotoSauce.MagicScaler.MagicImageProcessor.ProcessImage(Stream imgStream, Stream outStream, ProcessImageSettings settings)\r\n

If there is any guidance on this we would be grateful to hear it. Attaching an image that we are able to repro with in our environments. Channel_digital_image_CMYK_color (1)

Rufio2031 avatar Oct 17 '24 23:10 Rufio2031