I currently have a server running ActiveState perl 5.8 that is using Image::Magick module and ImageMagick to convert multiple tiff's into gif's for import into a web server through a scheduled task. It's working great, except I was informed a week ago the old ImageMagick version is showing up in our vulnerability scans and it needs to be upgraded.

I tried simply updating the ImageMagick to the latest version, but it's not compatible with perl 5.8, so no go. Then I attempted to install the latest version on another server running ActiveState perl 5.20...even though the documentation SAYS it'll work with and install the modules for ActiveState, it looks like it only installs the perl module for Strawberry and I get an error at installation.

So I looked into trying a different module that would give me the same end result (convert tiff to gif, that's ALL I want to do...), so I installed Imager, but the actual conversion step in the code:

$image->write(file=>$file,type=>'gif') or die $image->errstr();

gives an error saying:

format 'tiff' not supported - formats bmp, ico, pnm, raw, sgi, tga available for reading - Can't locate Imager/File/TIFF.pm

which tells me I need to install libtiff & libgif.

So found the installers, but I didn't have any C compilers installed...found the C installers, but I'm not sure if they were successful...libtiff & libgif installs are still giving errors. Yadda, yadda, yadda...I feel like I've followed a rabbit down a hole. I've been working on this a week and still haven't made any progress.

Is there an easier way to do this (tiff to gif)? Is there a module out there that is an easier install? Or do I just need to keep on keeping on with the path I'm going?

UPDATE: I gave up and installed Strawberry. Now I'm thrown into figuring out the nuances of having ActiveState and Strawberry running concurrently on the same machine. Even with the Strawberry, I was still unsuccessful in trying to get the PerlMagick installed. Finally I was able to get Imager to install with the tiff & gif libs and flushed ImageMagick.


In reply to Convert .tif to .gif by ksublondie

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.