Let's just say I have a bunch of images that I want to losslessly compress to pdfs. Which type of lossless image format provides the smallest size for pdfs, 24bit png, 48bit png, bmp, tif, tiff, JPEG2000, or pcx?
Which pdf tool compresses them the smallest, Adobe Acrobat, ImageMagick, or GIMP?
Oh, and by the way, even if you losslessly compress them, will you lose some quality when you export them?
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 12 of 12
Thread
-
Last edited by Mr. Fanservice; 5th Feb 2024 at 18:28.
-
The filesize will always be larger for 48bit(16bit per channel), it's not comparable to 24bit (8bit per channel) formats.
For 8bit RGB the smallest lossless output image format compression for PDF is JPEG2000 .
Which pdf tool compresses them the smallest, Adobe Acrobat, ImageMagick, or GIMP?
For the PDF container probably IMG2PDF, to wrap images into PDF. There is less overhead and it's faster
https://pypi.org/project/img2pdf/
(This is using 00214.png)
Smallest JPEG2000 compressor out of those looks like ImageMagick .
Adobe jpeg2000 lossless
1,677,374 bytes
ImageMagick jpeg2000 lossless
1,633,321 bytes
FFmpeg jpeg2000 lossless
2,033,756 bytes
Smallest PDF wrapper looks like IMG2PDF
Adobe jpeg2000 lossless + Adobe PDF wrapper
1,709,341 bytes
Adobe jpeg2000 lossless + IMG2PDF wrapper
1,678,831 bytes
ImageMagick jpeg2000 lossless + IMG2PDF wrapper
1,634,776 bytes
Oh, and by the way, even if you losslessly compress them, will you lose some quality when you export them?
Not if it's done correctly.
You should be able to save it as PNG for example in acrobat
But pdfimages can extract the image as-is with the original compression/format that was used in making the PDF
https://www.xpdfreader.com/pdfimages-man.html -
-
ImageMagick doesn't work for me to extract jpeg2000 images from PDF, or to convert them. Maybe there are some other switches that I don't know about .
Just like ImageMagick doesn't make lossless PDF with jpeg2000 either - it can only make the jpeg2000 images, not put it into PDF correctly. The PDF it makes are lossy, so you use it to make the jpeg2000 images and Img2PDF to make the PDF.
Img2PDF can't because it makes PDF (hence the name)
pdfimages will extract the original images - so jpeg2000 if that was what used in the PDF - and that's lossless it's just like "demuxing" the image(s) from a PDF
Acrobat works ok , or basically any PDF software that can view and save images. Your favorite XnViewMP can as well. If you save it as PNG it will become larger , because the compression is worse than JPEG2000
Why not leave it as a jpeg2000 image without the PDF ? Then you don't have to extract anything and the filesize is smaller. What is the reason for using PDF ? Larger filesizes, extra steps -
-
There is slight overhead for PDF. It's not exactly the same filesize, or you did something wrong. Look at the byte size
You compress with jpeg2000 using ImageMagick, then use img2pdf . That was the smallest PDF lossless filesize I found. Maybe there is some better combination
I don't know of any other way to have smaller filesizes, except to not use PDF . Maybe one of the exotic compressors like EMMA can compress it farther, you can try it - it can compress than images
PDF will always be larger than any of the same input images, because of the overhead. It's a container, and that adds bytes. If you used non-jpeg2000 input and PDF to compress to JPEG2000, then the extracted JPEG2000 from that PDF will still be smaller . It's impossible not to be smaller in filesize than the PDF
Why do you need to use PDF ? -
-
-
Did you want to store the formats as their native formats ? or only care that it was lossless and save space?
PDF just increases the filesize of the same JPEG2000 images . PDF is only going to be larger. I posted the data above.
Why do you need an "image" format ? Use video - You get temporal compression
If you need an image format, use jpeg-xl . It's better than JPEG2000 . PDF means you're limited to JPEG2000. And PDF means larger filesize than the JPEG2000 images alone -
-
If it's some YUV video already using lossy temporal compression , it's simply not possible -
Expect a lossless image sequence in any format to be much much larger. And most image sequences will be in integer RGB (such as 8bit , 16bit), so technically there is some quality loss
But a re-encoded lossless video of that same YUV video would be smaller than the image sequence, but still much larger than the original YUV videoLast edited by poisondeathray; 5th Feb 2024 at 22:25.
Similar Threads
-
Make PNGs into 96 dpi 48 bit PDFs
By Mr. Fanservice in forum ComputerReplies: 44Last Post: 2nd Feb 2024, 11:31 -
Smallest Visually Lossless Files
By Jay123210599 in forum Newbie / General discussionsReplies: 10Last Post: 19th Jan 2024, 02:10 -
Quick sanity check: Lossless to lossless encoding HuffYUV to UTVideo
By nicholasserra in forum Video ConversionReplies: 2Last Post: 20th Aug 2020, 11:41 -
Smallest laptop with HW HEVC LOSSLESS encoding for capture 4K to 16TB HDD
By Truthler in forum Camcorders (DV/HDV/AVCHD/HD)Replies: 10Last Post: 13th Aug 2020, 14:56 -
FFMPEG - hevc_nvenc & h264_nvenc lossless presets not truly lossless?
By AnomalyDetected in forum Video ConversionReplies: 5Last Post: 27th Oct 2019, 02:24