testFilterCompare('input.miff', q//, 'reference/filter/Contrast.miff', 'Contrast', q//, 0.0, 0.0);
++$test;
-testFilterCompare('input.miff', q//, 'reference/filter/Convolve.miff', 'Convolve', q/[0.125, 0.125, 0.125, 0.125, 1, 0.125, 0.125, 0.125, 0.125]/, 0.09, 0.0);
+testFilterCompare('input.miff', q//, 'reference/filter/Convolve.miff', 'Convolve', q/[0.0625, 0.0625, 0.0625, 0.0625, 0.5, 0.0625, 0.0625, 0.0625, 0.0625]/, 0.09, 0.0);
++$test;
testFilterCompare('input.miff', q//, 'reference/filter/Crop.miff', 'Crop', q/geometry=>'80x80+5+10'/, 0.0, 0.0);
if (LocaleCompare(keyword,"TUPLTYPE") == 0)
{
if (LocaleCompare(value,"BLACKANDWHITE") == 0)
- quantum_type=GrayQuantum;
+ {
+ SetImageColorspace(image,GRAYColorspace,exception);
+ quantum_type=GrayQuantum;
+ }
if (LocaleCompare(value,"BLACKANDWHITE_ALPHA") == 0)
{
- quantum_type=GrayAlphaQuantum;
+ SetImageColorspace(image,GRAYColorspace,exception);
image->matte=MagickTrue;
+ quantum_type=GrayAlphaQuantum;
}
if (LocaleCompare(value,"GRAYSCALE") == 0)
{
- SetImageColorspace(image,GRAYColorspace,exception);
quantum_type=GrayQuantum;
+ SetImageColorspace(image,GRAYColorspace,exception);
}
if (LocaleCompare(value,"GRAYSCALE_ALPHA") == 0)
{
}
if (LocaleCompare(value,"RGB_ALPHA") == 0)
{
- quantum_type=RGBAQuantum;
image->matte=MagickTrue;
+ quantum_type=RGBAQuantum;
}
if (LocaleCompare(value,"CMYK") == 0)
{
- quantum_type=CMYKQuantum;
SetImageColorspace(image,CMYKColorspace,exception);
+ quantum_type=CMYKQuantum;
}
if (LocaleCompare(value,"CMYK_ALPHA") == 0)
{
- quantum_type=CMYKAQuantum;
SetImageColorspace(image,CMYKColorspace,exception);
image->matte=MagickTrue;
+ quantum_type=CMYKAQuantum;
}
}
if (LocaleCompare(keyword,"width") == 0)
/*
Convert PNM image to pixel packets.
*/
+ SetImageColorspace(image,GRAYColorspace,exception);
scale=(Quantum *) NULL;
if (max_value != (1U*QuantumRange))
{