Re: gm convert bla.jpg bla.pdf multiplies SEVENFOLD the file's size !

Bob Friesenhahn <[email protected]> Sat, 8 Dec 2018 16:28:00 -0600 (CST)
Newsgroups gmane.comp.video.graphicsmagick.bugs
Message-ID <[email protected]>
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

---559023410-1141662977-1544307756=:14882
Content-Type: text/plain; CHARSET=UTF-8; FORMAT=flowed
Content-Transfer-Encoding: 8BIT
Content-ID: <[email protected]>

On Sat, 8 Dec 2018, Mehdi wrote:

> The main problem is still this one:
>> gm convert -limit memory 1GB *.JPG output.pdf
> gm convert: abort due to signal 7 (SIGBUS) "Bus Error"...
> fish: 'gm convert -limit memory 1GB *.…' terminated by signal SIGABRT
> (Abandon)
>
> The directory I tried to compile is 228 Mo big, with at least 400 files.
> It used to work, so it should, one way or another.

That is a lot of data to compress down to 2 MB.  PDF is just a wrapper 
formant and does not make the data smaller.

In addition to reducing the compression quality, you can also reduce 
the pixel dimensions by adding something like this after the file 
names.

   -resize 30%

GraphicsMagick has a design issue in that it does not "stream" while 
it converts a list of input images into one output file.  Instead it 
reads all of the input images before starting to write the output 
file.  This results in a limitation on how much data may be 
processed.

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
---559023410-1141662977-1544307756=:14882
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


---559023410-1141662977-1544307756=:14882
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Graphicsmagick-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/graphicsmagick-bugs

---559023410-1141662977-1544307756=:14882--