Jump to content

Image display better on small content


Mudsaf

Recommended Posts

So basically my problem is that the larger comment selection looks way uglier than small, both uses same image but i guess the larger one stretches it. How to fix, need to create larger image or any nice solutions?

 

Element properties

background-image: url("<image>");background-size: 100% 100%;

2151.jpg

Link to comment
Share on other sites

If your original image is smaller than what you would like it to be then you need to rebuild or create a new image that is large enough to fit your largest format/display that you require. Otherwise, small images being enlarged via css will only cause it to become blurring and of poor quality.

Link to comment
Share on other sites

If you have an image that is 200px wide it will begin to look degraded if you stretch it more than 200 pixels wide. That is why glossy magazines always required high-resolution images. They had a requirement for a certain number of dots-per-inch or dots-per-cm. You begin with an image that hopefully has more resolution than you need and then you resize down to what you need. That makes the image file size no larger than necessary so that it will be quicker to load. Any image editor will have a resize function.

Link to comment
Share on other sites

The easy answer is 1000 x 220px but you should experiment and see for yourself. Is the banner a sharp detailed photographic image or just a blur or pattern? If it is a blur then you don't need sharpness. If it is any sort of repeating pattern then you can use smaller images and repeat. This is all old-school thinking though. There might be better options to consider now.

Edited by davej
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...