Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pixel Aspect Ratio (not spam!) #28

Closed
gasparschott opened this issue Feb 19, 2024 · 4 comments
Closed

Pixel Aspect Ratio (not spam!) #28

gasparschott opened this issue Feb 19, 2024 · 4 comments

Comments

@gasparschott
Copy link

gasparschott commented Feb 19, 2024

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 added a commit that referenced this issue Feb 19, 2024
@plzombie
Copy link
Contributor

@gasparschott Can you try latest commit?

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

@gasparschott
Copy link
Author

gasparschott commented Feb 19, 2024 via email

@gasparschott
Copy link
Author

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

@noobie-iv
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants