Re: Image Resolution
| From: | DvDmanDT | Date: | Wed, 26 Jan 2005 22:28:31 +0000 |
| Subject: | Re: Image Resolution | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-207433@lists.php.net to get a copy of this message | ||
Take a quick look at imagecopyresampled.. It can change the size of an image
pretty good.. Now I know nothing about PDFs really.. But I suppose you could
just scale it with the GD functions then place the result in a PDF.. Maybe
the PDF functions can scale as well though.. Although, try both, because
chances are the PDF functions will resize instead of resample, and
resampling gives a MUCH nicer result in most cases..
--
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
"Martin Magnusson" <magnusson@resboken.se> skrev i meddelandet
news:003501c503f1$070be970$0300a8c0@emem1...
> Hi,
>
> I have written a script that takes an uploaded jpeg-image and places it in
a
> PDF-file with the PDFLib functions in php. The original image file is
> 560x420, 72 dpi. Later on the PDF-file will be printed, and our printshop
> requires at least 200 dpi. The format of the printed image should be A6
> (15,2x10,9 cm).
>
> Is it possible to change resolution like this?
>
> Thanks // Martin M