Interesting. I never tried this encoding. I found jbig2enc for Ubuntu - a repo here:
https://launchpad.net/~alex-p/+archive/ubuntu/jbig2enc
Also, it's a snap version:
https://snapcraft.io/install/jbig2enc/ubuntu
It is old software, but looks like it's still maintained. In this situation, I guess the snap is not such a bad idea because of dependencies. So I installed it and gave it a try.
Not so very well documented, but I made a PDF like this:
Code:
jbig2enc -s --pdf mypicture.png
jbig2enc.pdf output>mypicture.pdf
The first command created 2 files, output.000 and output.sym. The second command is a python script creates a pdf of the 2 files.
The result was a very tiny PDF (2.6kb) with a black and white version of my picture (1.6mb - but 32bits RGBA).
This worked well on KUbuntu 22.04, but I think the snap should work on most distros. Just running "jbig2enc" shows some options, but I have to admit I really don't understand them.