Huge RAM usage on small files [TIF->PDF
Posted: 2018-08-23T00:11:24-07:00
Hey,
I'm having a problem of converting multiple TIF files into a single PDF. The files were produced in Scantailor, they are about 200 kB on average, but their resolution is huge (9032 x 13476). There's about 50 of them and it's monochrome text only. I'm running Arch Linux and ImageMagick 7.0.8-10.
I guess that the program tries to convert them somehow like they would be full color or something, and I'm running into out of memory/cache problems. Not to mention it takes way too long to convert even single page. I just want to merge the files into PDF without any compression. I tried "-compress None" and "Group4" (that's what I use on Windows), also tried suggestion from this thread: viewtopic.php?t=32431 (-monochrome -type bilevel). Is it possible or will I be forced to launch Windows just to make a PDF from those files? No matter what I do, my ram and cache fills almost instantly. I tried tiff2pdf, but that doesn't support multiple files (and merging those with imagemagick isn't possible due to memory problem). Doing such things in Windows using Irfanview multipage tiff -> pdf was always a matter of seconds.
I'm having a problem of converting multiple TIF files into a single PDF. The files were produced in Scantailor, they are about 200 kB on average, but their resolution is huge (9032 x 13476). There's about 50 of them and it's monochrome text only. I'm running Arch Linux and ImageMagick 7.0.8-10.
I guess that the program tries to convert them somehow like they would be full color or something, and I'm running into out of memory/cache problems. Not to mention it takes way too long to convert even single page. I just want to merge the files into PDF without any compression. I tried "-compress None" and "Group4" (that's what I use on Windows), also tried suggestion from this thread: viewtopic.php?t=32431 (-monochrome -type bilevel). Is it possible or will I be forced to launch Windows just to make a PDF from those files? No matter what I do, my ram and cache fills almost instantly. I tried tiff2pdf, but that doesn't support multiple files (and merging those with imagemagick isn't possible due to memory problem). Doing such things in Windows using Irfanview multipage tiff -> pdf was always a matter of seconds.