Re: [GD-DEVEL] Defining JPG DPI and Bit Depth Parameters
[email protected] (Pierre)
| Newsgroups | php.gd.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello Miguel, On 1/18/07, Miguel Maldonado <[email protected]> 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