The "table lookup" can be done by the locale
utility. Try running this on your system:
$ locale width; locale height
It will give you width and height of the default paper format…
What would "pixel per pixel=1" mean?
A pdf is not a raster image. It is more like a vector graphic and its native unit is 1/72 inch. So you have to convert your measurement into inches one way…
I think exiting with a non-zero exit status is a bad idea. I got lots of complaints in the past when I insisted that, if the input is garbage, img2pdf should just refuse to work.
But I'm all in…
Good question. I'm not entirely sure anymore! There are a couple of software packages that have 96 as the default dpi. Do you have a good argument for a different value?
Okay, then we also have the culprit there. Tk thinks that your monitor dpi is 96 which is the same value that Tk presents for my monitor. If you have a 4k screen, that dpi value should probably be…
What happens if you change this number:
--- a/plakativ.py
+++ b/plakativ.py
@@ -942,7 +942,7 @@ class VerticalScrolledFrame(tkinter.Frame):
borderwidth=0,
…
Thank you for your report! Are you able to test a patch if I send you one here?
img2pdf uses Pillow as an imaging library. Once PIL understands jpeg xl, img2pdf will automatically support it as well. So your request for jpeg xl support should instead go here:
So the error you see doesn't actually come from img2pdf but from the library it uses to create the pdf (pikepdf). That library refuses to create a PDF page which is so small that it violates the…
Do you see anything img2pdf could do better to inform you of what is going on?
Yes, that seems correct. Where do you see the bug? What would you expect to happen instead?
Okay, I have never seen that type of error. There are 70 tests failing and they all seem to fail because the testsuite expects an image with 8 bits of depth but imagemagick apparently reports it…