Skip to main content

How to set dpi and size of photo in mm or cm?

Ok, so you might have come across some sites that ask you to upload a photo, but also tell you that it must meet some requirements like these:
  • Measurements: 35mm wide and 50mm high
  • Minimum resolution: 150 dpi
  • Format: JPEG file
  • Should be a colour photograph
  • The photo size should be less than 200KB
First of all, since the website is asking you to upload a photo, the use of ‘dpi’ (dots per inch) in the minimum resolution requirement is wrong. It should actually be ‘ppi’ or pixels per inch. ‘dpi’ is strictly used only in hard copies, printers and printing, and has no meaning in computer files or soft copies. You may want to read this page for a good explanation of the difference between the two, before you proceed with the tutorial: DPI and PPI Explained
You will need a good graphics editing software to set the ppi and measurements of a photograph. Windows Paint is very basic and does not provide this functionality. Sophisticated software like Adobe Photoshop would most likely provide this functionality, but now you don’t need to whip out your credit card to buy them. Just get the free and powerful replacement for Windows Paint: The Paint.NET
So, how do you set the ppi (mistakenly called dpi) and measurements in Paint.NET? Let’s use the requirements above as an example.


  1. In Paint.NET, open the photograph which you wish to upload to the website (or meet the requirements with).
  2. Click on Image > Resize (Ctrl-R) on the menu bar.
    image
    Make sure the blue areas are exactly as given here. Do not touch the red area. We will work on the green area.
  3. First we will set the Resolution (ppi). Since we want it in inches, click inside the second box, and select “pixels/inch”. Then enter 150 in the first box.
  4. Next we need to set the measurements or the “Print size”. Now, this is a bit tricky. You should set only one of the two measurements here. Either the width or the height, not both. If you force both width and height, you may end up with a distorted photograph (think about a ball getting crushed into a flat plate).

    So which one should we change? Before we change anything, since the required measurements are in mm (millimeters, which is one-tenth of centimeters), you need to click inside the box on right side and select “centimeters”.

    Now enter the required Width, which is 3.5 cm (note that 35 mm = 3.5 cm). Notice the automatic change in the Height box. In my example it reads 4.67 cm. Here’s the rule: If the new height is bigger than the required height (5.0 cm), you’re right so far. It is the width that you need to enter. Just click OK and continue to step 5.

    If the new height is smaller than the required height, it is the height that you need to enter. Since our example has 4.67 which is smaller that 5.0, we will enter 5.0 into the Height box. Note that now the width automatically changes. Allow this to happen (do not try to change the width back). Click OK and continue to next step.
  5. Click Image > Canvas Size (Ctrl-Shift-R) on the menu bar.
    image
    Along with the usual colour code, yellow means an area you can change according to what you want, but you will most likely leave it as shown here.
  6. In here, you will see that either the width or the height is meeting the requirement. Change the one that does not meet the requirement. In our example, the Width (3.74 cm) does not meet the requirement (3.5 cm). Therefore we will enter 3.5 into the Width box (under Print size). Note that this time, the height does not change automatically, but remains 5.0 cm.
  7. About Anchor: This determines how Paint.NET will crop your photograph as you change the size. Most of the time, you will select the anchor to be in the middle, as subjects of a photograph are usually placed in the middle of the photograph. But in case your photograph has subjects on a side or a corner, change the anchor to match it, so that the photograph crops sensibly. (Play around, and you’ll know what I mean.)
  8. Click the OK button and you’re done! Save the image as JPEG using File > Save (Ctrl-S) and select a good quality setting (95%) while saving.
Well, I hope it’s easy for you to follow the steps, even though some of them are quite long and explanatory. Post comments if any of you encounter problems.
Keywords: dpi, ppi, dots per inch, pixels per inch, inches, centimetres, millimetres, mm, cm, photo, photograph, picture, requirements.

Comments

  1. thank you soooo much! the Paint program is great and free and the tutorial as well, and yes they did write dpi...:)

    ReplyDelete

Post a Comment

Comments are moderated, and are usually posted within 24 hours if approved. You must have a minimum of OpenID to post comments.

Popular posts from this blog

Disable auto save in JetBrains IDE software (IntelliJ IDEA, PyCharm, PhpStorm)

JetBrains provides the following IDE software:
IntelliJ IDEAPhpStormPyCharmRubyMineWebStormAppCodeCLion Google also provides Android Studio which is powered by the IntelliJ platform.

If you come from a different IDE such as Eclipse, you will be unpleasantly surprised to find that JetBrains-branded IDEs automatically save everything the moment you look away. The proponents argue that as you work on your project, you should not have to worry about saving files. But to others, this auto-save behavior which is enabled by default is a curse that catches them by surprise, and a shocking departure from the workflow they are very much used to.

You can change the behavior by altering some settings.

Stop having to click Unblock on every downloaded file

CAUTION: The blocking of downloaded files in Windows is a security and safety feature to help prevent your computer from being infected by viruses and other malware. Only disable this feature if you know what you're doing.

I had been plagued by this annoyance since the days of Windows Vista. Any downloaded file, no matter what browser I use, gets tagged as "blocked" by Windows. You can open downloaded documents even though they are blocked, but when you run a downloaded application (such as a setup file) you're presented with a "Security Warning" before you're allowed to run it. It's worse if you extract a downloaded ZIP file with the Windows' built-in ZIP management. Every extracted file is blocked by default.

Being a geek who finds unnecessary "security" prompts annoying, the first thing I do in Windows is to disable the User Account Control (UAC). But I couldn't quite figure out how to disable blocking of downloaded files until …

Install Windows 10 Tech Preview when setup says media driver missing

Skip to the end for instructions.
I had been trying to install Windows 10 Pro Technical Preview onto a VHD, as I have Windows 7 Ultimate and can run an operating system from VHD (this feature is apparently limited to Enterprise and Ultimate editions).

While I had successfully managed to install it on a virtual machine in Oracle VirtualBox, I was dissatisfied with the sluggish performance of a VM. At the same time, I also did not want to dedicate a real hard disk partition for the sole purpose of installing Windows 10 TP.

Hence the decision to install into a VHD, which is a very neat solution that lets me keep Windows 10 TP separate from my real hard disk partitions and still enjoy the full native speeds of my real hardware. I had previously installed Windows 8 RC successfully into a VHD so I knew what I was up against.

Or so I thought. As soon as I booted up the setup disk (the ISO I had downloaded) and clicked on Install Now, I received this very unhelpful error asking for device dri…