June 19, 201214 yr Apple are putting a retina display on their Mac Book Pro and surely other manufacturers will follow. Does this mean that 72dpi for web needs to be higher now?
June 19, 201214 yr Retina Display is just a marketing term, it doesn't apply to a particular figure. What in earth is this 72dpi figure you're talking about?
June 19, 201214 yr What in earth is this 72dpi figure you're talking about? I believe it's the most commonly used DPI for web images, for whatever reason. I use it, usually. @CaptainSEO, websites will need to use media queries to serve double-sized images. As Mozilla put it, a pixel is not a pixel any more. For each image you use, you'll need an equivalent that is twice as large. eg. If you had a logo.gif file, you would need a logo@2x.gif file too (to use Apple's naming convention for simplicity's sake). Use the following media query in your CSS to serve the image: .logo{ background:url(logo.gif); height:50px; width:100px; } @media screen and (-webkit-min-device-pixel-ratio: 2){ .logo{ background:url(logo@2x.gif); /* This image should be 200x100px */ background-size:100px 50px; } } Edited: Got my widths and heights mixed up. Still working on the basics... Edited June 19, 201214 yr by andyl
June 19, 201214 yr DPI, PPI, Pixel Density, Pixel Ratio. It's all getting a bit ridiculous IMO. DPI been around for, well, like forever! EDIT: But, yes, I agree, it is getting way too much now. Wouldn't it be great to have one set of standards, one set of code etc. Edited June 19, 201214 yr by roothost
June 19, 201214 yr Wasn't 'pixel-ratio' just created for us CSS simpletons who like easy-to-understand American-English? I would agree with Mike. That's twice in the same number of months Edited June 19, 201214 yr by andyl
June 19, 201214 yr It's just confusing, which is why right now, I'm not worrying about responsive images. Especially when they use the same term for something else, a bit like Pixel Ratio normally refers to the ratio of the length and width of a Pixel, now it seems to mean something else too!
June 20, 201214 yr Author @anndyl Thanks for the info. So, without that CSS, the logo will render the right size, but not as good quality as possible? @brightonmike I'm old. 72DotsPerInch was standard with a cathode ray tube monitor and is still mostly used for web graphics. In fact photoshop defaults to 72DPI for web.
June 20, 201214 yr wow haven't seen brought up for a year or two, but you might want to read this - http://www.scantips.com/no72dpi.html incidentally it's only dpi when we're talking about print resolution i.e. dots [of ink] per inch
June 20, 201214 yr @anndyl Thanks for the info. So, without that CSS, the logo will render the right size, but not as good quality as possible? Yes. It would start looking like lego.
June 26, 201214 yr I don't think anyone should worry about "Retina Display" like they shouldn't develop for iPads. What we should be doing is worrying about high quality displays/images and devices of varying widths using varying connection speeds. That way everything will be much more future proof. I don't like device specific development.
August 7, 201214 yr Exactly. Ignoring these things is fine right up until the point the Retina iPad wielding CEO (who signs off on your final payment) demands to know why your design appears broken and the company logo is all fuzzy At that point you will want to ensure you make the best job you can by designing for all devices, and that includes high pixel density devices. It isn't device-specific design, it's modern deisgn. I believe it's your (all of us, not you personally) job as a web designer / developer to keep pace with modern standards and developments.
August 7, 201214 yr And, to respond to the OP. DPI for images is totally irrelevant to browsers, they ignore it completely when rendering images, it affects your file size only. Browsers only use DPI for font-size calculations. Stick with the default 72dpi and then create 1.5 or 2x sized images for pixel dense devices.
August 7, 201214 yr DPI for images is totally irrelevant to browsers, they ignore it completely when rendering images, it affects your file size only. It doesn't affect file size
August 7, 201214 yr The size of a website increases with the resolution. This is all. LOL. Only if your design is set out in pixels. Don't do that.
August 7, 201214 yr Try it. I have tried it, after originally believing the same as you. Read this explaining why it does not change the file size. Edited August 7, 201214 yr by andyl
August 8, 201214 yr LOL. Only if your design is set out in pixels. Don't do that. LOL. Responsive design. Do that =)
August 8, 201214 yr Doesn't matter what you set your DPI to, a normal screen will only see 72dpi's worth of visuals. Andy is also quite right regarding file size. You can set a 300px by 300px image as 72dpi and it won't be any smaller than a 2000px by 2000px image. This is why we have to work on print images that are a far higher resolution than images for screen. Otherwise we'd just work on normal sized images using a higher DPI. Edited August 8, 201214 yr by MikeChipshop
August 8, 201214 yr Ok, reading this thread all over again pretty much gave me a headache so here's my attempt at a clear summary. DPI is nothing to do with images on your screen. DPI is used for print. The quality of images on screen does not change because of DPI. What does affect image quality on screen is resolution. Resolution is the measurement of the number of pixels on a screen. If you increase the resolution, without increasing the screen size, you're effectively shrinking the size of your pixels. This means everything on screen becomes smaller. Now, because you don't actually want everything to become smaller (websites, apps, images) devices that have a higher pixel density employ scaling techniques. For example, if the pixel density is double than normal, the device will double the size of your website. Now, let's go back to images. Lets say you have a 300px by 300px image on a website. On a device with a double than normal pixel density, that image will effectively halve in physical size. It will look like the size of a 150px by 150px, however, remember that this device has double the pixel density, so whilst it has shrunk down to what looks like 150px by 150px, it is actually still 300px by 300px. In other words, the resolution of the image is unchanged, yet it appears much smaller. We don't want that, we want it to appear the same size. So, this is where scaling comes in. The device will scale the image, doubling it in size. It will now appear as it did before, it will look the same size as it did. The way the image has scaled means that each pixel that makes up the image has been double in size, to the size of two pixels. Because this is a double pixel density device, two pixels is essentially the same as one pixel on a normal pixel density device. In other words, the image has been shrunk, but then doubled back up in size. In other words, it is essentially exactly as it was before. So why does it look poor quality on the higher pixel density device, if the pixels that make up the image are the same size on both devices? This is simply because more, smaller pixels means the display can pick out more detail from the image. Two small pixels is always better than one bigger pixel, even if they are occupying the exact same physical space. Think about it, with two pixels, you can represent two different colours compared to the one colour the one pixel can represent. So, when it comes to websites for devices with high PPI, you can take advantage of this by displaying images with a higher resolution. Remember, this is not a PPI issue. So say you have 2000px by 2000px image. Normally you would save it as 500 px by 500px. But if you want the image to display without scaling on a higher pixel density device, you'll need to save it double the normal size. In other words, save it as 1000px by 1000px. Now...how does that read? Edited August 8, 201214 yr by brightonmike
August 8, 201214 yr Sorry, I didn't really make myself clear. We aren't talking about the same thing at all. Mike, apart from the fact that no-ones monitor res is 72dpi anymore you are 100% correct. On screen there is no difference. Doesn't matter what you set your DPI to, a normal screen will only see 72dpi's worth of visuals. But, if you create your visuals on a canvas with a higher dpi it does result in a higher filesize. So it is doubly bad, as it creates a larger file but results in zero extra quality. I'm not going to argue the point much more, it's very simple to test. Create a new file in Potatoshop at 300dpi and place an image in it. Do the same, with the same image at 72dpi. Save both and compare file sizes; there's quite a difference. Save out for web and devices and compare again; again a large difference.
August 8, 201214 yr The way the image has scaled means that each pixel that makes up the image has been double in size, to the size of two pixels. Because this is a double pixel density device, two pixels is essentially the same as one pixel on a normal pixel density device. Nearly, a device with 2x pixel density with display 1 pixel of image data across 4 pixels. It would only be scaling in 1 dimension otherwise. In other words, the image has been shrunk, but then doubled back up in size. In other words, it is essentially exactly as it was before. Not really. Unless you have used a 2x image to start with, it your 300px image now appears to be half the quality. It has been doubled in size. ..But if you want the image to display without scaling on a higher pixel density device, you'll need to save it double the normal size. In other words, save it as 1000px by 1000px. You then also need to tell the device to only display that image at only 500px, or it will be scaled up again to occupy 2000px.
August 8, 201214 yr I have been making double size image sprites for Retina and other pixel-dense devices for a while now. It's a PITA but it does avoid your clients logo looking s**t on their iPhone/iPad.
August 8, 201214 yr I'm not going to argue the point much more, it's very simple to test. Create a new file in Potatoshop at 300dpi and place an image in it. Do the same, with the same image at 72dpi. Save both and compare file sizes; there's quite a difference. Save out for web and devices and compare again; again a large difference. And they'll be the same size. So long as you keep the resolution the same you can change the DPI as much as you want.
August 8, 201214 yr And they'll be the same size. So long as you keep the resolution the same you can change the DPI as much as you want. Not trying to be a dick here Mike, but it doesn't seem like you have actually tried the test mentioned. I have. They aren't the same. As I said, the test is very simple. If you re-read my post you will see I am not talking about changing the dpi of an image. That, of course has no effect as no extra pixels are magically created.
August 8, 201214 yr Not trying to be a dick here Mike, but it doesn't seem like you have actually tried the test mentioned. I have. They aren't the same. As I said, the test is very simple. If you re-read my post you will see I am not talking about changing the dpi of an image. That, of course has no effect as no extra pixels are magically created. i'll quote what you said... I'm not going to argue the point much more, it's very simple to test. Create a new file in Photoshop at 300dpi and place an image in it. Do the same, with the same image at 72dpi. I don't have to do this to know the outcome but i just did anyway and I'm correct. There is no change between a 300 x 300 72dpi image and a 300 x 300 300dpi image. Which is what we are saying. Edited August 8, 201214 yr by MikeChipshop 'Photoshop' from 'Potatoshop' :s
August 8, 201214 yr I don't have to do this to know the outcome but i just did anyway and I'm correct. There is no change between a 300 x 300 72dpi image and a 300 x 300 300dpi image. Which is what we are saying. Yup, but that's not what I am saying.
August 8, 201214 yr Although i think everyone may be talking about different things here... not sure I think so too. Tried to explain the best I could, but giving up now. I think we all agree on one thing at least, don't bother changing the dpi, it's totally pointless!
Create an account or sign in to comment