Re: Disabling Ghostscript support

Bob Friesenhahn <[email protected]> Thu, 23 Jul 2020 08:43:33 -0500 (CDT)
Newsgroups gmane.comp.video.graphicsmagick.help
Message-ID <[email protected]>
On Thu, 23 Jul 2020, [email protected] wrote:

> 
> Hello
> 
> I was trying to disable Ghostcript support and came up with a patch (attached).
>
>  1. But gm convert -list delegates still shows formats using gs.
>     Does delegates.mgk should be modified or coders should make use of HAVE_GS/HAVE_PS macro?
>  2. Is it possible to disable conversion delegation at all, other than deleting delegates.mgk file?

Currently it is necessary to comment out lines in the delegates.mgk 
file.  There is no configure option to disable use of external 
"delegates" in general.  The MAGICK_CONFIGURE_PATH environment 
variable may be used to change the search for ".mgk" files so that it 
uses tailored ones that you provide in a non-default directory.

If one uses a 'modules' based build, then the 'ps', 'eps', 'pdf' 
related modules could be deleted or marked non-executable if this 
prevents them from being loaded.

Your patch is not helpful/useful because it is regarding use of a 
Ghostscript library ('libgs') which was never enabled by default.  The 
configure script support for using that library was removed in 2018 
although the pre-processor definitions remain.

I have been intending to support reading PDF files without relying on 
Ghostscript since this has become more feasible given the rise of 
software originally based on xpdf (Poppler project) but such software 
appears to have become a moving target.  I don't want to double the 
number of library dependencies in order to support reading PDF.

Bob
-- 
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
Public Key,     http://www.simplesystems.org/users/bfriesen/public-key.txt