TheFileTools

How to resize an image to exact dimensions

Set a picture to an exact width and height in pixels, centimetres, millimetres or inches, with an optional file size limit.

Sometimes the file size is not the problem and the dimensions are. A web page needs a banner exactly 1200 pixels wide, a form wants 600 × 800, a print shop asks for 10 × 15 cm at 300 DPI. All three are the same job with different numbers.

Steps

  1. Open Resize image.
  2. Enter a Width, a Height, or both. The page starts with a width of 1200 and an empty height.
  3. Choose the Unit: px, cm, mm or in.
  4. Choose your pictures and download the results. The new dimensions are shown next to each file.

One number or two

  • Only width or only height: the other side follows, so the picture keeps its proportions and nothing is cut off.
  • Both: the result has exactly that size. If the shape differs from your photo, the photo is cropped from the middle, never stretched. Press Adjust crop next to the file to drag the picture and zoom until the right part is inside the frame.

You may enter a size larger than the original. The file will have more pixels, but no more detail than before.

Centimetres, inches and DPI

When the unit is not pixels, a Resolution field appears, set to 300 DPI. The tool multiplies the two, so 10 cm at 300 DPI becomes 1181 pixels, and it writes the DPI value into JPG and PNG files so that print software reads the intended physical size.

Format and file size

Format is set to "Same as original"; you can switch to JPG, PNG or WebP. Under More options there is an optional Maximum file size in KB. With fixed dimensions only the quality can go down to meet it. If it cannot be met, the tool says so and you need fewer pixels or a larger limit. When only the file size matters, use Compress image. To cut to a shape without choosing a pixel size, use Crop image.