Code: Select all
0100100100100000011000010110110100100000
0100111001100001010011100010000100100000
0100100100100000011000010110110100100000
0110000100100000011011010110000101101110
00100001


Code: Select all
0100100100100000011000010110110100100000
0100111001100001010011100010000100100000
0100100100100000011000010110110100100000
0110000100100000011011010110000101101110
00100001What I've encountered is that it's those 4-bit or less depth images which end up showing incorrectly (not showing at all in pdfjs). The problem lies in pillow or in img2pdf. Gif gave me the same result.erm67 wrote:I think png support in pdf readers is optional.
Code: Select all
0100100100100000011000010110110100100000
0100111001100001010011100010000100100000
0100100100100000011000010110110100100000
0110000100100000011011010110000101101110
00100001Also gif support is optionalZucca wrote:What I've encountered is that it's those 4-bit or less depth images which end up showing incorrectly (not showing at all in pdfjs). The problem lies in pillow or in img2pdf. Gif gave me the same result.erm67 wrote:I think png support in pdf readers is optional.
Code: Select all
0100100100100000011000010110110100100000
0100111001100001010011100010000100100000
0100100100100000011000010110110100100000
0110000100100000011011010110000101101110
00100001pbm + zip for black&white or ppm for gray scale are the best formats.Zucca wrote:@erm67: Ok, I need to use jpeg then.
Png would just be optimal for 2-bit or 1-bit scanned papers.