Hello guys!
I'm trying to convert some images via the Magick.NET library to psd files. So far so good. Yesterday I tried to convert an image in portrait orientation (its height being larger than its width) and the resulting psd file was corrupted. First I thought it had something to do with the input image until I tried another image (also a portrait one) and another defective psd file was created. So I manually rotated both images to landscape and tried again only to find out that now everything works as expected. Using random images from different sources always yields the same result: Landscape image are save without error, but portrait ones will be corrupted.
The code used for the conversion is pretty straight forward:
Regards Lokscha
I'm trying to convert some images via the Magick.NET library to psd files. So far so good. Yesterday I tried to convert an image in portrait orientation (its height being larger than its width) and the resulting psd file was corrupted. First I thought it had something to do with the input image until I tried another image (also a portrait one) and another defective psd file was created. So I manually rotated both images to landscape and tried again only to find out that now everything works as expected. Using random images from different sources always yields the same result: Landscape image are save without error, but portrait ones will be corrupted.
The code used for the conversion is pretty straight forward:
using (MagickImageCollection collection = new MagickImageCollection())
using (MagickImage magickImage = new MagickImage("C:\portrait.jpg"))
{
collection.Add(magickImage);
collection.Write("C:\defective.psd");
}
I wouldn't open an issue because I'm still very new to Magick.NET and maybe I'm just doing something wrong or I'm understanding the mechanics wrong. So can anyone help me or confirm this is a bug?Regards Lokscha