-
Here a snippet of my code: MagickReadSettings settings = new MagickReadSettings { Format = MagickFormat.Dng, };
var filestream = new FileStream(imageURL, FileMode.Open, FileAccess.Read);
using (filestream)
using (var image = settings == null ? new MagickImage(filestream) : new MagickImage(filestream, settings))
{
image.Depth = 16;
image.PhotonsAutoOrientation();
image.Strip();
image.Settings.SetDefines(new JpegWriteDefines()
{
Extent = (int)maxSizeInBytes / 1024
} );
} Thanks so much! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The problem related to the color background/brightness of the generated JPG was solved when I updated the Magick.Net and Ghostscript libraries. |
Beta Was this translation helpful? Give feedback.
-
The PhotonsAutoOrientation method transforms an image with rotations and flip/flop operations, if necessary, to let it with the TopLeft orientation type. |
Beta Was this translation helpful? Give feedback.
The problem related to the color background/brightness of the generated JPG was solved when I updated the Magick.Net and Ghostscript libraries.
I should have done this update before posting the issue. I'm sorry about that!