Error -1074396080 Invalid Image Type When Writing to JPEG File

Updated Oct 11, 2018

Reported In

Driver

  • Vision Acquisition Software May 2017

Issue Details

When I use the IMAQ Write File 2 function to save my 16bit image into JPEG, I receive the following error:

Error -1074396080 occurred at IMAQ WriteJPEGFile

Possible reason(s):

IMAQ Vision: (Hex 0xBFF60450) Invalid image type.




 

Solution

This error will occur when the Image Type and File Format being saved are not compatible. For example, a U16 image can only be saved in .PNG, .JPEG2000, and .TIFF formats.

For more information on image type and file compatibilities visit the Product Documentation.
 

Additional Information

If you have the Vision Development Module (VDM) you are able to use the IMAQ Cast Image function before the save to convert the image to a compatible image type.

Always be sure to verify the images after you save to ensure it is what you expect. Especially after casting to another data type or bitness.

WAS THIS ARTICLE HELPFUL?

Not Helpful