Jump to content
Stef's Coding Community

perceived background image resolution and page zoom


Recommended Posts

I don't believe there is anything you can do about this at this point. Zooming is entirely within the user's control, so it isn't really something that you can anticipate or adapt for as far as I know.

 

It's obvious to me at least that the graphics on some sites looks better when zoomed than others. That's preprocessing and intelligent choices I'm sure. I'm interested in strategies for this.

Link to post
Share on other sites

I can't see how any coding will make a difference.

 

If an image is either coded with width and height in px or is calculated by the browser to use a certain width and height in px, then when a user zooms the number of px is spread out across the screen (fewer px fill the window) without changing the number of px that the image is using, so the image can't get any better, it will get worse as the px spread out. Same with % width and height, the 100% just spreads out to be more than the window size and a scrollbar appears.

 

I've just looked at one of my sites with an image 600px wide at 400% zoom and it's very pixellated and exceeds the window width, causing a scrollbar.

Link to post
Share on other sites
  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...