Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -Naur ImageMagick-6.9.1-2/magick/resize.c "copy of ImageMagick-6.9.1-2/magick/resize.c"
- --- ImageMagick-6.9.1-2/magick/resize.c 2014-12-25 13:05:34.000000000 -0500
- +++ "copy of ImageMagick-6.9.1-2/magick/resize.c" 2015-05-16 23:29:17.110388000 -0400
- @@ -1895,12 +1895,12 @@
- return(rescale_image);
- }
- map="RGB";
- - if (image->matte != MagickFalse)
- + if (image->matte == MagickTrue)
- map="RGBA";
- if (image->colorspace == CMYKColorspace)
- {
- map="CMYK";
- - if (image->matte != MagickFalse)
- + if (image->matte == MagickTrue)
- map="CMYKA";
- }
- pixel_info=AcquireVirtualMemory(image->columns,image->rows*strlen(map)*
- @@ -1959,14 +1959,14 @@
- pixel.blue=QuantumRange*(packet[2]/255.0);
- if (image->colorspace != CMYKColorspace)
- {
- - if (image->matte == MagickFalse)
- - pixel.opacity=QuantumRange*(packet[3]/255.0);
- + if (image->matte == MagickTrue)
- + pixel.opacity=QuantumRange*(1-packet[3]/255.0);
- }
- else
- {
- pixel.index=QuantumRange*(packet[3]/255.0);
- - if (image->matte == MagickFalse)
- - pixel.opacity=QuantumRange*(packet[4]/255.0);
- + if (image->matte == MagickTrue)
- + pixel.opacity=QuantumRange*(1-packet[4]/255.0);
- }
- SetPixelPacket(rescale_image,&pixel,q,rescale_indexes);
- if (SyncCacheViewAuthenticPixels(rescale_view,exception) == MagickFalse)
Advertisement
Add Comment
Please, Sign In to add comment