Re: [GD-DEVEL] Defining JPG DPI and Bit Depth Parameters
| From: | Pierre | Date: | Thu, 18 Jan 2007 12:36:57 +0000 |
| Subject: | Re: [GD-DEVEL] Defining JPG DPI and Bit Depth Parameters | ||
| References: | 1 2 3 | Groups: | php.gd.devel |
| Request: | Send a blank email to php-gd-devel+get-48@lists.php.net to get a copy of this message | ||
Hello Miguel,
On 1/18/07, Miguel Maldonado <miguelmal@gmail.com> wrote:
Thanks for the prompt response. I will take the liberty to shoot a couple of more questions: 1) Does gd support Tif images, If not are there plans to add this feature ?Not yet, I have a patch for the initial TIF support. That reminds me to add it in the issue tracker.
2) Is there a way to calculate the appropriate pixel dimensios of a jpg image by for a particular file size. For example I would like to resize all images in a folder to 20 KB.That's not an easy task, the compression ratio depending on the contents of the image. I remember someone having written a class in PHP to create jpeg images with a maximum size. It is certainly possible to port it to C. The class was release on phpclasses.org. Cheers, --Pierre