Error: Invalid Pixel Format

Problem

When a user is in Asset and Info view or Asset view for an image, they receive the spinning cursor like the image is loading or being converted by Media Conversion. The image never displays.

In Event Viewer you will see the error below.

 

error converting image: Case #example Set X - image file.xxx

 

   at Foray.Adams.FASystem.WriteEventLogEntry(String message, Exception exception, EventLogEntryType eventType, String fileName, String caller, String subjectType)

   at Foray.Adams.FASystem.WriteErrorEvent(String message, Exception exception, String fileName, String caller, Int32 line)

   at Foray.Adams.AdamsWeb.Controls.Assets.FullImageHandler.ProcessRequest(HttpContext context)

   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)

   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

   at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)

   at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)

   at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)

   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

   at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)

   at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)

   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

 

Exception:

Invalid Pixel Format

 

   at Atalasoft.Imaging.Codec.JpegEncoder.a(StreamHandler A_0, AtalaImage A_1, ProgressEventHandler A_2)

   at Atalasoft.Imaging.Codec.JpegEncoder.Save(Stream stream, AtalaImage image, ProgressEventHandler progress)

   at Atalasoft.Imaging.AtalaImage.Save(Stream stream, ImageEncoder encoder, ProgressEventHandler progress)

   at Foray.Adams.ImageAsset.CreateJpeg(RotateFlipType rotateType, RotateFlipType flipType, Int32 compressionLevel, Int32 maxWidth, Int32 maxHeight, String watermarkText)

   at Foray.Adams.AdamsWeb.Controls.Assets.FullImageHandler.ProcessRequest(HttpContext context)

 

 

This occurs when the image is a 16 BPP (bits per pixel) image which isn't generally supported by Atalasoft.

 

Solution

The image will need to be converted to a different BPP or a different format to display correctly.

This is a known issue covered in AD-8142.

Related articles

© 2023 Foray, LLC - All Rights Reserved