New Document From Image without re-encoding JPG?

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

derek kusiak
User
Posts: 2
Joined: Tue Aug 12, 2014 4:31 pm

New Document From Image without re-encoding JPG?

Post by derek kusiak »

When I create a PDF from a JPG file via New Document >> From Image File(s) it seems that PDF-XChange Editor re-encodes the image. For example, if I start with a 10 MB truecolor JPG file, the resulting PDF generated by Editor is 5.4 MB, clearly re-compressed by the PDF engine.

The Images To PDF import dialog has options that seem to control this behavior, but they don't. I have tried every setting in Images To PDF Options >> Image Compression and the resulting PDF is always the same. I have tried un-checking Compression Enabled, changing the type to Auto, Flate, etc., and the resulting output PDF is always the same size.

Ideally I would like to create PDFs from JPG files without re-encoding the image at all, but I would settle for some control over how my image files are compressed to generate the PDF.

I'm on version 5.5 (build 309.0) and I have a PRO license.

Thanks!
User avatar
Patrick-Tracker Supp
Site Admin
Posts: 1645
Joined: Thu Mar 27, 2014 6:14 pm

Re: New Document From Image without re-encoding JPG?

Post by Patrick-Tracker Supp »

Hello Derek

Thank you for the post. I am not able to reproduce this behavior. I created a pdf from an image file, and made sure I choose compression. The result was 504KB. When I chose no compression, the result was 6.75MB. The original was 1.25MB. Is this the issue you are seeing?

Thanks!
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Cheers,

Patrick Charest
Tracker Support North America
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3613
Joined: Thu Jul 08, 2004 10:36 pm

Re: New Document From Image without re-encoding JPG?

Post by Ivan - Tracker Software »

We will add an option to preserve original image encoding when possible. Unfortunately it is not always possible because images in PDF are stored in own format, but it should be possible for most JPEG files.
PDF-XChange Co Ltd. (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
derek kusiak
User
Posts: 2
Joined: Tue Aug 12, 2014 4:31 pm

Re: New Document From Image without re-encoding JPG?

Post by derek kusiak »

Thank you for your responses, Ivan and Patrick. I realize that preserving image quality is not always possible (e.g., a TIFF can't be wrapped natively in a PDF and therefore conversion is necessary), but it would be wonderful to preserve JPG encoding without re-compression.

As for my other issue (import image compression settings not working), I must have been doing something wrong. I tried creating a PDF from a JPG with several compression options and the file sizes varied, so the options are working. That being said, it would still be best to preserve the JPG data stream where possible without subjecting it to re-compression.

Thanks again. I look forward to having the option of preserving JPG encoding in my PDFs in the future.
User avatar
Will - Tracker Supp
Site Admin
Posts: 6815
Joined: Mon Oct 15, 2012 9:21 pm

Re: New Document From Image without re-encoding JPG?

Post by Will - Tracker Supp »

:D
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Best regards

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com