Path: csiph.com!xmission!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 11 Apr 2019 16:59:36 -0500 From: Scott Hemphill Newsgroups: comp.lang.postscript Subject: Re: JPEG to PDF question References: Reply-To: hemphill@alumni.caltech.edu Date: Thu, 11 Apr 2019 17:59:36 -0400 Message-ID: <87d0lsfbjr.fsf@hemphills.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:/WM/eBNIa9pusG8pH5cBVO27U14= MIME-Version: 1.0 Content-Type: text/plain Lines: 24 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-r81tzs8h0rHn2GkZMTwaPTw4omSndWf+ZYSOL7yJHS3cWLKg7zDW/SsW2jGowPhvNxDZ45ftM+ZKnhL!Mej7re4fUIFH8VllQexZQvo5nhJOFDaZQkkwOLCaoV1B0JOpqH6amRo= X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1741 Xref: csiph.com comp.lang.postscript:3374 Guy writes: > Eli the Bearded wrote: > >> I'd like to be able to easily turn JPEGs into PDF. >> > > > Can use viewjpeg.ps of Ghostscript distribution. > > gs -sDEVICE=pdfwrite -o out.pdf viewjpeg.ps -c (in.jpg)viewJPEG You can also use netpbm tools, along with Ghostscript's ps2pdf: djpeg in.jpg | pnmtops | ps2pdf - out.pdf In my CentOS distribution, djpeg is from libjpeg-turbo-utils, pnmtops is from netpbm-progs, and ps2pdf was already installed from ghostscript. Scott -- Scott Hemphill hemphill@alumni.caltech.edu "This isn't flying. This is falling, with style." -- Buzz Lightyear