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

Magick.NET is an object-oriented C# interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick.NET
Post Reply
usemagi
Posts: 12
Joined: 2019-05-21T01:06:38-07:00
Authentication code: 1152

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

Post by usemagi » 2019-05-29T03:25:30-07:00

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");
Last edited by usemagi on 2019-05-29T07:00:29-07:00, edited 1 time in total.

snibgo
Posts: 12282
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

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

Post by snibgo » 2019-05-29T06:30:39-07:00

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.
snibgo's IM pages: im.snibgo.com

usemagi
Posts: 12
Joined: 2019-05-21T01:06:38-07:00
Authentication code: 1152

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

Post by usemagi » 2019-05-29T07:00:07-07:00

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

usemagi
Posts: 12
Joined: 2019-05-21T01:06:38-07:00
Authentication code: 1152

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

Post by usemagi » 2019-05-29T08:14:30-07:00

The changes is in 7.9.1.0 of Magick.NET. In 7.9.0.2 -it worked as previous version

Post Reply