September 8, 201610 yr Hello everyone, I read a lot about how to prepare images for the web but something I have not understood.I need to display an image of 800x600 px, the guide tell me that I don't need to load on the image server with larger size because it takes more time to download it and the browser ( or a representative ) must reduce it.I do not understand why the quality change, if I display on a browser an image 800x600px that originaly was bigger the quality is better that if I had it loaded on the server already reduced the size 800x600px.What can be due to the problem ? To reduce the original use photoshop image quality 9. Inventor4Fun 9:41AM in Web Design Hello everyone, I read a lot about how to prepare images for the web but something I have not understood. I need to display an image of 800x600 px, the guide tell me that I don't need to load on the image server with larger size because it takes more time to download it and the browser ( or a representative ) must reduce it. I do not understand why the quality change, if I display on a browser an image 800x600px that originaly was bigger the quality is better that if I had it loaded on the server already reduced the size 800x600px. What can be due to the problem ? To reduce the original use photoshop image quality 9.
September 8, 201610 yr Only upload the image size you need. If for example you have a massive 7Mb high resolution image then that's what the server will use on your site. You may change the HTML/CSS to only display the image 800x600 pixels but the server will use the original file. It's not the quality - it's the physical size of the image you need to adjust.
September 8, 201610 yr The only reason I can think of for an image looking better if it was uploaded at a bigger size is that you might be viewing on an ipad, or some other device with a display similar to "retina display". (If that's the term). Mind you I did a test once and could see very little difference in quality if I uploaded a photo twice the size it needed to be. (I do realise it's probably best practice to send different images to different displays but I'm too lazy for that).
September 8, 201610 yr Author Thank's for the replies but I have another question. I created an image by Photoshop of 4500x2646 px, in my website the biggest image that I use is 700x412px. How can I create an image of 700x412px without lose resolution ?
September 8, 201610 yr Author Just change the image size in photoshop. The resolution will stay the same. Is what I did the first time. I resize the image from 4500px to 700px and uploaded to the server. I tried the same from 4500px to 1500px and uploaded. When I display the pictures at 700px the second has bigger resolution, seame that resize of browser is better the photshop resize.
September 8, 201610 yr the 1500px image has approximately four times the information (and therefore four times the filesize at the same compression rate) in photoshop what are resizing algorthm are you using? bicubic automatic? (it's at the bottom of the image size dialogue) are you using a small amount of unsharp mask Filter > sharpen > unsharp mask afterwards to restore the appearance of detail that was lost in the downsizing? when you use File save for web and devices, what quality are you using for compression? (around 40-70 is usually good but of course it depends on the picture) a link to the original image would help us provide more targeted advice p.s. are you using a retina or high pixel density device? Edited September 8, 201610 yr by dap
September 8, 201610 yr Besides retina displays there are also other good reasons to use higher resolutions than 1:1 if the users are usng the browsers zoom function if the users have enlarged the default OS font size some browsers scales up the entire website incl. images With responsive designs when multiple columns breaks down to one, the single column are usually wider at the breakpoint than the multiple columns was. As images often are set to take up 100% of the containers width you might need images in higher resolution to accommodate for this
September 9, 201610 yr @niels #1 is a good point but probably doesn't apply here if we took #2 into account the we would have to make ALL images way bigger than 100% just in case someone needs to zoom 120%, 150% or even more, where as using images at a max of 100% means users can still zoom and get acceptable or at least expected (i.e. bit–a lot-blurry images) #3 this is a fixed width image so assume again it's not going above 800 x 600
September 9, 201610 yr There are also issues to serving larger images: Larger filesize. Many people will be visiting your website using slow networks and on the move which means your website will take longer to load. Then you may also have a proportion of visitors on paid data plans, so they hare having to pay more for your high res image. If your images are stored on one of your servers it can cause issues during heavy traffic. This can be circumvented by using a CDN - but the cost of the extra bandwidth can also be an issue. I typically want all logos and icons to be super sharp, and a perfect fit for these is SVG and vectors will always be as sharp as the devices max resolution. For photos I typically roll with standard resolution unless there is a good reason to go with double pixel density.
September 9, 201610 yr Besides retina displays there are also other good reasons to use higher resolutions than 1:1 images often are set to take up 100% of the containers width you might need images in higher resolution to accommodate for this This shouldn't happen in responsive design. what is advised for images is img { max-width: 100%; height: auto; } Otherwise what if you have an article with a left floated image for the text to wrap around? Setting with width to 100% on all images is pretty irresponsible CSS. Max-width ensures the image will not grow beyond it's own bounds. Edited September 9, 201610 yr by rbrtsmith
September 9, 201610 yr Author the 1500px image has approximately four times the information (and therefore four times the filesize at the same compression rate) in photoshop what are resizing algorthm are you using? bicubic automatic? (it's at the bottom of the image size dialogue) are you using a small amount of unsharp mask Filter > sharpen > unsharp mask afterwards to restore the appearance of detail that was lost in the downsizing? when you use File save for web and devices, what quality are you using for compression? (around 40-70 is usually good but of course it depends on the picture) a link to the original image would help us provide more targeted advice p.s. are you using a retina or high pixel density device? I used a "bicubic sharper (reduction)" without filter. You can see the image (http://www.davideinzaghi.it/portfolio/fox-beer/) . I created this image with photoshop 4500x2646px 72dpi, I want to show my picture in a div of 700x412px. 1) resize with photoshop, 700x412px 72dpi quality 12 (max) -> 216Kb and the quality (according to my scale) on my site is 8 (from 0 to 10). 2) resize with photoshop, 1400x824px 72dpi quality 12 (max) -> 683Kb and the quality (according to my scale) on my site is 10 (from 0 to 10). Why if the browser resize an original image of 1400px to 700px the quality of the pictures are better than use a pictures resize by photoshop ? The resize metod of a browser is better the photoshop ? I'm using a full hd screen. Thanks Edited September 9, 201610 yr by inventor4fun
September 9, 201610 yr my version could be a touch sharp but it is a matter of taste to some extent http://www.gekkoweb.com/stuff/mix_fox_beer_700x412.jpg quality 75size 101.3 kb resized to 700 x 412 in photoshop then used unsharp mask as in http://www.gekkoweb.com/stuff/unsharp-mask.jpg
September 11, 201610 yr This shouldn't happen in responsive design. what is advised for images is img { max-width: 100%; height: auto; } Otherwise what if you have an article with a left floated image for the text to wrap around? Setting with width to 100% on all images is pretty irresponsible CSS. Max-width ensures the image will not grow beyond it's own bounds. True, but there are many situations where the image should always span to the containers width. Featured images on blog posts that should align with the paragraphs below, banner images etc, Also background images width the size set to cover. All these situations (plus the fact that users in my age tend to zoom in a lot) I like use double resolution on bitmap images. You can usually also blur/compress larger images much more without visual artifacts Edited September 11, 201610 yr by Nillervision
September 11, 201610 yr True, but there are many situations where the image should always span to the containers width. I'd argue the images should be created to match the containers maximum size. Expanding an image to be greater than it's actual width massively reduces the perceived quality. Putting background-size: cover and offering up double pixel density images will result in huge file sizes. You have to weigh up what proportion of your users are on paid data plans, coming from slower networks, vs the very few who zoom (Typically to read text) and whether or not having a super high res photographs is important. In most cases I've found the trade off to not be worth it unless the image quality is absolutely critical - in many of these cases (Non photographic) SVG is a better option. Edited September 11, 201610 yr by rbrtsmith
October 21, 201610 yr Resolution refers to the number of pixels in an image. Resolution is sometimes identified by the width and height of the image as well as the total number of pixels in the image. For example, an image that is 2048 pixels wide and 1536 pixels high (2048X1536) contains (multiply) 3,145,728 pixels (or 3.1 Megapixels). You could call it a 2048X1536 or a 3.1 Megapixel image. As the megapixels in the pickup device in your camera increase so does the possible maximum size image you can produce.
Create an account or sign in to comment