PhilterPaper / Perl-PDF-Builder

Extended version of the popular PDF::API2 Perl-based PDF library for creating, reading, and modifying PDF documents
https://www.catskilltech.com/FreeSW/product/PDF%2DBuilder/title/PDF%3A%3ABuilder/freeSW_full
Other
6 stars 7 forks source link

"convert" utility availability? #146

Closed PhilterPaper closed 3 years ago

PhilterPaper commented 3 years ago

@carygravel and I are trying (see #143) to clean up the new tests (9 through 12) in t/tiff.t, which are for testing TIFF handling. We think we have it running for Linux, using the built-in "convert" utility (associated with libtiff?). For Windows, it's (mostly) working with ImageMagick's magick convert (still some glitches). Care must be taken on Windows that we don't accidentally run the built-in "convert" utility, which will reformat your HDD, so we check for "magick".

Anyway, can anyone tell us what the situation is for non-Linux and non-Windows platforms? There are many out there, including a number of BSD flavors, and I don't want to unnecessarily exclude them by restricting advanced TIFF testing to just Linux and Windows. Do other platforms have "convert" (for graphics manipulations) built in, or can they run ImageMagick?

Note that non-Linux and non-Windows platforms will still install PDF::Builder; they'll simply skip over some of the TIFF tests. I'm just trying to be as inclusive as possible, but it's not a catastrophe if the advanced TIFF tests can't be done. Apparently Linux has everything needed built in, and Windows can have ImageMagick installed, but I have no idea what to do on other platforms.

Thanks much for any additional information you can give.

PhilterPaper commented 3 years ago

Cary has managed to fix t/tiff.t to use the necessary ImageMagick and ghostScript commands (installed manually) on Windows. This enables all the tests to be made on Windows, and none skipped (provided that you have the two packages installed, which is outside of something like cpan's bailiwick. As for other platforms (not Windows or Linux), our understanding is that they should operate like Linux does -- we'll see.