Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Mark Carroll Newsgroups: comp.lang.postscript Subject: Re: JPEG to PDF question Date: Fri, 12 Apr 2019 07:15:44 +0100 Organization: none Lines: 20 Message-ID: <87bm1blpf3.fsf@ixod.org> References: <87d0lsfbjr.fsf@hemphills.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="3579a2222b2d5716155e758f7b807ada"; logging-data="29329"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19jh9aYuqs02bFlPK4EqKu5" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cancel-Lock: sha1:0VvQ+69M83n8N0x1dKVeeDzXFc4= sha1:g1Z52sH97IAXl/fJZC7LWr6CU1Q= Xref: csiph.com comp.lang.postscript:3377 On 12 Apr 2019, Eli the Bearded wrote: (snpi) > 81K JPEG -> djpeg -> 958K PPM (binary encoded raw bitmap) > 958K PPM -> pnmtops -> 2.0M PS (ascii encoded raw bitmap) > 2.0M PS -> ps2pdf -> 41K PDF (embedded binary JPEG) > > And the PS has the image rotated ninety degrees counter-clockwise > (which, naturally, remains turned in the PDF). The image in this case > was landscape format, and is now portrait format. My statement.jpg had > been portrait oriented to begin with. pnmtops has a -noturn option. > The PDF has a lot of JPEG artifacts. I'd probably want to check the > output carefully if using this for submitting photos of documents > through web portals. ps2pdf has a -dPDFSETTINGS=/prepress option which can help. -- Mark