From: cristy Date: Fri, 15 Mar 2013 10:35:45 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~4083 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10a51a2a3fa3c69387b68875617a6603a431c0b7;p=imagemagick --- diff --git a/coders/txt.c b/coders/txt.c index 52822789f..e82b7fc97 100644 --- a/coders/txt.c +++ b/coders/txt.c @@ -693,11 +693,14 @@ static MagickBooleanType WriteTXTImage(const ImageInfo *image_info,Image *image, image->depth=GetImageQuantumDepth(image,MagickTrue); if (image->alpha_trait == BlendPixelTrait) (void) ConcatenateMagickString(colorspace,"a",MaxTextExtent); - (void) FormatLocaleString(buffer,MaxTextExtent, - "# ImageMagick pixel enumeration: %.20g,%.20g,%.20g,%s\n",(double) - image->columns,(double) image->rows,(double) - GetQuantumRange(image->depth),colorspace); - (void) WriteBlobString(image,buffer); + if (sparse_color == MagickFalse) + { + (void) FormatLocaleString(buffer,MaxTextExtent, + "# ImageMagick pixel enumeration: %.20g,%.20g,%.20g,%s\n",(double) + image->columns,(double) image->rows,(double) + GetQuantumRange(image->depth),colorspace); + (void) WriteBlobString(image,buffer); + } GetPixelInfo(image,&pixel); for (y=0; y < (ssize_t) image->rows; y++) { @@ -721,7 +724,7 @@ static MagickBooleanType WriteTXTImage(const ImageInfo *image_info,Image *image, { (void) QueryColorname(image,&pixel,SVGCompliance,tuple, exception); - (void) FormatLocaleString(buffer,MaxTextExtent,"%.20g,%.20g ", + (void) FormatLocaleString(buffer,MaxTextExtent,"%.20g,%.20g,", (double) x,(double) y); (void) WriteBlobString(image,buffer); (void) WriteBlobString(image,tuple);