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
0
votes
1 answer

Resize transparent image with Magick.NET

I got some weird issues when resizing an image with transparency in Magick.NET. I am using Q16-AnyCPU. I am resizing a 100px image to 400px. MagickImage image = new MagickImage("test.png"); image.Resize(400, 400); image.Write("test_resized.png"); I…
Merec
  • 2,751
  • 1
  • 14
  • 21
0
votes
1 answer

WebAPI c# - Imagemagic on Azure

//Controller Code MultipartMemoryStreamProvider content = await Request.Content.ReadAsMultipartAsync(); byte[] data = await content.Contents[0].ReadAsByteArrayAsync(); MagickImage Image = new…
0
votes
1 answer

Text missing when converting a PDF to PNG using Magick.NET

I have an MVC application that is uploading a PDF file and rendering each page as single PNG image using Magick.NET. The conversion is fine in most cases, but in some I am getting a blank image where text should be and other lines of text displaying…
Steve
  • 2,988
  • 2
  • 30
  • 47
0
votes
1 answer

Performance testing: One core vs multiple

I'm trying to understand one problem that I encountered recently in my project. I'm using Aurigma library to resize images. It is used in the single thread mode and produce only one thread during calculation. Lately I decided to move to ImageMagick…
0
votes
1 answer

EPS Returning CMYK result for all type of color format

I am processing all *.eps files using ImageMagick/Ghostscipt and get the color profiles of each image and display the result. But I am getting same result as CMYK for grayscale, RGB, CMYK. I don't know where I'm doing a mistake or which property…
newbeee
  • 75
  • 1
  • 12
0
votes
2 answers

ImageMagick Converting .tif file to .pdf - Causes MagickCoderErrorException

All, Env: .net 2.0, x64 build of Magick.NET library I have the following code where I read the .tif file and want to convert it to .pdf. using (MagickImage image = new MagickImage()) { image.SetDefine(MagickFormat.Tiff,…
ActiveX
  • 1,064
  • 1
  • 17
  • 37
0
votes
1 answer

Apply watermark on image using imagemagick.net in c#

I am using the following code to resize the image. Now, i need to apply the watermark on this image using Magick.NET. var response = client.GetObject(request).ResponseStream; MagickImage image = new MagickImage(response); …
Naresh
  • 5,073
  • 12
  • 67
  • 124
0
votes
2 answers

Evenly cropping of an image from both side using imagemagick .net

I am using image magick for .net to cropping and resizing the images. But the problem with the library is that it only crop the bottom of the image. Isn't there any way by means which we can crop it evenly from both up and down or left and right?…
Naresh
  • 5,073
  • 12
  • 67
  • 124
0
votes
1 answer

Compare images with metric PSNR in ImageMagick using Java API (JMagick) or C# API (Magick.Net)

Could you help me to implement image comparison with metric PSNR in ImageMagick using Java API (JMagick) or C# API (Magick.Net). The command is: convert image1.jpg -resize WidthxHeight image2.jpg -metric PSNR -format "%[distortion]" -compare…
fapw
  • 185
  • 1
  • 2
  • 15
0
votes
0 answers

Slice image and then combine slice into one image in Magic.NET

I have one image and i want to split this image and adding some extra to each split and then combine all image into one image.so i write this code : public void Slice() { using (MagickImageCollection images = new…
MBehtemam
  • 7,865
  • 15
  • 66
  • 108
0
votes
2 answers

ImageMagick - Set levels for grayscaled image

I write program in C# but hope that C++ and C# in background exactly same. What i want - take grayscaled image and separate colors over 127 and under 17 to separate images. If i simply get "white" colors and programmatically stretch them from range…
user3444737
  • 41
  • 1
  • 7
0
votes
1 answer

Magick.NET Image Resize results in 0 byte file

I am trying to resize an image using Magick.NET, but after I call the Resize function the FileSize property reads 0. What am I doing wrong? var image = new MagickImage(file.InputStream); fileSize = image.FileSize; //will read something >…
Matt Baker
  • 3,394
  • 3
  • 25
  • 35
0
votes
0 answers

Magick.NET x64 within a WCF Service - ThreadAbortException: Thead was being aborted

I have a WCF Service where i call in a certain method another methode, but with Task.StartNew(.... After that, the WCF method returns and the client loses connection. All fine, so far. Within this method in another thread, i use ImageMagick.NET x64…
Peter Bucher
  • 295
  • 2
  • 13
0
votes
1 answer

The type initializer for 'ImageMagick.Types' threw an exception

I have just installed a Magick.net from the nuget and codeplex. I just want to write a sample application for compressing an image file by reducing its quality and DPI. As per the little documentation which is available at codeplex, I written the…
user3598321
  • 105
  • 6
0
votes
2 answers

Terrible performance when converting PDF to Images

I have assigned the task to convert individual PDF pages to JPEGs. Using Magick.NET, I was able to get very decent conversion speed on any local computer I ran my project on. My live environment is under Amazon's Elastic Beanstalk, using an EC2…
serge
  • 366
  • 1
  • 4
  • 22
1 2 3
8
9