That's an improvement, but from an image encoding newbie's perspective it would be even more helpful if it said something explicitly like 'Encoding separate soft mast (/SMask) to support…
Good point! What do you think about this re-phrasing:
--- a/src/img2pdf.py
+++ b/src/img2pdf.py
@@ -1823,8 +1842,8 @@ def read_images(rawdata, colorspace, first_frame_only=False,…
And then you need:
- selecting which font
- selecting align (left, center, right)
- selecting font size
- selecting margin
- selecting padding
- selecting font color
- selecting…
Do I see this correctly, that when running img2pdf.convert()
you get no output and are just thrown out of your python interpreter? I've never seen that. I have no idea why you do not get any…
When you say "quit" -- what is the error message you get? Without more details I'm afraid I cannot know what is wrong.
There is certainly no artificial limit in the img2pdf code that aborts if…
Suppose the following diff:
@@ -1410,27 +1420,35 @@ def transcode_monochrome(imgdata):
# into putting everything into a single strip. Thanks to Andrew Murray for
# the…
I agree. And if we start thinking about performance, then the whole transcode_monochrome
functions should be replaced by code that actually encodes CCITT Group4 in C without going through PIL…
That's good to know but the workaround still needs to stay to support older versions of libtiff. Or is there a reason to remove it or make it conditional?
You mean the workaround introduced by 75c43de09dc872ed3ce4ace6cad9d708318be5ad?
Since Pillow 8.4.0, TiffImagePlugin
has the attribute STRIP_SIZE with the default value of 65536. You can probably create such a TIFF file by setting STRIP_SIZE to a value above 65536 and then…
You can use pdfimages
from popper
: https://manpages.debian.org/bullseye/poppler-utils/pdfimages.1.en.html