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

Bob Friesenhahn <[email protected]> Sat, 8 Dec 2018 16:21:55 -0600 (CST)
Newsgroups gmane.comp.video.graphicsmagick.bugs
Message-ID <[email protected]>
On Sat, 8 Dec 2018, Mehdi wrote:

> 14 Mo, instead of 2. Still not ok. But the limit parameter worked.

What is the total size (in megabytes) of all your JPEG files added 
together.

> My pictures are all in grades of grey. Dithering won't do... Isn't it
> really possible to have the exact same files ?
> If there exists other "containers" of jpeg files, I'm ok.

The only other thing I can think of to reduce the size is to reduce 
the quality level.  For example:

gm convert -verbose -limit memory 1GB *.JPG -quality 20 -type Optimize output.pdf

The default quality level is 75.  Adjust the JPEG quality down until 
you are happy with the file size.  The apparent image quality will 
suffer but you might not notice on your Kindle.

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