ImageProcessing-ElectronicPublications / scantailor-experimental

Scan Tailor Experimental is an interactive post-processing tool for scanned pages.
https://github.com/Tulon/scantailor/tree/experimental
GNU General Public License v3.0
30 stars 0 forks source link

Pixel Aspect Ratio (not spam!) #28

Closed gasparschott closed 3 months ago

gasparschott commented 5 months ago

This was not a spam message. I guess I should explain in detail what's going on.

When I process an ordinary jpg through scantailor-experimental and open the resulting output tiff in Photoshop, the image appears squashed horizontally about 50% and Photoshop displays a message about the Pixel Aspect Ratio being set. I have to change this by going in Photoshop to View > Pixel Aspect Ratio > Square. Then the image displays correctly.

I have used other versions of Scantailor and have not had this problem. I'm running Scantailor-experimental on an M1 MacBookPro.

plzombie commented 5 months ago

@gasparschott Can you try latest commit?

If not works, can you get the result of tiffinfo your_image.tif?

gasparschott commented 5 months ago

Will do, when I get the chance. Thanks.

On Feb 19, 2024, at 10:56 AM, Mikhail Morozov @.***> wrote:

@.***(https://github.com/gasparschott) Can you try latest commit?

If not works, can you get the result of tiffinfo your_image.tif?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

gasparschott commented 5 months ago

Yes, that seems to have fixed the problem. Thanks!

noobie-iv commented 5 months ago

The pixel aspect ratio was removed by the author of the experimental branch of the program at the very beginning of its creation. Therefore, you need to correct the aspect ratio in advance in some other program before processing in STEX, and assign the correct value after. By the way, STA also does not handle rectangular pixels correctly if the image is rotated - it doubles squareness instead of straightening.

Also, the dewarping mode gives a result with not quite square pixels, here we really need to add aspect ratio settings at the dewarping stage or immediately after it. And we need guides - to adjust pixel sizes until the overall page sizes match other pages.