Article View: comp.os.linux.misc
Article #2637djvu [Was: Re: Shrinking huge PDF files]
From: Carlos E.R.
Date: Mon, 16 Nov 2026 10:15
Date: Mon, 16 Nov 2026 10:15
30 lines
1909 bytes
1909 bytes
On 2026-11-16 09:56, Nuno Silva wrote:
> (And if you end up converting the document to monochrome, it's probably
> worth considering at least comparing with DjVu unless you need it to be
> PDF.)
How do you handle conversion to djvu in Linux? I have found few people that use this format.
I use a script, that basically does this:
C44=c44
PNGTOPNM=pngtopnm
"image/jpeg") $C44 -dpi 240 -slice $SLICE -crcbhalf "$FILE"
"image/png")
$PNGTOPNM "$FILE" > "$NOMBRECMPLTO"pnm
$C44 -dpi $DPI -slice "23+19+17+13+9+7+5+3" -crcbhalf "$NOMBRECMPLTO"pnm
rm "$NOMBRECMPLTO"pnm
(I do some adjustments depending on DPI, but I removed for clarity)
I understand that there are better tools (payware) in Windows.
--
Cheers, Carlos.
ESπͺπΈ, EUπͺπΊ;
Technical Details
Message-ID:
<kn1rsmx5sd.ln2@Telcontar.valinor>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsgate.tebibyte.org!.POSTED.48.red-79-150-116.dynamicip.rima-tde.net!Telcontar.valinor!not-for-mailReferences:
<Qq7KS.9052$s53.4981@fx10.iad> <%FfKS.6730$5s3.683@usenetxs.com> <NhrKS.21511$li3.13390@fx46.iad> <11degfs$3d3uk$2@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsgate.tebibyte.org!.POSTED.48.red-79-150-116.dynamicip.rima-tde.net!Telcontar.valinor!not-for-mail From: "Carlos E.R." <robin_listas@es.invalid> Newsgroups: comp.os.linux.misc Subject: djvu [Was: Re: Shrinking huge PDF files] Date: Mon, 16 Nov 2026 11:15:48 +0100 Organization: Tebibyte_Retro_Gaming Message-ID: <kn1rsmx5sd.ln2@Telcontar.valinor> References: <Qq7KS.9052$s53.4981@fx10.iad> <%FfKS.6730$5s3.683@usenetxs.com> <NhrKS.21511$li3.13390@fx46.iad> <11degfs$3d3uk$2@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: mailgate.tebibyte.org; posting-host="48.red-79-150-116.dynamicip.rima-tde.net:79.150.116.48"; logging-data="15896"; mail-complaints-to="abuse@tebibyte.org" User-Agent: Mozilla Thunderbird Content-Language: es-ES, en-CA In-Reply-To: <11degfs$3d3uk$2@dont-email.me> X-Leafnode-NNTP-Posting-Host: 127.0.0.1