Solved

How to convert a pixel to mm

Posted on 2006-11-01
11
14,254 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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
RSS is valid, but improvement recommendations are confusing. 3 27
Hovering effect 9 30
Video on my site 4 28
WEB Farm 6 26
Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
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 …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

746 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