Page 1 of 1

Different behaviour between 7.9.0.1 and 7.9.2-7.13.1 for jpg thumbnail of psd file

Posted: 2019-05-29T03:25:30-07:00
by usemagi
I've encountered different behaviour between n 7.9.0.1 and 7.9.2+ versions

On 7.9.0.1 I see this result:
Image

On 7.9.2:
http://i.piccy.info/i9/96342732c87aa8c0 ... 131res.jpg

Question: is this a bug or its a fixed bug?

File:
https://drive.google.com/open?id=1Au-CS ... JcYZxjWqWG

Sample code:

Code: Select all

var fi = new FileInfo(@"C:\test\02_alpha-channels.psd");
IMagickImage image = new MagickImage(fi);
MagickGeometry geometry = new MagickGeometry(400, 400);
image.Thumbnail(geometry);
image.Format = MagickFormat.Jpg;
image.Quality = 100;

MagickImage backgroundImage = new MagickImage(Color.White, image.Width, image.Height);
{
     backgroundImage.ColorSpace = image.ColorSpace;
     image.Composite(backgroundImage, CompositeOperator.DstOver);
}

image.Write(@"C:\test\res.jpg");

Re: Different behaviour between 7.9.0.1 and 7.9.2-7.13.1 for jpg thumbnail of pdf file

Posted: 2019-05-29T06:30:39-07:00
by snibgo
usemagi wrote:between n 7.9.0.1 and 7.9.2+ versions
On 7.9.0.1 I see this result: ...
No versions of IM have those version numbers.

Your title say you are reading a PDF, but your code shows you are reading a PSD.

Re: Different behaviour between 7.9.0.1 and 7.9.2-7.13.1 for jpg thumbnail of pdf file

Posted: 2019-05-29T07:00:07-07:00
by usemagi
sorry, yes, psd.
Those versions of Magick.Net I wrote in that subforum.

7.9.0.1 corresponds to ImageMagick 7.0.8-14
7.9.2 corresponds to ImageMagick 7.0.8-17 beta

Re: Different behaviour between 7.9.0.1 and 7.9.2-7.13.1 for jpg thumbnail of psd file

Posted: 2019-05-29T08:14:30-07:00
by usemagi
The changes is in 7.9.1.0 of Magick.NET. In 7.9.0.2 -it worked as previous version