Register | Sign In


Understanding through Discussion


EvC Forum active members: 66 (9164 total)
11 online now:
Newest Member: ChatGPT
Post Volume: Total: 916,465 Year: 3,722/9,624 Month: 593/974 Week: 206/276 Day: 46/34 Hour: 2/6


Thread  Details

Email This Thread
Newer Topic | Older Topic
  
Author Topic:   HTML question on aspect ratios
jar
Member (Idle past 416 days)
Posts: 34026
From: Texas!!
Joined: 04-20-2004


Message 1 of 4 (200083)
04-18-2005 10:48 AM


How do you place an inline image in an html document that will display the same on a monitor at 1280x768 and 1280x1024?

Replies to this message:
 Message 2 by JonF, posted 04-18-2005 12:24 PM jar has replied

  
JonF
Member (Idle past 190 days)
Posts: 6174
Joined: 06-23-2003


Message 2 of 4 (200107)
04-18-2005 12:24 PM
Reply to: Message 1 by jar
04-18-2005 10:48 AM


Same aspect ratio? Are you sure you mean 1280x768 rather than 1024x768?
If you mean exactly the same aspect ratio, you can't do it without client-side scripting. You can probably do it with JavaScript (maybe even something so inelegant as document.write the image tag). You might not really want to do it; client-side image manipulation usually gives lousy results.

This message is a reply to:
 Message 1 by jar, posted 04-18-2005 10:48 AM jar has replied

Replies to this message:
 Message 3 by jar, posted 04-18-2005 12:35 PM JonF has not replied

  
jar
Member (Idle past 416 days)
Posts: 34026
From: Texas!!
Joined: 04-20-2004


Message 3 of 4 (200111)
04-18-2005 12:35 PM
Reply to: Message 2 by JonF
04-18-2005 12:24 PM


Yeah, I did mean 1280x768.
It's a problem when displaying photos on screens set up with different aspect ratios. For example, going from the above to 1280x1024 makes the images short and squat.
Primarily it's seen in the difference between things displayed on older monitor and newer ones. Works fine with newer monitors but sucks on older ones.

Aslan is not a Tame Lion

This message is a reply to:
 Message 2 by JonF, posted 04-18-2005 12:24 PM JonF has not replied

Replies to this message:
 Message 4 by Percy, posted 04-18-2005 1:12 PM jar has not replied

  
Percy
Member
Posts: 22480
From: New Hampshire
Joined: 12-23-2000
Member Rating: 4.8


Message 4 of 4 (200122)
04-18-2005 1:12 PM
Reply to: Message 3 by jar
04-18-2005 12:35 PM


jar writes:
Yeah, I did mean 1280x768.
This isn't an option on my laptop. Is it an option on desktops? Or is this one of the new settings for the wider screens of new laptops? But you mentioned older monitors, so that doesn't sound right.
Primarily it's seen in the difference between things displayed on older monitor and newer ones. Works fine with newer monitors but sucks on older ones.
Any monitor where your images appear distorted is going to show all images distorted. This isn't your problem.
Some display driver/monitor combinations seem to do a better job of automatically maintaining reasonable aspect ratios with different display resolutions, but for those that don't, most monitors allow height and width of the displayed area to be adjusted. No matter what display resolution you're using, you should be able to adjust height and width to yield a satisfactory aspect ratio.
The problem is different for laptop screens and other similar type displays, but I think they limit the ratios to those that fit the display area neatly, and so it seems like aspect ratios should be a minor problem. Anyone know?
Anyway, I don't think this is your problem. Even if you figure out how to adjust your image to the exact right aspect ratio, most people will have adjusted their height and width settings to compensate already and your images will then appear distorted in the other direction.
Forget about it - not your problem.
--Percy

This message is a reply to:
 Message 3 by jar, posted 04-18-2005 12:35 PM jar has not replied

  
Newer Topic | Older Topic
Jump to:


Copyright 2001-2023 by EvC Forum, All Rights Reserved

™ Version 4.2
Innovative software from Qwixotic © 2024