jonufele / WaterCooler-Chat

WaterCooler chat is a simple flat file db chat system which lets you embed a chat container wherever you like. Looking for a simple chat that doesn't complicate too much (and yet, not flat-looking)? Then this is it. Demo:
http://wcchat.atwebpages.com
GNU General Public License v3.0
18 stars 7 forks source link

Thumbnail turned sideways #4

Open DavenLC opened 1 year ago

DavenLC commented 1 year ago

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

DavenLC commented 1 year ago

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 commented 11 months ago

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.