Posted by Rik on 07/20/06 03:10
Smiley wrote:
> I would like to create a script that will generate an image that when
> printed out will fit on a user defined sized envelope (for printing
> mailing addresses).
Look at imagecreatefrom(_arbitrary_image_)() & imagecopyresampled().
> I've been doing some research, I figure I'll need to know the PPI
> value in order to determine the size of the image I'll need to
> generate.
Pixels Per Inch is useless on the web. Matching PPI will only result in
resampling. Web = pixels (/or related ny % em etc.). Inches are not related
to cimputer screeens.
> Does PHP always output images with the same PPI value?
It doesn't care. It's pixels.
Grtz,
--
Rik Wasmus
Navigation:
[Reply to this message]
|