Perhaps the deflating method from ocrmypdf can also be used for img2jpg
The irony: ocrmypdf depends on img2pdf for its functionality ;)
How ocrmypdf does it? Like this:
<<…
yesterday I used one of the losslessly web tools and it seemed to work. But they are not telling the truth. I only checked the size and not the content. They reduced resolution, which is no…
There are many online PDF shrink tools that can shrink my PDF losslessly again
Can you link to some of them? I'm interested in how they achieve that. Are they just re-compressing the jpeg…
Considered, yes. But then also discarded the idea.
The img2pdf tool is already complex enough in the layouting it can do. Instead of having one tool that can do everything (think imagemagick)…
Cool! If there is nothing to be done from my side, please close this issue. Thanks!
Okay, but why did the jp2 module fail to load? What was the error message?
Thank you for opening an issue! Could you provide some error output showing what happens when one runs img2pdf with python 3.12?
I slept of this and thought a bit more. I think what made me not like this feature is, that I think it should be other tools which are made for PDF manipulation like pdftk who should be responsible…
I'm not a fan but lets try to spin this thought further. Maybe you manage to convince me. How would this work in practice? Lets say the user runs this:
img2pdf letter.png /dev/null…
Nice!
I have a question. Why does this happen:
$ jbigtopnm mono.jb2
jbigtopnm: Invalid contents of input file. Input data stream contains invalid data