Images for the web
Jul. 27th, 2010 07:19 pmSomebody must know the answer to this... a quick google didn't turn up anything sensible.
I have an image which is rather large - a couple of thousand pixels square. Ideally, I want to pop it in the middle of a webpage.
Now, I could guess at a minimum monitor size, resize the image, and away we go. But I was thinking: surely there's something more clever I can do, whereby those with large monitors get a sizeable image, and those with tiny monitors do not.
Is there?
If not, are there any sensible guidelines on max image sizes, etc?
I have an image which is rather large - a couple of thousand pixels square. Ideally, I want to pop it in the middle of a webpage.
Now, I could guess at a minimum monitor size, resize the image, and away we go. But I was thinking: surely there's something more clever I can do, whereby those with large monitors get a sizeable image, and those with tiny monitors do not.
Is there?
If not, are there any sensible guidelines on max image sizes, etc?
no subject
Date: 2010-07-27 06:29 pm (UTC)no subject
Date: 2010-07-27 06:31 pm (UTC)no subject
Date: 2010-07-27 06:40 pm (UTC)A clickable thumbnail, even a sizeable one, which takes you directly to the large image (which your browser can then scale automatically) rather than to an embedded image is my preferred option. This is not good if you also want people to be able to see the commentary at the same time. But 2000 pixels square is really quite big, even on very large monitors, which are often widescreen these days so may not have enough height even if they have enough width.
Clickable thumbnail
Date: 2010-07-27 07:14 pm (UTC)Re: Clickable thumbnail
Date: 2010-07-27 07:58 pm (UTC)Re: Clickable thumbnail
Date: 2010-07-27 09:03 pm (UTC)Re: Clickable thumbnail
Date: 2010-07-27 10:02 pm (UTC)Re: Clickable thumbnail
Date: 2010-07-27 10:02 pm (UTC)no subject
Date: 2010-07-27 10:00 pm (UTC)My large image is a logo, which is to be the front page of a website. I don't want it to be available in ultra-large format, that's just what it happens to be at present.
I could resize it so it looks "nice" (ie takes up about half a normal-sized window, widthwise) on my screen, but I have no way of telling whether that will then be too large/too small on others' screens. I expect to compress it anyway so it's not a huge download.
no subject
Date: 2010-07-27 10:19 pm (UTC)no subject
Date: 2010-07-28 09:08 am (UTC)Not really. I blame poorly spec'd questions for bad answers ;)
no subject
Date: 2010-07-28 07:32 am (UTC)From the design guidelines point of view, most common practice these days is to design for 800 * 600, but in such a way that it won't look daft isolated in the middle of a larger window: 640 * 480 users have been pretty much cut adrift. (It's a whole different kettle of poison though if you also need to consider mobile users: I don't know much about that.)
no subject
Date: 2010-07-28 08:42 am (UTC)no subject
Date: 2010-07-28 09:09 am (UTC)no subject
Date: 2010-08-01 10:36 pm (UTC)no subject
Date: 2010-07-28 12:00 pm (UTC)Having said that I suspect you may not have a choice in design and are just being asked to implement something...
no subject
Date: 2010-07-28 12:26 pm (UTC)I wasn't going to have *just* the logo on the front page. There will be info and a navigation bar and stuff as well. I hope.
no subject
Date: 2010-07-27 07:12 pm (UTC)This way though of course the tiny-windowed user will still be downloading the whole vast image, just rescaling it in the browser. I don't think there is any way of actually on-the-fly resampling the image to a smaller size, short of perhaps some fantastical piece of JavaScript technology.
no subject
Date: 2010-07-27 07:54 pm (UTC)Pretty sure this is what Smugmug do with my photos hosted there.
no subject
Date: 2010-08-02 01:04 pm (UTC)For example:
@media screen and (min-width: 400px) and (max-width: 700px) { ... }will get used when the width is between 400 and 700 pixels.
no subject
Date: 2010-08-02 02:35 pm (UTC)no subject
Date: 2010-07-27 07:37 pm (UTC)I've been doing it on some of my posts:
http://davefish.livejournal.com/336213.html
no subject
Date: 2010-07-27 10:01 pm (UTC)no subject
Date: 2010-07-27 10:25 pm (UTC)