Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Aris_Basic
New Contributor I
54 Views

UIC JPEG Codec produces non JFIF files

for some reason with update 7.0 update 5 (might have been happening with earlier versions aswell)
JPEG images created with UIC codec have Adobe in header instead of JFIF
recent beta and dev versions of chrome on windows can not open these files properly and
picassaweb is unabelt o recognize them as proper jpeg images.
is there a reason for using Adobe instead of JFIF and is there a way to change it so it uses JFIF ?
0 Kudos
1 Reply
Sergey_K_Intel
Employee
54 Views

Aris,
According to source codes
[cpp]  if(m_jpeg_mode != JPEG_LOSSLESS)
  {
    switch(m_jpeg_color)
    {
      case JC_GRAY:
      case JC_YCBCR:
        jerr = WriteAPP0();
        if(JPEG_OK != jerr)
        {
          LOG0("Error: WriteAPP0() failed");
          return jerr;
        }
        break;

      case JC_RGB:
      case JC_CMYK:
      case JC_YCCK:
        jerr = WriteAPP14();
        if(JPEG_OK != jerr)
        {
          LOG0("Error: WriteAPP14() failed");
          return jerr;
        }
        break;

      default:
        break;
    }
  }
[/cpp]
UIC creates JFIF files for ordinary JPEG color models (Gray or YCbCr). All others (RGB, CMYK, YCCK) get Adobe application segment marker APP14. What kind of color model do you use during encoder initialization?
Reply