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
1
vote
0 answers

Put Gif Image Into Some Frame (Box)

I am generating gif animation from existing images using magic.net Magick.NET library. It's working well. Now, what I am trying to achieve is to put the generated gif into some box, frame like in the picture below. So the gif to be animated inside…
levi
  • 3,451
  • 6
  • 50
  • 86
1
vote
1 answer

Quality drop from 2nd frame GIF Resize Magick.NET

I'm trying to resize a gif using Magick.NET. This gif has 80 frames and resizing it with the code below causes every frame after the first to be extremely blurry and only a little over half of the file size of the first frame. The only things that…
user5174817
1
vote
2 answers

Magick.NET convert raw images

I use Magick.NET for processing files. And now I need convert raw image format (such as .dng, .3fr, .cr2, .raw, .ptx, etc.) to simple jpg for generating preview on the site. I found example in documentation here but it's not working. I put dcraw.exe…
Skiminock
  • 139
  • 1
  • 11
1
vote
1 answer

Is it possible to convert a Windows bitmap with an Alpha channel to a MagickImage?

Using Magick.Net, Is it possible to convert (in memory) a Windows bitmap with an Alpha channel to a MagickImage? When I try the following, it fails with .net formats Format32bppPARgb and Format32bppARgb, but works fine with Format24bppRgb. The error…
xpda
  • 15,585
  • 8
  • 51
  • 82
1
vote
1 answer

MemoryStream to BitmapImage

I am having a bit of a hard time converting MemoryStream into BitmapImage. There are a lot of questions on SO regarding similar situations, but after trying everything on them, I've been unable to fix this, so I turn to you. Note that I'm working…
B.K.
  • 9,982
  • 10
  • 73
  • 105
1
vote
1 answer

Setting options to images in Magick .NET collection

I'm trying to reduce the file sizes of the GIF animations I'm exporting, I've read up on how to do it. Another thread suggested to reduce the quality, add compression and slightly blur the picture which is what I'm trying to do like so: using…
Stella
  • 498
  • 4
  • 15
1
vote
1 answer

Remove image background

I am trying to remove the green background of this image using Magick.Net but I'm kind of stuck. I have tried the following: var image = new MagickImage("test.jpg"); image.ColorFuzz = new Percentage(20); image.TransparentChroma(new…
Klaus Byskov Pedersen
  • 117,245
  • 29
  • 183
  • 222
1
vote
0 answers

ImageMagick.NET PDF to JPG conversion - insufficient memory

I'm using ImageMagick.NET to convert PDFs to JPGs. Here's my code: MagickReadSettings settings = new MagickReadSettings(); settings.Density = new MagickGeometry(300, 300); using (MagickImageCollection images = new…
Zatos
  • 299
  • 1
  • 3
  • 15
1
vote
1 answer

Colour transformation with Fx function in Magick.NET

I am trying to do some colour transformation with Fx function, but it doesn't work. If I use this expression inside Fx function "rgb((1-u.r)*255,128,128)" the result is black image. The actual transformation is more complicated, but I can't get…
Lukas Kabrt
  • 5,441
  • 4
  • 43
  • 58
0
votes
2 answers

How do you debayer an image in Magick.Net

I have a raw bayer image and I'm trying to figure out if there is an option to debayer the image inside of Magick.Net I see there is a MagickFormat.Bayer, but I'm not sure how to specify the bayer pattern. The bayer pattern is GRBG. this is what…
TJ Rockefeller
  • 3,178
  • 17
  • 43
0
votes
0 answers

Massive temp files left after Magick.NET runs

I'm currently working on an ASP.NET API in .NET 7. Users can upload PDF files to it, all contained images are extracted from it and those are then analyzed regarding color information. The details shouldn't be relevant as to what exactly is…
0
votes
0 answers

How to detect a rectangle on a binary image with Emgu CV and C#

I have generated the binary version of an image where the edges of the image are in white and the rest of the image is in black. I used the Canny Edge filter built into Magick.NET and saved the image. Now I need to detect a rectangle on that image…
user21078216
0
votes
1 answer

NET 6: ZipArchive can't be opened in Windows

I'm trying to write a process that minify's images. The process accepts single images, or a zip file. If it's a zip file, it extracts the zip and minify's valid files. The process returns a zip file. However, when opening in windows, it throws an…
UncountedBrute
  • 484
  • 1
  • 7
  • 25
0
votes
0 answers

How to put multiple images per pdf page in Magick.NET (equivalent to ImageMagick Montage)

I have numerous PNG files (all are 1400x800) that I want to convert to a single PDF file with 2 images per page and some whitespace around each image. The following Magick.NET code gets me a single PDF file, however, each image is on its own page…
0
votes
1 answer

Magick.NET set PSD Blendmode

I'm trying to create a psd file with Magick.NET. I could not find any information about wether it's possible to set the Blendmode for a specific layer to Multiply. Can anyone help me? This is my code: MagickImageCollection c = new…
Simon S.
  • 111
  • 3
1 2 3
8 9