?
Solved

How to convert a pixel to mm

Posted on 2006-11-01
11
Medium Priority
?
14,318 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
11 Comments
 
LVL 16

Accepted Solution

by:
Wadski earned 200 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 200 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
Basic Security of Your VPC

So, you’ve got this shiny new VPC and a fancy new application configured on your EC2 servers ready to go. This application is only accessible from your computer, which is great for security, but you need your users to be able to access it! So, what’s the easiest way to do this?

 

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
 
LVL 16

Assisted Solution

by:HackneyCab
HackneyCab earned 200 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 200 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 200 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

Quick Cloud Training

Looking for some quick training on the cloud in 2 hours or less? Check out these how-to guides in AWS, Linux, OpenStack, Azure, and more!

Question has a verified solution.

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

Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
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…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

762 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