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

Thumbnail turned sideways #4

Open
DavenLC opened this issue May 28, 2023 · 2 comments
Open

Thumbnail turned sideways #4

DavenLC opened this issue May 28, 2023 · 2 comments

Comments

@DavenLC
Copy link

DavenLC commented May 28, 2023

I see a Thumbnail for a photo in the chat, it's turned sideways, but, when I open it, it is ok. Help?

@DavenLC
Copy link
Author

DavenLC commented May 28, 2023

I think I got it. 'wcutils.img.class.php'

swapped the variables.
// Set offset for the picture cropping (depending on orientation) if ($h > $w) { $smallestdimension = $w; $widthoffset = ceil(($h - $w) / 2); $heightoffset = 0; } else { $smallestdimension = $h; $widthoffset = 0; $heightoffset = ceil(($w - $h) / 2); }

@rexzooly
Copy link
Contributor

I think I got it. 'wcutils.img.class.php'

swapped the variables. // Set offset for the picture cropping (depending on orientation) if ($h > $w) { $smallestdimension = $w; $widthoffset = ceil(($h - $w) / 2); $heightoffset = 0; } else { $smallestdimension = $h; $widthoffset = 0; $heightoffset = ceil(($w - $h) / 2); }

Did you take any screen shots of this as I haven't seen any problems with this while working with this script since I am working on making it a little more stable for my own version I am also looking at old known bugs so hit me up with what it looked like thanks.

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

2 participants