can't scale or clone tiff image using libimage-imlib2-perl
andy baxter
andy at earthsong.free-online.co.uk
Tue Aug 28 23:01:29 UTC 2007
Brian McKee wrote:
> On Sun, 2007-26-08 at 12:44 +0100, andy baxter wrote:
>
>> I have written a program in perl which scales a collection of panoramic
>> tiff images to various different sizes. It was working fine, but
>> recently stopped working for no obvious reason. I am using the perl
>> wrapper to libimlib2, from the package libimage-imlib2-perl. The program
>> works by loading the image into a variable '$img', then using
>> 'create_scaled_image' to generate scaled versions of the image at
>> several sizes. The text of the program is copied below. I have commented
>> out the line which originally scaled the image and replaced it with the
>> simpler 'clone' function. Neither version works - i.e whichever line of
>> the two I comment out, the program dies when the original image (which
>> seems to load OK) is scaled or cloned.
>>
>> I have submitted a bug report about this problem.
>>
>> Any help would be greatly appreciated, as this is holding me up with a
>> project I want to get finished. I have tried reinstalling both libimlib2
>> and libimage-imlib2-perl, but this doesn't help.
>>
>> andy baxter.
>>
>> #!/usr/bin/perl
>> #
>>
>
> Start with
>
> use strict;
> use warnings;
>
> Then explain how it dies... I quickly hacked up the file structure you
> mentioned and it created some jpegs - it didn't 'die'...
>
> I'm using dapper...
>
>
I've added the lines you suggested, and the following happens (this is
with the 'clone' line commented out and the 'scale_image' line
uncommented). I'm using feisty. It was working until fairly recently;
possibly before I upgraded from dapper to feisty.
andy at monkey:/local/charabanc/raw/panoramas$
/local/charabanc/charabanc-0.1/scripts/scale-panoramas.pl
Reading directory names
Processing panorama: gateway
opening file: raw/gateway/gateway.tif
scaling to 100 pixels high at quality: 70
new width=698, new height=100
can't scale image at
/local/charabanc/charabanc-0.1/scripts/scale-panoramas.pl line 42.
More information about the ubuntu-users
mailing list