From: glennrp Date: Mon, 18 Apr 2011 16:46:48 +0000 (+0000) Subject: Add some "To do" comments in coders/png.c X-Git-Tag: 7.0.1-0~7725 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cc95c3f37f025a52b71d927cba8009c4f8bc83a5;p=imagemagick Add some "To do" comments in coders/png.c --- diff --git a/coders/png.c b/coders/png.c index fe3814616..6e8c78c42 100644 --- a/coders/png.c +++ b/coders/png.c @@ -1526,6 +1526,9 @@ static Image *ReadOnePNGImage(MngInfo *mng_info, { /* Read one PNG image */ + /* To do: Read the tIME chunk into the date:modify property */ + /* To do: Read the tEXt/Creation Time chunk into the date:create property */ + Image *image; @@ -7111,6 +7114,13 @@ static MagickBooleanType WriteOnePNGImage(MngInfo *mng_info, } #endif +#if 0 /* To do: honor -depth */ + if (image->depth < MAGICKCORE_QUANTUM_DEPTH) + { + } +#endif + + /* To do: set to next higher multiple of 8 */ if (image->depth < 8) image->depth=8; @@ -7516,8 +7526,7 @@ static MagickBooleanType WriteOnePNGImage(MngInfo *mng_info, if (AcquireImageColormap(image,image_colors) == MagickFalse) - ThrowWriterException(ResourceLimitError, - "MemoryAllocationFailed"); + ThrowWriterException(ResourceLimitError, "MemoryAllocationFailed"); for (i=0; i< (ssize_t) image_colors; i++) image->colormap[i] = colormap[i];