*/
/* #define PNG_DEBUG -- turning this on breaks VisualC compiling */
-/* After eXIf chunk has been approved:
-#define eXIf_SUPPORTED
-*/
-
-/* Experimental; use this until eXIf chunk is approved:
-#define exIf_SUPPORTED
-*/
-
/*
Features under construction. Define these to work on them.
*/
portable, we use ASCII numbers like this, not characters.
*/
-/* until registration of eXIf use exIf */
-static const png_byte mng_exIf[5]={101, 120, 73, 102, (png_byte) '\0'};
-
-/* after registration of eXIf */
-static const png_byte mng_eXIf[5]={101, 88, 73, 102, (png_byte) '\0'};
-
static const png_byte mng_MHDR[5]={ 77, 72, 68, 82, (png_byte) '\0'};
static const png_byte mng_BACK[5]={ 66, 65, 67, 75, (png_byte) '\0'};
static const png_byte mng_BASI[5]={ 66, 65, 83, 73, (png_byte) '\0'};
static const png_byte mng_bKGD[5]={ 98, 75, 71, 68, (png_byte) '\0'};
static const png_byte mng_caNv[5]={ 99, 97, 78, 118, (png_byte) '\0'};
static const png_byte mng_cHRM[5]={ 99, 72, 82, 77, (png_byte) '\0'};
+static const png_byte mng_eXIf[5]={101, 88, 73, 102, (png_byte) '\0'};
static const png_byte mng_gAMA[5]={103, 65, 77, 65, (png_byte) '\0'};
static const png_byte mng_iCCP[5]={105, 67, 67, 80, (png_byte) '\0'};
static const png_byte mng_nEED[5]={110, 69, 69, 68, (png_byte) '\0'};
i;
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
- " recognized eXIf|exIf chunk");
+ " recognized eXIf chunk");
image=(Image *) png_get_user_chunk_ptr(ping);
ping_have_non_bw,
ping_have_PLTE,
ping_have_bKGD,
-#ifdef exIf_SUPPORTED
ping_have_eXIf,
-#endif
ping_have_iCCP,
ping_have_pHYs,
ping_have_sRGB,
ping_exclude_cHRM,
ping_exclude_date,
/* ping_exclude_EXIF, */
-#ifdef exIf_SUPPORTED
ping_exclude_eXIf,
-#endif
ping_exclude_gAMA,
ping_exclude_iCCP,
/* ping_exclude_iTXt, */
ping_have_non_bw=MagickTrue;
ping_have_PLTE=MagickFalse;
ping_have_bKGD=MagickFalse;
-#ifdef exIf_SUPPORTED
ping_have_eXIf=MagickTrue;
-#endif
ping_have_iCCP=MagickFalse;
ping_have_pHYs=MagickFalse;
ping_have_sRGB=MagickFalse;
ping_exclude_caNv=mng_info->ping_exclude_caNv;
ping_exclude_cHRM=mng_info->ping_exclude_cHRM;
ping_exclude_date=mng_info->ping_exclude_date;
-#ifdef exIf_SUPPORTED
- /* ping_exclude_EXIF=mng_info->ping_exclude_EXIF; */
ping_exclude_eXIf=mng_info->ping_exclude_eXIf;
-#endif
ping_exclude_gAMA=mng_info->ping_exclude_gAMA;
ping_exclude_iCCP=mng_info->ping_exclude_iCCP;
/* ping_exclude_iTXt=mng_info->ping_exclude_iTXt; */
}
#endif /* WRITE_iCCP */
-#if defined(eXIf_SUPPORTED) || defined(exIf_SUPPORTED)
if (LocaleCompare(name,"exif") == 0)
{
/* Do not write hex-encoded ICC chunk; we will
name=GetNextImageProfile(image);
continue;
}
-#endif
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
" Setting up zTXt chunk with uuencoded %s profile",
/* write any PNG-chunk-e profiles */
(void) Magick_png_write_chunk_from_profile(image,"PNG-chunk-e",logging);
-#ifdef exIf_SUPPORTED
/* write exIf profile */
#ifdef IM
if (ping_have_eXIf != MagickFalse && ping_exclude_eXIf == MagickFalse)
length=(png_uint_32) GetStringInfoLength(ping_profile);
#endif /* GM */
-#if 0 /* eXIf chunk is registered */
PNGType(chunk,mng_eXIf);
-#else /* eXIf chunk not yet registered; write exIf instead */
- PNGType(chunk,mng_exIf);
-#endif
if (length < 7)
break; /* othewise crashes */
}
}
}
-#endif /* exIf_SUPPORTED */
if (logging != MagickFalse)
(void) LogMagickEvent(CoderEvent,GetMagickModule(),