How to make imagemagick not to open gzipped files

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
binbin
Posts: 3
Joined: 2016-01-23T12:03:26-07:00
Authentication code: 1151

How to make imagemagick not to open gzipped files

Post by binbin »

Hi,
I am trying to find a way to prevent imagemagick decompress gzip files automatically as below:

Code: Select all

$ identify iftop.png.gz 
iftop.png.gz=>/tmp/magick-4WiHZryQ PNG 819x461 819x461+0+0 8-bit DirectClass 66.2KB 0.000u 0:00.000
I checked delegates.xml file and it doesn't seem to have any settings related with gzip files.

Any advice will be appreciated. The version of ImageMagick I am using is 6.6.9-7.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: How to make imagemagick not to open gzipped files

Post by snibgo »

I suppose support for .gz files is built-in, rather than via external delegates, so this is controlled at compile-time, not at run-time with delegates.xml.

If you build IM from source, you can config with "--with-zlib=no".
snibgo's IM pages: im.snibgo.com
Post Reply