Skip Menu |
 

This queue is for tickets about the Imager CPAN distribution.

Report information
The Basics
Id: 127784
Status: resolved
Priority: 0/
Queue: Imager

People
Owner: Nobody in particular
Requestors: jkeenan [...] pobox.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Attachments


Subject: Imager::Cookbook code for TIFFs does not work
Date: Thu, 22 Nov 2018 12:51:21 -0500
To: bug-Imager [...] rt.cpan.org
From: James E Keenan <jkeenan [...] pobox.com>
Download (untitled) / with headers
text/plain 877b
In 'perldoc Imager::Cookbook' I read: ##### Some formats, like GIF and TIFF support multiple images per file. Use the read_multi() method to read them: my @images = Imager->read_multi(file=>$filename) or die Imager->errstr; ##### On that basis, I hoped to use Imager to convert some .tiff files into either .jpg or .png files. But was not able to even read the files, much less write them to a new format. See attachment. Running the program outputs: ##### /tmp/tiffs/test.harness.tiff /tmp/tiffs/test.simple.tiff /tmp/tiffs/test.suite.list.compare.tiff format 'tiff' not supported - formats bmp, ico, jpeg, png, pnm, raw, sgi, tga available for reading at imager-cookbook-tiffs-bug.pl line 13. ##### All 3 files are clearly viewable using the stock ImageViewer program that comes with Ubuntu. What am I missing? Thank you very much. Jim Keenan

Message body is not shown because sender requested not to inline it.

CC: ;
Subject: Re: [rt.cpan.org #127784] Imager::Cookbook code for TIFFs does not work
Date: Fri, 23 Nov 2018 08:28:32 +1100
To: James E Keenan via RT <bug-Imager [...] rt.cpan.org>
From: Tony Cook <tony [...] develop-help.com>
Download (untitled) / with headers
text/plain 1.8k
On Thu, Nov 22, 2018 at 12:51:31PM -0500, James E Keenan via RT wrote: Show quoted text
> Thu Nov 22 12:51:30 2018: Request 127784 was acted upon. > Transaction: Ticket created by jkeenan@pobox.com > Queue: Imager > Subject: Imager::Cookbook code for TIFFs does not work > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: jkeenan@pobox.com > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=127784 > > > > In 'perldoc Imager::Cookbook' I read: > > ##### > Some formats, like GIF and TIFF support multiple images per file. Use > the read_multi() method to read them: > > my @images = Imager->read_multi(file=>$filename) > or die Imager->errstr; > ##### > > On that basis, I hoped to use Imager to convert some .tiff files into > either .jpg or .png files. But was not able to even read the files, > much less write them to a new format. See attachment. Running the > program outputs: > > ##### > /tmp/tiffs/test.harness.tiff > /tmp/tiffs/test.simple.tiff > /tmp/tiffs/test.suite.list.compare.tiff > format 'tiff' not supported - formats bmp, ico, jpeg, png, pnm, raw, > sgi, tga available for reading at imager-cookbook-tiffs-bug.pl line 13. > ##### > > All 3 files are clearly viewable using the stock ImageViewer program > that comes with Ubuntu.
Imager supports TIFF through the libtiff library, for which you don't appear to have the development libraries installed. On Ubuntu you should be able to run: sudo apt-get install libtiff5-dev then either force install Imager itself which doesn't require the libraries for file support, but *does* display a summary, like: Libraries found: FT1 FT2 GIF JPEG PNG T1 TIFF Libraries *not* found: Win32 or install the separate Imager::File::TIFF distribution which will fail to install if the libraries aren't found. See Imager::Install for more details. Tony
Download (untitled) / with headers
text/plain 199b
On Thu Nov 22 16:28:53 2018, tony@develop-help.com wrote: Show quoted text
> Imager supports TIFF through the libtiff library, for which you don't > appear to have the development libraries installed.
Closing. Tony


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.