Open Shideravan opened 2 years ago
have enough complaint about not keeping vectors sharp as specified in PDF dictionary, PDF should be pixel perfect for print single pixels unless fuzzy text is needed by antialiasing those step changes for fuzzy images use jpg like more photographic and thats generally the mode for manga / comics
You Know you can save as the images to PDF if you want the sharper more accurate blocky graphics
@GitHubRulesOK What is the name of the filter they apply to images in manga mode?
@curiosport "Manga" screen layout mode is simply use LTR or RTL (perhaps should be called "L2R2R2L") all it does is alter the page order from 1234 to 2143 or combined with "book mode" 13254
Most images outside PDF are "Anti-Aliased" to reduce harsh edges
pixels in PDF
same image as lossless PNG
Oh sorry, I didn't explain myself, I want to know the name of the algorithm they use for image filtering when opening a folder of images in Sumatra, "Anti-Aliased" or whatever they do, please give me the name.
Like the one on the left:
I dont know the formula at single pixel level as shown above see the pure screen values as 3x3 pixels unchanged in a pdf, that is from MuPDF rendering engine it seems to be skewed off centre by a half pixel and the median values are spread almost evenly ? each pixel will progressively take a mix of the colors in a block around it
@GitHubRulesOK Does the filter application come from mupdf? So when I open a folder of images, Sumatra first converts it to PDF and then shows it on the screen?
No other way round PDF (unitless) is converted to pixels at higher density so 1 pixel may easily become 300 pure pixels as shown above So not same for PNG pixels to PDF otherwise it would become blurred before conversion the first case is PNG to PDF eash pixel is kept square (but in PDF it can be any shape such as rectangle oval honeycomb etc, the convention is simply use XxY scalar with or without an x and or Y skew)
CBX like the lower image those single png pixels have been averaged from centres for say the 300 pixels spread at zoom JPG can be worse as the colours get artificially skewed in variable blocks due to colour removal (lower quality but at 100% it should look same as PNG).
Perhaps this shows the differences better PDF with Javascript sourced image. PDF uses binary numerics for monochrome as required for Barcode images etc so natively it is lossless no anti alias to distort.
Middle image is identical (extracted from image on the left, but rendered as a PNG Right hand image is after same MONO PNG is saved as Multicolour JPG the quality loss is as applied by Microsoft defaults
Similar quality to an image viewer, except the image viewer uses double the density so looks better at that same scale
Sumatra does filter .CBX files but doesn't filter .PDf files. Would be nice if such feature can be set by the user freely.![image](https://user-images.githubusercontent.com/12163923/177899240-f222ef0f-0dea-446f-ba4f-eb4174c5312c.png)