[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PDFPIC issues
From: |
Deri |
Subject: |
Re: PDFPIC issues |
Date: |
Thu, 22 Aug 2024 15:24:17 +0100 |
Hi Peter,
Your diagnosis of the size issue is correct, your identify command has
delivered the wrong dimensions for the pdf, and gropdf has scaled the image by
0.96 to fit the dimensions it received. This is probably a version issue, on
my system the identify command produces correct results:-
[derij@pip pdfpic (master)]$ identify peachpie.*
peachpie.jp2 JP2 150x150 150x150+0+0 8-bit sRGB 0.000u 0:00.000
peachpie.jpg JPEG 150x150 150x150+0+0 8-bit sRGB 12891B 0.000u 0:00.000
peachpie.pdf PDF 150x150 150x150+0+0 16-bit sRGB 232B 0.000u 0:00.000
peachpie.png PNG 150x150 150x150+0+0 8-bit sRGB 44950B 0.000u 0:00.000
There are still issues with this, it is definitely not 16 bit colour and the
size is not 232, but at least the dimension is correct! If I use the -verbose
option it actually gets these things correct.
The issue of the missing png image does not happen on my system, pdf attached,
so it is likely also linked to the version of ImageMagick/perlmagick used. My
version is:-
[derij@pip pdfpic (master)]$ identify -version
Version: ImageMagick 7.1.1-29 Q16-HDRI x86_64 21991 https://imagemagick.org
Copyright: (C) 1999 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenMP(4.5)
Delegates (built-in): bzlib cairo djvu fftw fontconfig freetype gslib gvc heic
jbig jng jp2 jpeg jxl lcms lqr ltdl lzma openexr pangocairo png ps raqm raw
rsvg tiff webp wmf x xml zip zlib zstd
Compiler: gcc (12.3)
It would be helpful to see your version, and the result of identifying the png
image, and whether you received a warning when you run groff.
Interestingly, using a different version of identify:-
ImageMagick 6.9.11-60 Q16 aarch64 2021-01-25
I get the 144x144 results, but if I give the -verbose flag it reports
correctly:-
Page geometry: 150x150+0+0
So it's difficult to diagnose why it reports 144x144!!
Cheers
Deri
dj.pdf
Description: Adobe PDF document
- PDFPIC issues, Peter Schaffter, 2024/08/21
- Re: PDFPIC issues,
Deri <=