Change Ghostscript reference

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
mac_ref
Posts: 4
Joined: 2014-12-02T00:41:33-07:00
Authentication code: 6789

Change Ghostscript reference

Post by mac_ref »

Goodmorning,
I know that ImageMagick works with the Ghostscript and I would like to know if I can use ImageMagick just with the gsdll32.dll.
I'd like to use my software even if Ghostscript is not installed on a computer, so I thought that maybe it could be a way to reference the dll inside my code for ImageMagick to use it.
Is it possible or the software I will develop with ImageMagick needs to run on computers that have Ghostscript installed?

Thank you
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Change Ghostscript reference

Post by snibgo »

If I understand correctly, IM can be built with Ghostscript as an internal delegate, by using

Code: Select all

./configure ... --with-gslib ...
Otherwise, IM uses Ghostscript as an external delegate, by running the Ghostscript program.
snibgo's IM pages: im.snibgo.com
mac_ref
Posts: 4
Joined: 2014-12-02T00:41:33-07:00
Authentication code: 6789

Re: Change Ghostscript reference

Post by mac_ref »

snibgo wrote:If I understand correctly, IM can be built with Ghostscript as an internal delegate, by using

Code: Select all

./configure ... --with-gslib ...
Otherwise, IM uses Ghostscript as an external delegate, by running the Ghostscript program.
I don't understand how to use this.
The programming language I'm using is C#, where do I have to launch this command?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Change Ghostscript reference

Post by snibgo »

This is part of the process of building from source. See http://www.imagemagick.org/script/install-source.php . If building on Windows with Cygwin, see also my http://im.snibgo.com/compim.htm
snibgo's IM pages: im.snibgo.com
mac_ref
Posts: 4
Joined: 2014-12-02T00:41:33-07:00
Authentication code: 6789

Re: Change Ghostscript reference

Post by mac_ref »

Ok, thank you very much!
mac_ref
Posts: 4
Joined: 2014-12-02T00:41:33-07:00
Authentication code: 6789

Re: Change Ghostscript reference

Post by mac_ref »

I have Magick.Net-x86.dll and Magick.Net-x86.xml in my software bin directory.
Can I change the xml to link ImageMagick to the gsdll32.dll which is in the same directory?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Change Ghostscript reference

Post by snibgo »

Sorry, I know nothing about Magick.Net.
snibgo's IM pages: im.snibgo.com
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Change Ghostscript reference

Post by dlemstra »

You can specify an alternative ghostscript location with MagickNET.SetGhostscriptDirectory. I think you only need the dll but I am not sure so you have to try it yourself
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Post Reply