Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a number of JPEG images with a resolution of 2010 x 1080.

I want to create an index page for these images which has smaller versions of the originals that I can zoom in on. I tried to do this by resizing the images to a resolution of 338 x 450, but when I zoomed in on one of these smaller images, the quality was not good (there was a noticeable loss of image quality).

How do I resize these image to 338 x 450 without losing image quality? Do I need some special software?

share|improve this question
Thanks for editing in his answer akira – Ivo Flipse Feb 2 '10 at 6:58
As @badp said: You'll want to create a second smaller thumbnail image that when you click on it will show you the first larger image. Then, you can simply use something like Lightbox2... – Tom Wijsman Jun 18 '11 at 11:32
For photographic images there is no method that exists that doesn't lose quality on resize! Shrinking an image throws away information but tries to preserve as much as possible using antialiasing to give the best possible approximation for the new image dimensions, while when expanding an image the algorithm has to guess what to fill in. – Andy Lee Robinson Jul 27 '11 at 21:07

10 Answers 10

Maybe, what you want to get is a click-to-enlarge small thumbnail popping up the full version of your image in its full glory?

Some basic HTML will do that.

<a href="biggerimage.jpg"><img src="thumb.gif" alt="Click to zoom"/></a>
share|improve this answer

This is probably not possible -- you're looking to store all 2010x1080 pixels but only display a zoomed-out view of them. This would likely be an feature of image-viewing software rather than the image format itself. Note that if you're using a browser to view the image, and you include "height" and "width" attributes on the img tag, it should show the zoomed-out view for you. (Though I suppose it won't let you zoom in after that, but you'd still be storing all the data in the image and could resize it if needed later, or the user could download it.)

share|improve this answer

If you mean so that you can zoom in and see the same quality as you did when it was 2010 x 1080, you can't, this is impossible.

Imagine a 3x3 grid with the following (r=red, g=green, b=blue):


If you then want to change it to a 2x2, it will do something like this (b=blue, y=yellow, p=purple):


Then, when you try to stretch it again, it will try to restore the colors, fill the gaps and work out what should be in certain places.

It is nearly always the case that the quality loss isn't that visible when you zoom in only slightly, but it is always the case, and if you are going from 2010x1080 to 338x450, you certainly will see it.

Also, if you were simply changing the size from 2010x1080 to 338x450, it is possible that you were distorting the aspect ratio which is a completely different issue.

You may want to look in to cropping the images instead, basically (image manipulation software dependent), drag a square around the parts of the image you want then just keep that part.

Also, when you have a selection or image you want to shrink, some utilities allow you to lock ratio, if your software doesn't, just remember to divide by the same ammount, for example a half size 2010x1080 would be 1005x540.

share|improve this answer
thanks for your explain :) – qWolf Nov 25 '09 at 13:22

Open your image in any photo editor, zoom out, then pick it with any screen capture device. At least you are guaranteed an image with good resolution - Man Miyo

share|improve this answer

That's not possible. By decreasing the images size, you are compressing multiple pixels into fewer pixels, so pixels will have to be condensed.

share|improve this answer

There is no way you can do it IMO. Smaller resolution will always result in a quality loss. Some pixels will inevitably be lost.

share|improve this answer

Since you're dealing with raster images here, continuous scaling simply doesn't work. The only way it could possibly work like you expect would be to use higher-level mechanisms to scale your image, such as in HTML

<img src='foo.jpg' width='338' height='450'>

That way the browser would have the full-size image and does the scaling for you while the complete image would still be retained behind the scenes and could be used.

Note that HTML was an example, I have no idea what you are using the image for. You could also try fiddling with the dpi settings of the image so that it displays smaller in contexts like printing while still being the same pixel size.

But you definitely don't want to scale the image itself if you want to regain the full resolution at a later time.

share|improve this answer

I think it's impossible not to lose quality if you are working with JPEG. JPEG is a format which compress the images in exchange to "destroy" some information.

Try to use another format first (let's say PNG for instance), which also compress the image but does not destroy any information. Anyway, as all the previous replies told you, you are going to get a physically smaller image, so it's impossible not to lose quality.

For image manipulation, GIMP is great. You can have it for Windows, Linux and OS X.

share|improve this answer

You can use photoshop resize it and save it. You will then have the option of setting the required quality.

You will loose some quality but the result is usually satisfying

share|improve this answer

You Can try IrfanView and use their resizing option.

share|improve this answer
IrfanView. Not InFranView. – Nathaniel Nov 24 '09 at 6:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .