Posting images broken?
Cornflake wrote:
The thing with https being used inside the [img] tags is a local, forum software issue - I assume the code behind those tags is "a bear of very little brain" and simply not written to handle https image links. (actually, it's just the same with the [youtube] tags too)
Generally - or with images/YouTube videos anyway, what's available from https is also available from http so usually a small edit to the URL fixes things.
The forum's image resizing adds an extra sizing parameter immediately after the opening [img] tag which would rescale it correctly, but the code messes up the calculations.
It takes the form
On those image threads I have an interest in I often tweak the numbers to correct the scaling. It annoys to see those images distorted!
To calculate them, I get the original image dimensions and divide the longest edge by 800 and then divide the other edge by that result, yielding either [800:xxx] or [xxx:800]
So given an image of 1024x768: 1024/800=1.28 and 768/1.28=600 - giving the additional tag of [800:600] and preserving the aspect ratio.
Likewise, an image 1536x960 works out as [800:500] - aspect ratio unchanged.
The default, auto-calculated result would be [800:960] which results in a badly distorted aspect ratio.
It's not so much that the image might be too large for the browser (and Firefox also auto-fits an image to the browser window size), more that the image will be displayed incorrectly in the thread.
Clicking the image opens it in another window and it's there that the browser adjusts the size, so it works out Ok using that approach.
I just prefer to see it displayed correctly in the first place...![Wink :wink:](./images/smilies/icon_wink.gif)
Generally - or with images/YouTube videos anyway, what's available from https is also available from http so usually a small edit to the URL fixes things.
The forum's image resizing adds an extra sizing parameter immediately after the opening [img] tag which would rescale it correctly, but the code messes up the calculations.
It takes the form
Code:
[img][width:height]http://Some/Site/AnImage.jpg[/image]
On those image threads I have an interest in I often tweak the numbers to correct the scaling. It annoys to see those images distorted!
![Laughing :lol:](./images/smilies/icon_lol.gif)
To calculate them, I get the original image dimensions and divide the longest edge by 800 and then divide the other edge by that result, yielding either [800:xxx] or [xxx:800]
So given an image of 1024x768: 1024/800=1.28 and 768/1.28=600 - giving the additional tag of [800:600] and preserving the aspect ratio.
Likewise, an image 1536x960 works out as [800:500] - aspect ratio unchanged.
The default, auto-calculated result would be [800:960] which results in a badly distorted aspect ratio.
It's not so much that the image might be too large for the browser (and Firefox also auto-fits an image to the browser window size), more that the image will be displayed incorrectly in the thread.
Clicking the image opens it in another window and it's there that the browser adjusts the size, so it works out Ok using that approach.
I just prefer to see it displayed correctly in the first place...
![Wink :wink:](./images/smilies/icon_wink.gif)
A How-to for resizing images should be in the FAQ. I googled for a half an hour looking for a code that would work. I finally found this post, thank goodness. My original photo was only 520x520, but it got squished anyways.
![scratch :scratch:](./images/smilies/icon_scratch.gif)
_________________
"Be kind to one another" -Ellen Degeneres
Hmm. I'll maybe reword my earlier post a little and then add it to the FAQ.
It's better if images are resized to 800x600 max. before linking them here, rather than tweaking the way they're displayed, because it will result in a quicker download and display.
Unfortunately, not everyone has super-fast connections.
Not sure what could have happened with your 520x520 image - I would have expected that to be displayed just as it is.
_________________
Giraffe: a ruminant with a view.
Similar Topics | |
---|---|
Do you see random images in your mind’s eye?
in Bipolar, Tourettes, Schizophrenia, and other Psychological Conditions |
11 Dec 2024, 12:08 pm |
New Satellite Images Reveal Antarctica is 10X Greener Than |
06 Dec 2024, 5:57 pm |