2009-10-01 6.5.6-7 Cristy <quetzlzacatenango@image...>
* Don't use group4 compression if the image is truecolor.
+ * If image is gray, write grayscale DPX images.
2009-09-25 6.5.6-6 Cristy <quetzlzacatenango@image...>
* Permit percentage of hue for HSL (e.g. hsl(12%,...)).
dpx.image.image_element[i].descriptor=RGBComponentType;
if (image->matte != MagickFalse)
dpx.image.image_element[i].descriptor=RGBAComponentType;
+ if (IsGrayImage(image,&image->exception) != MagickFalse)
+ dpx.image.image_element[i].descriptor=LumaComponentType;
break;
}
}
}
extent=GetBytesPerRow(image->columns,image->matte != MagickFalse ? 4UL : 3UL,
image->depth,MagickTrue);
- if (0)
+ if (IsGrayImage(image,&image->exception) != MagickFalse)
{
quantum_type=GrayQuantum;
- extent=GetBytesPerRow(image->columns,image->matte != MagickFalse ?
- 4UL : 3UL,image->depth,MagickTrue);
+ extent=GetBytesPerRow(image->columns,1UL,image->depth,MagickTrue);
}
pixels=GetQuantumPixels(quantum_info);
for (y=0; y < (long) image->rows; y++)