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
3
votes
0 answers

How can I trim an image using Magick.net keeping clipping paths if they exist

When trimming images with Magick.net (to remove white areas around the main object of the image) and they've got a clipping path, then the path is not synchronized with the new proportions of the image. Is there a way to handle this using…
Andreas Jansson
  • 830
  • 1
  • 9
  • 21
3
votes
0 answers

Convert Grayscale image into RGB with Magick.Net

Is it possible to convert an image from the Grayscale color space into a RGB using Magick.NET? If it is, what has to be done? I've tried something like this: image.Format = MagickFormat.Png; image.ColorSpace = ImageMagick.ColorSpace.sRGB; When…
Nesaje
  • 595
  • 2
  • 18
3
votes
1 answer

Generate image with caption using Magick.NET

I am trying to generate an image file of a caption for scaling. Using the command prompt I have been able to achieve this goal: convert -background lightblue -fill black -font Arial -size 530x175 caption:"This is a test." caption_long_en.png I am…
markdozer
  • 121
  • 3
  • 8
3
votes
3 answers

Apply a background color when annotating an image with text, using Magick.Net

I am using C# and Magick.Net to annotate images, as follows: var text = "Variable text"; var img = new MagickImage("image.jpg"); img.FontPointsize = 50; img.FillColor = new MagickColor(Color.White); img.Annotate(text, Gravity.Northwest); Annotation…
user1942447
  • 103
  • 1
  • 7
3
votes
2 answers

C# Magick.Net "no decode delegate for this image format" with SVG

I have ImageMagick-6.8.9-Q16 installed and can successfully run convert test.svg test.pdf and get a valid pdf output. In my project I have installed Magick.NET-Q16-x86 version 7.0.0.003 and I can successfully convert other formats using it. However,…
Bradley Mountford
  • 8,195
  • 4
  • 41
  • 41
2
votes
0 answers

Magickick.NET-Q8-x64 version 7.2.4.0 mismatch between processor project being built "MSIL" and processor reference Magick.NET-Q8-x64.dl, AMD64

I create a windows .net core 3.1 application in Visual Studio 2019 on a Windows 10 machine. The project was set to Debug Any CPU. I installed Magick.NET-Q8-x64 version 7.2.4.0 via a nuget package. When I compiles the application Visual Studio's…
srf
  • 21
  • 1
  • 2
2
votes
0 answers

Compress image with Magick.NET doesn't reduce too much

var fileName = Path.Combine(filePath, $"{nameOnly}{ext}"); using (var stream = new FileStream(fileName, FileMode.Create)) { await formFile.CopyToAsync(stream); stream.Position = 0; ImageOptimizer optimizer = new ImageOptimizer() { …
Franva
  • 6,565
  • 23
  • 79
  • 144
2
votes
2 answers

How to set bit depth in Magick.NET Read

How can I specify the bit depth for the MagickImage.Read() function when reading binary files? I have a 1024x1024 image represented by 8-bit grayscale values (total file length = 1024x1024 = 1048576 bytes). Using ImageMagick v.7.0.8-7 Q16 x64, I can…
Stadem
  • 423
  • 1
  • 6
  • 15
2
votes
1 answer

EPS to JPEG, poor quality result

I'm using Magick.NET to export EPS file to JPEG using the following code: MagickReadSettings settings = new MagickReadSettings(); settings.ColorSpace = ColorSpace.sRGB; settings.Format = MagickFormat.Eps; using (MagickImage _image = new…
Leonardo Bonetti
  • 197
  • 1
  • 10
2
votes
1 answer

ImageMagick .NET Round Image(s) overlap issue

Hey all I have the following C# code: List lFiles = new…
StealthRT
  • 10,108
  • 40
  • 183
  • 342
2
votes
1 answer

Magick.net no OpenMP?

I started using Magick.net an it only performs tasks using one Thread. Do I have to do something make it perform filter operations using multiple Threads? Or is OpenMP not part of Magick.net? Using ImageMagick from command line uses OpenMP and all…
FrostKiwi
  • 741
  • 1
  • 6
  • 16
2
votes
1 answer

Reduce image size imagemagic

I have tried to compress image but has no success. Look at my small experiment var results = new Dictionary(); for (int i = 0; i <= 100; i++) { var stream = new MemoryStream(); …
XUser
  • 43
  • 1
  • 4
2
votes
1 answer

How to disable Magick.Net cache/temp files?

I am using ImageMagick for PDF to Image Conversion in my C# code. But After testing on some files, I've noticed that ImageMagick creates a lot of temp files in %Temp% folder which takes all disk space. I'm using Magick.Net 7.0.0.0104. Is there a…
Sheraz
  • 567
  • 4
  • 22
2
votes
1 answer

Why does my conversion with Magick.NET result in a black PCX file?

I have following .png-file which I want to convert with Magick.NET to a .pcx-file. I use following code for the conversion: using System.Drawing; using using ImageMagick; using (var bitmap = (Bitmap) Bitmap.FromFile("ptOHf.png")) using (var…
user57508
2
votes
1 answer

How do I crop an image per clipping path?

I have a TIFF with one clipping path stored in the 8BimProfile. Now I want to crop this image along the clipping path. What I tried My first approach was to use the MagickImage Clip() method, which seems to do nothing: using (var image = new…
sekky
  • 834
  • 7
  • 14
1
2
3
8 9