converting jpg to pdf without imagemagick

Marius Gedminas marius at pov.lt
Sun Oct 10 18:44:23 UTC 2010


On Sun, Oct 10, 2010 at 07:20:41PM +0200, Jozsef Vadkan wrote:
> after trying to convert 173 jpg files to one pdf:
> 
> strace convert *.jpg ../outpud.pdf -verbose
> ...
> ...
> ...
> +++ killed by SIGKILL +++
> 
> ...it just can't handle it??? ok...

About eight years ago I tried to convert a bunch of scanned lecture
notes (~70 jpg files) to a PDF, and discovered that ImageMagick has a
memory leak.  I was able to complete the conversion by adding a few
large swap files:

  dd if=/dev/zero of=/tmp/swapfile bs=1M count=2000
  mkswap /tmp/swapfile
  swapon /tmp/swapfile

I wonder if you've stumbled upon the same bug, still not fixed in eight
years...

Marius Gedminas
-- 
Place mark here ->[ ]<- if you want a dirty monitor.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20101010/5c87e8e6/attachment.pgp>


More information about the ubuntu-users mailing list