Solved

How to convert a pixel to mm

Posted on 2006-11-01
11
14,258 Views
Last Modified: 2008-03-25
I m working on pdf. I have to get the exact value in millimeter for a pixel for an image. Lets say an image with height 100 pixel and width 200 pixel . What is the conversion formula to convert 100Pixel in millimeter (100 pixel=?millimeter).
0
Comment
Question by:jaguar123456
11 Comments
 
LVL 16

Accepted Solution

by:
Wadski earned 50 total points
ID: 17851168
This entirely depends on the dpi.

This website has an accurate convertor to use:

http://www.classical-webdesigns.co.uk/resources/pixelinchconvert.html
0
 
LVL 54

Assisted Solution

by:b0lsc0tt
b0lsc0tt earned 50 total points
ID: 17851182
jaguar123456,

There is no exact, perfect conversion.  The reason is a pixel is a relative measure.  On a screen that uses resolution 800x600 a pixel is larger than one on a screen 1024x768.  To help picture this remember that the actual size of the screen can be the same for both of those settings.

Let me know if you have any questions or need more information.

b0lsc0tt
0
 
LVL 54

Expert Comment

by:b0lsc0tt
ID: 17851222
@Wadski - Nice converter!  I remember seeing the formula once but I like that.
0
 

Author Comment

by:jaguar123456
ID: 17851223
if i have an image uploaded in c# by file browse control. How can i get the image width or height in mm instead of picel.
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 16

Assisted Solution

by:HackneyCab
HackneyCab earned 50 total points
ID: 17851610
An image file doesn't have any such thing as a measurement in millimetres. You only give it a physical width and height when you print it out, or when you display it on a monitor. Then the width and height depend on PPI (pixels per inch, used on monitors) or DPI (dots per inch, used when printing), and there's no real standard for either. Many high-quality printers will print at 302 DPI, whereas others may go for 150 DPI.

And whereas my monitor is currently running at about 96 PPI, other people may be running their display at 100, or 120, or 80. There's no way of knowing. So there's no sense in talking about the inherent width and height of a digital image in millimetres.

Your dealing with images on a digital page that is designed for printing at specific sizes. So you're being forced to decide how to scale an image to fit on this page. If the person you're working for hasn't given you a DPI to work to, then you need to see what works for you. I recommend sticking to a DPI of at least 150, because any less and the image may look blocky.

Once you know what DPI you're working to, you can work out the conversion like so:

(Physical size in inches) = (Pixel size) divided by (Dots per inch)

Then you need to convert inches to millimetres.
0
 
LVL 6

Assisted Solution

by:davbouchard
davbouchard earned 50 total points
ID: 17851752
Like b0lsc0tt said, a pixel changes in size depending on your screen resolution. Usually, at optimal monitor resolution 1cm represents 1cm and 1in = 1in.
If I go in Paint under attributs., 1pixel = 0.01inch at my current resolution for my current monitor and 1px = 2.5mm.

You can get nice information from wikipedia. (http://en.wikipedia.org/wiki/Pixel)
0
 
LVL 11

Assisted Solution

by:ethoths
ethoths earned 50 total points
ID: 17853731
It's like everybody keeps telling you. The size the image is displayed at depends on the RESULUTION of you screen.

I have a 19" screen with a vertical resolution of 1024 pixels. On this monitor 3 pixels=1mm
On my 15" screen with a vertical resolution of 480 pixels. On this monitor 1.75 pixels=1mm

On my first screen an image with a height of 100 pixels would measure 33 mm
On my second screen the same image would measure 57mm in height.

 
0
 
LVL 11

Expert Comment

by:ethoths
ID: 18006497
I beleive that these poinst should be shared as we all gave the same answer from a slightkly different perspective.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem to be resolved in this article Currently, development of website and web application can be done without writing thousands of lines of programming code by hand. Description This can be done through by using a open source framework such …
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now