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

Image display issues

 
Thread Tools
 
Search this Thread
 
Old Jun 13, 2007 | 02:58 PM
  #1  
Markus's Avatar
Markus
Thread Starter
Scooby Regular
25 Year Member
 
Joined: Mar 1999
Posts: 25,080
Likes: 0
From: The Great White North
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.
Old Jun 13, 2007 | 04:58 PM
  #2  
SC008Y_MAD's Avatar
SC008Y_MAD
Scooby Regular
iTrader: (5)
 
Joined: Jan 2004
Posts: 8,948
Likes: 0
From: Bedfordshire
Default

Cheers Markus
Old Jun 19, 2007 | 10:25 AM
  #3  
SC008Y_MAD's Avatar
SC008Y_MAD
Scooby Regular
iTrader: (5)
 
Joined: Jan 2004
Posts: 8,948
Likes: 0
From: Bedfordshire
Default

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

Can something be done about this please.

a new example
http://i18.photobucket.com/albums/b1...-/Picture1.png
Old Jul 23, 2007 | 10:31 PM
  #5  
ex-webby's Avatar
ex-webby
Orange Club
 
Joined: Oct 1998
Posts: 13,763
Likes: 1
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.
Old Jul 24, 2007 | 07:27 PM
  #6  
SC008Y_MAD's Avatar
SC008Y_MAD
Scooby Regular
iTrader: (5)
 
Joined: Jan 2004
Posts: 8,948
Likes: 0
From: Bedfordshire
Default

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




All times are GMT +1. The time now is 06:47 PM.