Re: gm convert bla.jpg bla.pdf multiplies SEVENFOLD the file's size !
Bob Friesenhahn <[email protected]> Mon, 10 Dec 2018 10:16:00 -0600 (CST)
| Newsgroups | gmane.comp.video.graphicsmagick.bugs |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 9 Dec 2018, Mehdi wrote:
> The size is still a big problem, with "preserve-settings", the size is
> between four and fivefold the sum of pictures files. Its number limit is
> now between 260 and 280 files, or in term of total size, 111 and 127 Mo.
Please see the output of 'gm convert -list resources'. This is the
first part of what I see on the system I am using at the moment:
% gm convert -list resources
Resource Limits (Q16, 64 bits/pixel, 64bit address)
----------------------------------------------------
Disk: Unlimited (MAGICK_LIMIT_DISK)
Files: 256 (MAGICK_LIMIT_FILES)
Map: 15.6GiB (MAGICK_LIMIT_MAP)
Memory: 7.8GiB (MAGICK_LIMIT_MEMORY)
Pixels: Unlimited (MAGICK_LIMIT_PIXELS)
Threads: 4 (OMP_NUM_THREADS)
Width: 256.0MiP (MAGICK_LIMIT_WIDTH)
Height: 256.0MiP (MAGICK_LIMIT_HEIGHT
Notice that 'files' is limited to 256 which is not terribly far from
the problematic range of 260 and 280 files. Perhaps there is a bug
related to this.
Please try adding
-limit files 1023
or set MAGICK_LIMIT_FILES in the environment like
export MAGICK_LIMIT_FILES=1023
I think that the Linux default allows 1024 file descriptors per
program.
It would be useful to know if this changes behavior.
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