Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #3365

JPEG to PDF question

Path csiph.com!goblin3!goblin.stu.neva.ru!panix!qz!not-for-mail
From Eli the Bearded <*@eli.users.panix.com>
Newsgroups comp.lang.postscript
Subject JPEG to PDF question
Date Sat, 6 Apr 2019 21:33:24 +0000 (UTC)
Organization Some absurd concept
Lines 23
Message-ID <eli$1904061719@qaz.wtf> (permalink)
NNTP-Posting-Host panix5.panix.com
X-Trace reader2.panix.com 1554586404 10966 166.84.1.5 (6 Apr 2019 21:33:24 GMT)
X-Complaints-To abuse@panix.com
NNTP-Posting-Date Sat, 6 Apr 2019 21:33:24 +0000 (UTC)
X-Liz It's actually happened, the entire Internet is a massive game of Redcode
X-Motto "Erosion of rights never seems to reverse itself." -- kenny@panix
X-US-Congress Moronic Fucks.
X-Attribution EtB
XFrom is a real address
Encrypted double rot-13
User-Agent Vectrex rn 2.1 (beta)
X-Comments "'Pray that I don't alter the bargain further.' Welcome Darth Google." -- HonorableSoul
Xref csiph.com comp.lang.postscript:3365

Show key headers only | View raw


For the task of submitting receipts to a web form that only accepts PDF
files, I'd like to be able to easily turn JPEGs into PDF. Today I had
one that I converted with Gimp, using "export as"

-rw-rw-r-- 1 username username  585211 Apr  6 14:13 /tmp/statement.jpg
-rw-rw-r-- 1 username username 5113015 Apr  6 14:14 /tmp/statement.pdf

This worked, but it's not great. Besides the PDF requirement, there's
also a file size cap which I just barely made it under (5MB: 5242880
bytes). It's easy to see how the next one might not fit in 5MB with that
8.7x file enlargement Gimp gave me.

It looks like Gimp put a 1500x2000 JPEG as a 1500x2000 RGB bitmap with
only flate compression. This is 8.7x larger than JPEG and only 1.7x
smaller than raw binary RGB. 

What's a better way to do this? Unix (Linux) command line preferred. Gui
(like Gimp) acceptable but not great. Bonus if it can create a multiple
page PDF from individual images.

Elijah
------
also acceptable convert to some other intermediate image format first

Back to comp.lang.postscript | Previous | NextNext in thread | Find similar


Thread

JPEG to PDF question Eli the Bearded <*@eli.users.panix.com> - 2019-04-06 21:33 +0000
  Re: JPEG to PDF question John Forkosh <forkosh@panix.com> - 2019-04-07 06:39 +0000
  Re: JPEG to PDF question Guy <guy@guysalias.tk.invalid> - 2019-04-07 14:52 -0500
    Re: JPEG to PDF question Eli the Bearded <*@eli.users.panix.com> - 2019-04-07 21:54 +0000
      Re: JPEG to PDF question ken <ken@spamcop.net> - 2019-04-08 10:30 +0100
      Re: JPEG to PDF question Martin Leese <please@see.Web.for.e-mail.INVALID> - 2019-04-08 10:24 -0600
      Re: JPEG to PDF question Javier <invalid@invalid.invalid> - 2019-04-10 18:10 -0500
        Re: JPEG to PDF question luser droog <luser.droog@gmail.com> - 2019-04-10 18:01 -0700
        Re: JPEG to PDF question ken <ken@spamcop.net> - 2019-04-11 10:50 +0100
    Re: JPEG to PDF question Scott Hemphill <hemphill@hemphills.net> - 2019-04-11 17:59 -0400
      Re: JPEG to PDF question luser droog <luser.droog@gmail.com> - 2019-04-11 16:03 -0700
      Re: JPEG to PDF question Eli the Bearded <*@eli.users.panix.com> - 2019-04-12 00:33 +0000
        Re: JPEG to PDF question Mark Carroll <mtbc@bcs.org> - 2019-04-12 07:15 +0100
  Re: JPEG to PDF question orr721@gmail.com - 2019-06-16 07:11 -0700

csiph-web