Notices
Bugs / Feature Requests Archive This is a read only forum containing old policy topics.

Image display issues

 
Thread Tools
 
Search this Thread
 
Old 13 June 2007, 02:58 PM
  #1  
Markus
Scooby Regular
Thread Starter
 
Markus's Avatar
 
Join Date: Mar 1999
Location: The Great White North
Posts: 25,080
Likes: 0
Received 0 Likes on 0 Posts
Default Image display issues

There is a thread in CR about images looking odd in Safari and not in Firefox on a Macintosh.

As an example, have a look at this thread in Safari and Firefox.

The image appears squashed/stretched in Safari. If you click on it, the full size is revealed (800 x 600) and it looks fine. In Firefox the image does not look squashed/stretched.

I think the problem is due to a style tag in the code used to display images, plus a browser being smart/dumb.

If we look at the html source for the aforementioned thread, the code for the first image is as follows:

Code:
<a href="http://i108.photobucket.com/albums/n22/RobVXD/m_001.jpg" target="_blank"><img src="http://i108.photobucket.com/albums/n22/RobVXD/m_001.jpg" border="0" alt="" style="max-width: 640px;" /></a><br />
The problematic bit is: style="max-width: 640px;" . It looks as though Safari is respecting this instruction and is setting the max width to 640 pixels, however, it's either being smart/dumb and it's leaving the height of the image alone, which in this case is 600 pixels, so you end up with an image whose original size is 800 x 600, being scaled to 640 x 600, so it looks odd.

Firefox seems to smart/dumb in that it is changing the width, as per the style code, but it's also adjusting the height to maintain the correct aspect ratio, so in this example, the height of the image is resized to 480 pixels.

One could argue that it's not an SN issue, but typically when setting a maximum for the size of an image you should ideally set width and height, so perhaps adding max-height: 480px; to the style tag might help as it would force a browser to correctly scale the picture.
Markus is offline  
Old 13 June 2007, 04:58 PM
  #2  
SC008Y_MAD
Scooby Regular
iTrader: (5)
 
SC008Y_MAD's Avatar
 
Join Date: Jan 2004
Location: Bedfordshire
Posts: 8,948
Likes: 0
Received 0 Likes on 0 Posts
Default

Cheers Markus
SC008Y_MAD is offline  
Old 19 June 2007, 10:25 AM
  #3  
SC008Y_MAD
Scooby Regular
iTrader: (5)
 
SC008Y_MAD's Avatar
 
Join Date: Jan 2004
Location: Bedfordshire
Posts: 8,948
Likes: 0
Received 0 Likes on 0 Posts
Default

This is really bugging me (no pun intended) haveing the images that are wider than the forum width squashed!!!
SC008Y_MAD is offline  
Old 23 July 2007, 08:52 PM
  #4  
SC008Y_MAD
Scooby Regular
iTrader: (5)
 
SC008Y_MAD's Avatar
 
Join Date: Jan 2004
Location: Bedfordshire
Posts: 8,948
Likes: 0
Received 0 Likes on 0 Posts
Default

Can something be done about this please.

a new example
http://i18.photobucket.com/albums/b1...-/Picture1.png
SC008Y_MAD is offline  
Old 23 July 2007, 10:31 PM
  #5  
ex-webby
Orange Club
 
ex-webby's Avatar
 
Join Date: Oct 1998
Posts: 13,763
Likes: 0
Received 1 Like on 1 Post
Default

Hi

Yes, we're going to sort this out, of a fashion.. by providing a "don't resize images" option. We'll get on to it as soon as we can. Thanks for your patience.
ex-webby is offline  
Old 24 July 2007, 07:27 PM
  #6  
SC008Y_MAD
Scooby Regular
iTrader: (5)
 
SC008Y_MAD's Avatar
 
Join Date: Jan 2004
Location: Bedfordshire
Posts: 8,948
Likes: 0
Received 0 Likes on 0 Posts
Default

Thats fine. Thanks for letting us know.
SC008Y_MAD is offline  
 
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
hardcoreimpreza
Computer & Technology Related
21
11 October 2015 03:40 PM
powerwrx
Non Scooby Related
21
03 October 2015 11:31 PM
blackieblob
ScoobyNet General
2
02 October 2015 05:34 PM
Ganz1983
Subaru
5
02 October 2015 09:22 AM
johnnybon
Subaru Parts
13
29 September 2015 10:47 PM



Quick Reply: Image display issues



All times are GMT +1. The time now is 02:18 PM.