Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

How to convert a pixel to mm

Posted on 2006-11-01
11
Medium Priority
?
14,351 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
8 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
Strategic internal linking is often considered an SEO power technique, especially for content marketing. Do you need to hire an SEO agency to optimize you internal linking? No, this article will help you understand the basics of internal linking and…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
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.
Suggested Courses
Course of the Month12 days, 4 hours left to enroll

564 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