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

Ratio of ps2 longbox thumbnails looks wrong? #385

Closed
Masamune3210 opened this issue Jul 2, 2023 · 21 comments
Closed

Ratio of ps2 longbox thumbnails looks wrong? #385

Masamune3210 opened this issue Jul 2, 2023 · 21 comments
Assignees
Milestone

Comments

@Masamune3210
Copy link

I would look myself to see what they are getting displayed as, but to my eye, the ps2 thumbnails look to have the wrong aspect ratio. It looks like they are taller and not as wide as they should be

image

@GerbilSoft
Copy link
Owner

The original file has a correct aspect ratio: http://rpdb.gerbilsoft.com/ps2/cover/SLES/SLES-55103.jpg

This is definitely a Windows rendering issue. I'll need to figure out why it's being rendered incorrectly.

@GerbilSoft
Copy link
Owner

This is also affecting Wii U boxart, and probably others. (Tested on Windows 7.)

It should be creating a squared thumbnail, but obviously something is wrong...

@GerbilSoft GerbilSoft self-assigned this Jul 14, 2023
@GerbilSoft GerbilSoft added the bug label Jul 14, 2023
@GerbilSoft GerbilSoft added this to the 2.2.1 milestone Jul 14, 2023
@Masamune3210
Copy link
Author

Watch, it's going to be something stupid like Windows changing how thumbnails work.... again

@GerbilSoft
Copy link
Owner

It seems the "squaring" function that's needed for icons to work properly somehow caused long boxes to get squished. I'm pretty sure it worked before...

Disabled squaring on everything except icons and it seems to work now. Tested on Windows 7 with IThumbnailProvider. Will test IExtractImage later to ensure it isn't broken, but IExtractImage is generally only used on Windows XP and other older software.

@Masamune3210
Copy link
Author

As soon as the build pops out of appveyor I will test on my end to make sure everything is good

@Masamune3210
Copy link
Author

@GerbilSoft Aspect Ratio is still wrong
image
image

@GerbilSoft
Copy link
Owner

Did you clear the thumbnail cache? (rp-config has a convenient button to do this.)

@Masamune3210
Copy link
Author

Yep, unregistered the old dll, used rp-config to clean both rp's cache and the system cache, checked some isos to make sure that they weren't showing anything other than the default icon, and then registered the new dll

@GerbilSoft
Copy link
Owner

I'll need to test it on my Win10 VM then. (It seems to have fixed it for Win7, at least...)

@GerbilSoft GerbilSoft reopened this Jul 16, 2023
@GerbilSoft
Copy link
Owner

I'm not able to reproduce this on Windows 10 v1809. What version of Windows 10 (or 11) are you using?

@Masamune3210
Copy link
Author

image

@GerbilSoft
Copy link
Owner

Will set up a Windows 11 22H2 VM tomorrow then. This will probably be the last bugfix I'll look at before releasing v2.2.1.

@Masamune3210
Copy link
Author

I have good news. Turns out that Windows and its ability to be dumb never ends, and I was actually still running the old build even though it said that it had unregistered it. New DLL generates box arts correctly!
image

@Masamune3210
Copy link
Author

Unless you can think of anything else you want me to test or last minute fixes for something, I think everything is good on my end now.

@Masamune3210
Copy link
Author

Something I have noticed is that initially it still generates as the squished thumbnail and then seemingly makes a second pass and fixes the aspect ratio.
You can see what I am talking about here, the top is generating the correct icon, but the bottom is squished. Eventually, once they catch up with each other, they will all snap to the correct ratio. It's almost like there are two threads trying to generate them, one with the fix and one without

@Masamune3210
Copy link
Author

Reopening, just in case you want to look into that. If not, feel free to close, it seems like the correct one gets saved to the cache in the end so it just ends up being a visual quirk

@Masamune3210 Masamune3210 reopened this Jul 17, 2023
@GerbilSoft
Copy link
Owner

That's the icon, which appears to be squished. (If you view file properties, you'll see the squished icon.) I'm not sure why it's getting squished, since the squaring is supposed to add columns but not change the aspect ratio...

@GerbilSoft
Copy link
Owner

It seems removing squaring for icons fixes it. I know I had problems with non-square icons before, but that might have been on Windows XP.

I'll change it to only enable squared icons on Windows XP and earlier. (Not sure about IExtractImage; will need to test that later.)

GerbilSoft added a commit that referenced this issue Jul 17, 2023
Thumbnails for images that were taller than they were wide appeared
squished with squaring enabled, even though the generated image is
correct. Not sure why this is happening...

Windows XP had issues with non-square icons, but Windows 7 seems to be
handling them without any problems.

See #385: Ratio of ps2 longbox thumbnails looks wrong?
@GerbilSoft
Copy link
Owner

Icon squaring is now disabled on Vista and later. My WinXP VM isn't working properly due to some weird interaction with VirtualBox and SMAP, and reporting a bug to VirtualBox requires registering an Oracle account. I could probably work around this by disabling SMAP, but I'd rather not do that...

@Masamune3210
Copy link
Author

I truly feel for you, I don't think anybody willingly wants to deal with oracle lol

@GerbilSoft
Copy link
Owner

Closing since this should be fixed in Windows Vista and later. Will need to test XP again sometime...

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

No branches or pull requests

2 participants