[development] Visualize files like image

Antonio P. P. Almeida perusio at gmail.com
Wed Apr 28 13:32:40 UTC 2010


On 28 Abr 2010 12h40 WEST, gmcabral at gmail.com wrote:

> Hi there!;
> Anybody know any way to visualize tif files in drupal?

I would write a new image processing action by extending the existing
imageapi actions for imagemagick, invoking something like:

convert <imagemagick args> input_file.tiff input_file.png or jpeg if
you prefer that format. In that case be mindful of the quality
setting, which IIRC, is 80 by default.

In the args you can specify everything, like geometry, resizes, crops,
or just do the format conversion and use the builtin imageapi crop and
resize functions.

HTH,
--- appa



More information about the development mailing list