D
D
Denis2016-03-04 18:40:38
ImageMagick
Denis, 2016-03-04 18:40:38

How to convert millimeters to pixels?

There is a task, knowing the diameter of a circle in millimeters (for example, 100), to create an image using ImageMagick (DPI by default 72), the actual size of which on any screen will be 100mm. The image parameters are specified in pixels. By what formula can I correctly convert millimeters to pixels?
So far I've tried this: 72/2.54 = 28.35 dots/cm, so 1mm = 0.2835px. It turned out 353px = 100mm
Meryl on the screen with a tape measure) 12mm is missing
What did I do wrong?
634359b91c99405daf0ac8323856a557.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2016-03-05
@itvdonsk

1. Wrongly calculated. 100mm = 285px.
2. You are taking 72dpi, not the actual dpi of the output device.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question