{
#define WriteRunlengthPacket(image,pixel,length,p) \
{ \
- if ((image->alpha_trait != UndefinedPixelTrait) && \
+ if ((image->alpha_trait != UndefinedPixelTrait) && (length != 0) && \
(GetPixelAlpha(image,p) == (Quantum) TransparentAlpha)) \
{ \
q=PopHexPixel(hex_digits,0xff,q); \
/*
Dump DirectClass image.
*/
- (void) FormatLocaleString(buffer,MagickPathExtent,"%.20g %.20g\n0\n%d\n",
- (double) image->columns,(double) image->rows,
+ (void) FormatLocaleString(buffer,MagickPathExtent,
+ "%.20g %.20g\n0\n%d\n",(double) image->columns,(double) image->rows,
compression == RLECompression ? 1 : 0);
(void) WriteBlobString(image,buffer);
switch (compression)