I have png files that are 96 dpi, with 48 bit (16 bit per channel), and have a resolution of 1920x1080. I want put them in a pdf file where I export them using 96 dpi to get the same resolution and bit as the input. How do I do that without losing any quality?
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 30 of 45
Thread
-
Last edited by Mr. Fanservice; 28th Jan 2024 at 00:26.
-
Png format is NOT directly supported in pdf - you must either convert to jpg or to an uncompressed (bmp/dib-type or tiff) image and applies lzw/zip or similar lossless compression on it. ALL apps do this, either explicitly or automatically behind the scenes.
ScottLast edited by Cornucopia; 28th Jan 2024 at 13:07.
-
TBH no clue but perhaps this can be helpful https://blog.idrsolutions.com/understanding-the-pdf-file-format/#makeyourown
PDF is able to support 16bit per component lossless images - question is what tool can perform such action. -
-
Because it isn't part of the pdf spec. You have got to remember, when the pdf spec was created in 1992, the only universally common shared image formats were jpg & tiff. And pdf spec was proprietary (Aldus/Adobe). It has expanded its capabilities through the years, and since 2008 is now an open standard, but the general use of it has been fixed for quite some time.
However, you shouldn't have to worry about that, since as I said, it can still be stored uncompressed or losslessly compressed using a few different methods, so no loss anyway, as long as you are careful and explicit in your conversions. PNG --> BMP --> TIFF --> PDF --> PNG doesn't lose any quality, as long as you don't do something else like resize, change color model, subsampling, etc.
Jpg2k is partially supported in pdf, but I am not sure about the lossless variety.
As mentioned, it is often the particular tool that determines whether a variation is processed (and compressed) correctly or not. The gold standard is probably Adobe Acrobat, but even that doesn't cover everything.
Also, it's still not clear why you need to convert them at all in order to view properly, or why you chose pdf?
Scott -
-
-
-
-
-
How much smaller were the PDF than the 7zip compressed files ?
What did you use to make the PDF and to extract from the PDF ? Are you sure it didn't truncate to 8bit ? -
-
That filesize difference is too large. 100 quality sounds like 8bit jpeg compression
This is an old post, but one of the imagemagick authors wrote
At this moment in time ImageMagick only supports writing 8-bit pdf files.
I can't find information that is more recent . But that filesize difference vs. 7z already tells you the PDF is not lossless . -
-
For 16bit PDF, Photoshop can , but you have setup all the options correctly . It uses JPEG2000 for lossless compression . It uses a newer type of PDF standard that limits compatibility.
You can get better 16bit compression with jpeg-xl by itself; PDF is not really meant for image storage -
Do a before vs after bitwise comparison (difference). It should tell you whether it is truly lossless or not.
Scott -
Nope - perform this test:
Save your source, 16 bit per component (48 bit ) twice:
- as PNG with maximum compression
- as PNG without compression
Then compress each file with 7z in ultra settings.
Compare file size and report results.
PDF just adding uncertainty as way how bitmap is stored is unknown (or there is no clear control on process). -
-
Actually 16bit not lossless in PS either . I was getting 99.5db PSNR in round trips -
The reason is PS doesn't work in true 16bit ; it's actually 15+1 .
For 16bit it works internally in 0 to 32,768 range , instead of 0 to 65,535
https://community.adobe.com/t5/photoshop-ecosystem-discussions/16-bit-or-15-bit-1/m-p/3268264
If true mathematically lossless 16bit is important to you , you can probably forget PDF, since Adobe is responsible for the PDF specs and they are the original author of the format -
Last edited by Mr. Fanservice; 31st Jan 2024 at 07:28.
-
They are truly 16bit images in the PDF - but there is negligible quality loss in the intermediate processing. I don't know of any other way besides Adobe to make and extract the images in 16bit . Some tools are pure 8bit
What is the background information and source of the images ? Do they have real 16bit data or interpolated 16bit ? -
-
-
Similar Threads
-
Change the DPI
By Jay123210599 in forum Newbie / General discussionsReplies: 14Last Post: 20th Jan 2024, 08:43 -
Srt to BDN XML without PNGs
By edumj in forum SubtitleReplies: 0Last Post: 19th Jun 2023, 13:52 -
TIFFs with no DPI when extracted from video
By taigi in forum RestorationReplies: 3Last Post: 20th May 2021, 23:40 -
Maximum video bit rate that make sense?
By JosephTocco in forum Newbie / General discussionsReplies: 15Last Post: 9th Feb 2021, 15:51 -
Fresh x264 10-bit vs Ice Lake hevc qsv 10-bit
By sophisticles in forum Video ConversionReplies: 5Last Post: 7th Jan 2021, 16:06