Questions tagged [magick.net]

Magick.NET is a .NET wrapper for image manipulation software ImageMagick.

Magick.NET is a .NET wrapper for image manipulation software . Using Magick.NET allows coders to use ImageMagick without having to install ImageMagick.

separate installation is required to convert EPS/PDF/PS files.

Resources

Project site

126 questions
16
votes
1 answer

How to adjust jpeg quality with Magick.Net

I am trying to set the image quality of two images appended to one another to 10% and resize the images to 40x40. using (var images = new MagickImageCollection {designFile, swatchFile}) { MagickImage sprite = images.AppendHorizontally(); …
Ryan Fisch
  • 2,614
  • 5
  • 36
  • 57
11
votes
3 answers

Could not load file or assembly 'Magick.NET-x64' issue on mvc application

I am using the Magick.net library in an mvc3 web application and these are steps i did My project is targeting AnyCPU and my machine is 64bit Add reference of Magick.NET-x64.dll to the project. Installed Visual C++ Redistributable for Visual…
Sebastian
  • 4,625
  • 17
  • 76
  • 145
7
votes
1 answer

Image resizing in Magick.Net

I am trying to resize image using Magick.Net. But the image I compressed has greater size and bitdepth of 32 where as original image has bitdepth of 2.I want to retain or reduce the bitdepth too. Here is my code. var imageMacig = new…
Manij Rai
  • 189
  • 1
  • 2
  • 8
7
votes
3 answers

Unable to find an entry point named 'Environment_SetEnv' in DLL 'Magick.NET-Q8-x64.Native.dll'

Upgraded to latest ImageMagick / Magick.NET (7.0.2.901), and it built and ran fine locally, but explodes on the server with this error. Unable to find an entry point named 'Environment_SetEnv' in DLL 'Magick.NET-Q8-x64.Native.dll'. Seems to be a…
Chris Moschini
  • 36,764
  • 19
  • 160
  • 190
6
votes
1 answer

How to Map ImageMagick commands to .net code using Magick.net

Let's say I want to transform the transparent background of an image into white (flatten a png): A simple google search points me to: convert -flatten image.png noTransparency.png. This works fine if I invoke imageMagick from the command line. But…
Alejandro Lozdziejski
  • 1,063
  • 4
  • 12
  • 30
6
votes
1 answer

ImageMagick.NET - Faster performance

Im using the ImageMagick.NET library for C# and I want to get some informations from each page in a .PDF document. Here is my current code: var list = new MagickImageCollection(); list.Read(file.FullName); foreach (var page in list) { if…
Mauley
  • 101
  • 1
  • 7
5
votes
2 answers

Convert JPG to PNG with background transparency using ImageMagick.Net

I need to convert a JPG image to PNG and change its white background to transparent instead. I am using ImageMagick.NET and I have found the following ImageMagick command that is supposed to do what I am trying to achieve: convert image.jpg -fuzz…
cara_
  • 63
  • 1
  • 4
5
votes
1 answer

Creating Multipage TIFF with Magick.NET

I'm using Magick.NET and trying to create multipage-TIFF-files. My input is a PDF-file. But writing the result to a MemoryStream or getting it as byte-array results in an error: iisexpress.exe: Error flushing data before directory write.…
xforfun
  • 592
  • 6
  • 19
4
votes
0 answers

Magick.NET insufficent Insufficient memory (case 4)

I want to convert iPhone HEIC-images to Jpeg files. Since there are a lot of images, I handle this with Parallel.ForEach string[] files = Directory.GetFiles(inputPath, "*.heic"); Parallel.ForEach(files, new ParallelOptions() { MaxDegreeOfParallelism…
Impostor
  • 2,080
  • 22
  • 43
4
votes
1 answer

How to compress the image size using .NET Core?

I am using .NET Core 2.2. In my code, I am using IFormFile to upload images. How can I compress the image size (to KB) just before it is uploaded to the server ? I search for solutions but those answers were related to Bitmap but since I am using…
Vim
  • 161
  • 2
  • 3
  • 11
4
votes
2 answers

How to create 8 bpp BMP in Magick.NET?

Using Magick.NET-Q8-AnyCPU. I want to convert existing TIFF image to grayscale 8 bpp BMP image. I tried this: byte[] input = ; using (var image = new MagickImage(input)) { image.Grayscale(); image.ColorType =…
Dialecticus
  • 16,400
  • 7
  • 43
  • 103
4
votes
1 answer

Is there way to refer ghostscript's DLLs without installing?

I'm using Magick.NET for converting images(.PS format to .PNG), Internally Magick.NET uses Ghostscript to convert .ps files. Is there a way to add reference to Ghostscript's DLLs without installing it. PS: I'm using ASP.NET MVC4
4
votes
1 answer

Using Magick.NET with C#

I am trying to implement a functionality using Magick.NET in C#. Previously I was using:- // Convert to a png. Process p = new Process(); p.StartInfo.FileName = @"C:\Program Files\ImageMagick-6.2.8-Q16\convert.exe"; p.StartInfo.Arguments = "-scale…
Philo
  • 1,931
  • 12
  • 39
  • 77
4
votes
1 answer

How to set profile using Magick.net in the same way using Image Magick?

I convert image based on CMYK to image based on RGB in the following way using ImageMagick(command Line) : convert.exe -profile icc:JapanColor2001Coated.icc -colorspace cmyk input.jpg -profile icc:sRGB.icc -colorspace sRGB output.jpg And I…
user2798778
  • 41
  • 1
  • 2
4
votes
1 answer

Magick.NET reduce gif file size

I am creating gifs using Magick.NET, but the file sizes are bigger than they should be. ImageMagick.MagickImageCollection col = new MagickImageCollection(); col.Add(new ImageMagick.MagickImage("1.png")); …
John
  • 5,942
  • 3
  • 42
  • 79
1
2 3
8 9