View Single Post
  #8  
Old 02-17-2025, 02:52 PM
Balticfox's Avatar
Balticfox Balticfox is offline
V@idotas J0nynas
 
Join Date: Jan 2023
Location: Toronto
Posts: 1,213
Default

Quote:
Originally Posted by Leon View Post
The last bit of code was installed several days ago. I am not sure it's made a difference but if anyone wants to give it a try, and let me know, it would be great. Please see the post right above here for the technical stuff. This will probably be the last attempt at updating the picture loading for the forum. Otherwise, we are probably stuck with what we got. Thanks!

A bit from the above post that is most pertinent, I think..

"Looking over the code I don’t see any problem with it, and it does what you need – it tells the users browser to resize the image down to a width of 800 pixels if it’s bigger than that and gives the user an option to click the image to see it at its regular size. You can adjust the pixel width to whatever works best for your users.
Because it only modifies the width though I have a feeling it may cause images to get distorted because it won’t also resize the height, but how that’s handled is really up to the user’s browser and you have no control over it. Trying to dynamically modify both the width and height of the image to scale properly and be under a certain size would require a lot more code (and probably JavaScript).
Doesn't appear to be working:

https://www.net54baseball.com/showth...=356696&page=4

__________________
That government governs best that governs least.
Reply With Quote