Questions tagged [magicknet]

MagickNet is an API for the ImageMagick library, wrapping the functionality into the CLR for access by the .NET languages.

MagickNet operates on a simlar principle to the API, encapsulating the main Image Object into a Managed object. The class library provides all the marshalling required between the CLR managed and 's unmanaged memory.

MagickNet also tries to interface the Framework's native Sytem and System.Drawing objects into the methods and properties of the MagickNet object. As an example, the MagickNet Geometry object has properties and methods taking System.Drawing.Size and System.Drawing.Point objects. Blob objects can take or return System.Array objects for their data, and the main Image Object can be converted to a .NET System.Drawing.Image with a single method call.

It cannot yet perform any of the Drawing functions (as per the Magick++ Drawable classes), not does it provide clean Pixel-level access. However, the image manipulations are available on individual images, and collections of images may be processed to and from files.

Resources:

25 questions
6
votes
2 answers

How to convert PDF to images using C# and ImageMagick?

I would like to convert a PDF file to .GIF using C# and magicknet.dll. I have added the reference to the MagickNet Dll to my project. MagickNet.Magick.Init(); MagickNet.Image img = new…
ankush
  • 1,051
  • 3
  • 19
  • 34
4
votes
1 answer

How to read an SVG file from stream with MagickNet

My application allows the user to upload images and send them to the service, which then converts it to another format and sends it back. We are adding support for the SVG file format and I am running into an issue with reading the file from a byte…
David Jarman
  • 101
  • 6
3
votes
1 answer

How can I use MagickNet from C# to stitch images together?

I want to stitch some images together using MagickNet (jpg/bmp - whatever). Does anyone have some good references for this?
wayne-o
  • 91
  • 1
  • 6
3
votes
3 answers

Could not load file or assembly Magick.Net on Elastic Beanstalk Deployment

I am getting the following error when deploying my project to Amazon Elastic Beanstalk: Could not load file or assembly 'Magick.NET-x86.DLL' or one of its dependencies. The specified module could not be found. I have many other DLLs in the bin…
Liron Harel
  • 10,819
  • 26
  • 118
  • 217
3
votes
2 answers

MagickNet PNG with Transparency to JPEG

I am using MagickNet for image manipulation in my ASP.NET C# project. My issue is that I am uploading a PNG image with transparency and when I convert it to JPEG, I get a black background with some white spots instead of a white background for the…
Liron Harel
  • 10,819
  • 26
  • 118
  • 217
2
votes
2 answers

Convert MagickImage to bitmap

I thought it would be easier, but I can't find a way to do it. How can I convert a MagickImage to System.Drawing.Image (eg a Bitmap) public System.Drawing.Image CreateThumbnailIcon(string sourceImagePath, int iconSize ) { MagickImage…
Kaikus
  • 1,001
  • 4
  • 14
  • 26
2
votes
3 answers

c# foreach image in folder

Below is some code that creates a directory uses MagickNet to covert a PDF into separate BMP images and stores it in a folder (ImagePath) Then it uses TessNet2 to scan each image in that folder to parse out information I can't seem to get the…
MaylorTaylor
  • 4,671
  • 16
  • 47
  • 76
1
vote
1 answer

Create Dynamic image (.gif) through a generic handler

I have already the algorithm created with the library Magick.Net to show a little time counter, however when I request the gif resource through the generic handler returns a static image, but when I check the test file named: "test.gif" the dynamic…
RokumDev
  • 367
  • 4
  • 13
1
vote
1 answer

MagickNET exception when resample PixelCacheAllocationFailed

I use MagickNET in a ASP .NET application. Usually it's works but sometimes with somes files (.jpg, .png) I receive an exception when I resample the picture with another DPI ImageMagick.MagickResourceLimitErrorException: iisexpress.exe:…
1
vote
0 answers

Black tiff output Windows XP but works in Windows 7

On start I emphasize that I searched on the internet, do my own tests and failed -> that's why I'm asking You guys. I've got this problem that on SOME (not every) environments that are based on Windows XP my program doesn't work entirely correct.…
DinosaurTom
  • 212
  • 4
  • 15
1
vote
2 answers

Magicknet Get and SET image resolution (PPI)

I am using Magicknet for image manipulation in my ASP.NET project. How can I Get & SET the image resolution of the image? - When I resize a 300 pixel/inch image it apparently by default result in a 72 pixel/inch image, and because I maintain the…
Liron Harel
  • 10,819
  • 26
  • 118
  • 217
1
vote
3 answers

How do I make ImageMagick talk to Ghostscript

I am on Windows XP. I am using ImageMagick (MagickNet) to convert PDF's to TIF's. My problem is that when I load a PDF in the MagicNet.Image object, it doesn't throw an error, but when I look at the properties, it is obvious it didn't load the PDF…
Philip Canarsky
  • 181
  • 1
  • 2
  • 9
0
votes
0 answers

ImageMagick SVG with Windows symbol font (private use unicode character)

I'm using MagickNet (ImageMagick for .NET) to read the SVG code below, which contains a valid character from the "Symbol" true type font on Windows. The character is UF0B7 (uniF0B7 in the cmap table of the symbol.ttf font). This is a filled circle.…
Steph555
  • 21
  • 1
  • 4
0
votes
1 answer

MagicNET convert PDF to black and white (1bit) PNG

One of our customers need to convert PDF shipping labels to PNG images. The PDF images need to be 300 DPI and have a bit depth of 1 (pure black and white without grayscale). I have got this working but with some issues that i can not find any…
0
votes
2 answers

MagickNET - Compare two pictures and show only difference, rest transparent

Goal: Compare two PNG images and creating a new image containing only the changes (not highlighted in red or anything), while the rest of the png is transparent. MagickImage newImg = new MagickImage(image2Path); MagickImage…
fjompen
  • 73
  • 1
  • 12
1
2