Convert imagefile to PDF without rerender image

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

The very act of reading a JPEG image data is where the JPEG distortion will occur.
The only way you can convert a JPG image to PDF without re-renedering is to somehow incorperate the JPEG data into the file PDF as is, without parsing it.

IM will not do this as it is primarilly a generalised image processor, not a spcific JPEG to PDF converter. your only solution is to find a specific JPEg to PDF converter that will preserve the JPEg data as is.

Sorry. IM is the wrong tool. You want a sledge hammer, not a fine toothed saw.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
dognose
Posts: 265
Joined: 2005-03-08T22:16:37-07:00

Post by dognose »

The program HTMLDOC will create a PDF that includes a jpg. If not directly, you may need to make an html page that references the jpg, at which you can convert to PDF.

http://htmldoc.org/
Post Reply