char
*hex_signature;
- double
+ float
pixel;
register const Quantum
PixelChannel channel = GetPixelChannelChannel(image,i);
PixelTrait traits = GetPixelChannelTraits(image,channel);
- if (traits == UndefinedPixelTrait)
+ if ((traits == UndefinedPixelTrait) ||
+ ((traits & UpdatePixelTrait) == 0))
continue;
- pixel=QuantumScale*p[i];
+ pixel=(float) (QuantumScale*p[i]);
if (signature_info->lsb_first == MagickFalse)
for (j=(ssize_t) sizeof(pixel)-1; j >= 0; j--)
*q++=(unsigned char) ((unsigned char *) &pixel)[j];