Change resolution of image from 72 to 25 dpi in PHP -
Do I want to change image resolution from 72 to 25 dpi using PDP?
Is this possible?
Regards,
Salil Gaekwad
sorry .
Although you can try copying it, to say that you want to create 400x300, 25 dpi image, here's the math:
WIDTH
72 -------- 400 25 - ------- w = (25 * 400) / 72 (=) w ~ = 139 pixels
HEIGHT
72 -------- 300 25 ------ - h = (25 * 300) / 72 (=) H ~ = 104 pixels
You create a new 13 9x104 72dpi image, Work with it and you change it to a size of 400x300 pixels.
Comments
Post a Comment