Hi there!; Anybody know any way to visualize tif files in drupal? Thanks. Regards. Gustavo.-
Do you have access to tiff2pdf on the command line? Also I think the ImageMagick pecl extension (http://au.php.net/manual/en/book.imagick.php) might allow you to extract pages from the tiff as single images or as a pdf. On Wed, 28 Apr 2010 08:40:22 -0300, Gustavo Cabral <gmcabral@gmail.com> wrote:
Hi there!; Anybody know any way to visualize tif files in drupal?
Thanks. Regards.
Gustavo.-
On 28 Abr 2010 12h40 WEST, gmcabral@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
On Wed, 2010-04-28 at 08:40 -0300, Gustavo Cabral wrote:
Hi there!; Anybody know any way to visualize tif files in drupal?
In Drupal 6, you can apply patches to imagecache module and imageapi module that allow you to view (as jpg, png or gif files) a PDF or tiff files that have been uploaded in a CCK filefield. The converted files can then be displayed in views. This requires: 1. Installing imageapi and imagecache modules 2. Choosing the ImageMagick toolkit at admin/settings/imageapi 3. Applying the patches and following the instructions at: http://drupal.org/node/366373#comment-2024112 This functionality should be built-in to Drupal 7 and the D7 version of imageapi_imagemagick module, though I believe more work is needed on the module: http://drupal.org/node/269329 David (egfrith)
2010/4/28 David Sterratt <dtq@f2s.com>:
On Wed, 2010-04-28 at 08:40 -0300, Gustavo Cabral wrote:
Hi there!; Anybody know any way to visualize tif files in drupal?
In Drupal 6, you can apply patches to imagecache module and imageapi module that allow you to view (as jpg, png or gif files) a PDF or tiff files that have been uploaded in a CCK filefield. The converted files can then be displayed in views.
This requires: 1. Installing imageapi and imagecache modules 2. Choosing the ImageMagick toolkit at admin/settings/imageapi 3. Applying the patches and following the instructions at: http://drupal.org/node/366373#comment-2024112
This functionality should be built-in to Drupal 7 and the D7 version of imageapi_imagemagick module, though I believe more work is needed on the module: http://drupal.org/node/269329
Thanks a lot David, I gonna try this, this seems easy to do.
participants (4)
-
Antonio P. P. Almeida -
David Sterratt -
Gustavo Cabral -
Lee Rowlands