DPI and libGD

DPI and libGD

am 22.08.2007 11:24:05 von vincent.marguerit

Hi,

Is it possible to change the DPI of an JPG image by using the libGD ?
I would prefer using it than imagemagick...

Thanks,
Vincent.

Re: DPI and libGD

am 22.08.2007 11:44:58 von Erwin Moller

Defacta wrote:
> Hi,
>
> Is it possible to change the DPI of an JPG image by using the libGD ?
> I would prefer using it than imagemagick...
>
> Thanks,
> Vincent.
>

Hi Vincent,

I think you can't.
72 dpi is the 'webstandard', and imagejpeg() defaults to it.
Sorry.

Regards,
Erwin Moller

Re: DPI and libGD

am 22.08.2007 12:52:05 von Ulf Kadner

Defacta wrote:

> Is it possible to change the DPI of an JPG image by using the libGD ?
> I would prefer using it than imagemagick...

Dont know if PHPs gd lib can do. May you will compile your PHP with the
imagemagick PECL Extension:

pecl install channel://pecl.php.net/imagick-2.0.0RC1 for easy access
imagemagick

Ulf

--
_,
_(_p> Ulf [Kado] Kadner
\<_)
^^