Well, as far as I know, if you are working with a 72dpi photo, 1 point is the same than 1 pixel. When you work with other different resolution you must apply:
1pt = 1px * 72 / dpi of the photo
what I can't tell you is how to calcultate the dpi of the photo or if there is a php function that calculate it (I think it doesn't exist).
By the other hand, can I ask you why you need to convert points to pixels? I mean, If you want to insert an image, you need to pass the size of that image in centimeters and usually you must calculate this value from the image size in pixels.
Regards,
Jose Manuel.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hello
i have a problem with the photos, how can i convert pt to px, points to pixels ?
thanks in advance
Hi,
Well, as far as I know, if you are working with a 72dpi photo, 1 point is the same than 1 pixel. When you work with other different resolution you must apply:
1pt = 1px * 72 / dpi of the photo
what I can't tell you is how to calcultate the dpi of the photo or if there is a php function that calculate it (I think it doesn't exist).
By the other hand, can I ask you why you need to convert points to pixels? I mean, If you want to insert an image, you need to pass the size of that image in centimeters and usually you must calculate this value from the image size in pixels.
Regards,
Jose Manuel.