#endif
}
#if defined(PNG_UNKNOWN_CHUNKS_SUPPORTED)
- /* Ignore unused chunks and all unknown chunks except for eXIf,
- caNv, and vpAg */
+ /* Ignore unused chunks and all unknown chunks except for caNv and vpAg */
# if PNG_LIBPNG_VER < 10700 /* Avoid libpng16 warning */
png_set_keep_unknown_chunks(ping, 2, NULL, 0);
# else
png_set_keep_unknown_chunks(ping, 1, NULL, 0);
# endif
- png_set_keep_unknown_chunks(ping, 2, (png_bytep) mng_eXIf, 1);
png_set_keep_unknown_chunks(ping, 2, (png_bytep) mng_caNv, 1);
png_set_keep_unknown_chunks(ping, 2, (png_bytep) mng_vpAg, 1);
png_set_keep_unknown_chunks(ping, 1, unused_chunks,
png_free(ping,text);
}
+#if 0 /* This has not worked since 6.7.6 or earlier */
static MagickBooleanType Magick_png_write_chunk_from_profile(Image *image,
const char *string, MagickBooleanType logging)
{
return(MagickTrue);
}
+#endif
static inline MagickBooleanType Magick_png_color_equal(const Image *image,
const Quantum *p, const PixelInfo *q)
}
}
+#if 0 /* This has not worked since 6.7.6 or earlier */
/* write any png-chunk-b profiles */
(void) Magick_png_write_chunk_from_profile(image,"PNG-chunk-b",logging);
+#endif
png_write_info(ping,ping_info);
+#if 0 /* This has not worked since 6.7.6 or earlier */
/* write any PNG-chunk-m profiles */
(void) Magick_png_write_chunk_from_profile(image,"PNG-chunk-m",logging);
+#endif
ping_wrote_caNv = MagickFalse;
}
}
+#if 0 /* This has not worked since 6.7.6 or earlier */
/* write any PNG-chunk-e profiles */
(void) Magick_png_write_chunk_from_profile(image,"PNG-chunk-e",logging);
+#endif
- /* write exIf profile */
+ /* write eXIf profile */
if (ping_have_eXIf != MagickFalse && ping_exclude_eXIf == MagickFalse)
{
char
% is not intended for external use. It is only used internally by the
% PNG encoder to inform the JNG encoder of the depth of the alpha channel.
%
+#if 0 /* This has not worked since 6.7.6 or earlier */
+ /* To do: Perhaps it can be redesigned to use
+ -define PNG-chunk-x=<file> instead */
+%
% It is possible to request that the PNG encoder write previously-formatted
% ancillary chunks in the output PNG file, using the "-profile" commandline
% option as shown below or by setting the profile via a programming
% subsequent profiles from overwriting the preceding ones, e.g.,
%
% -profile PNG-chunk-b01:file01 -profile PNG-chunk-b02:file02
+#endif
%
% As of version 6.6.6 the following optimizations are always done:
%
" JNG alpha interlace:%5d",0);
}
+#if 0 /* This has not worked since 6.7.6 or earlier */
/* Write any JNG-chunk-b profiles */
(void) Magick_png_write_chunk_from_profile(image,"JNG-chunk-b",logging);
+#endif
/*
Write leading ancillary chunks
jpeg_image_info=DestroyImageInfo(jpeg_image_info);
blob=(unsigned char *) RelinquishMagickMemory(blob);
+#if 0 /* This has not worked since 6.7.6 or earlier */
/* Write any JNG-chunk-e profiles */
(void) Magick_png_write_chunk_from_profile(image,"JNG-chunk-e",logging);
+#endif
/* Write IEND chunk */
(void) WriteBlobMSBULong(image,0L);