Leser: 1
4 Einträge, 1 Seite |
$image->Crop(geometry => "100x100+0+$offset")
$$image[$_]->Crop(geometry => "100x100+0+$offset") for(0..$#{$image});
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/perl
use strict;
use warnings;
use Image::Magick;
my $file='/home/topeg/bilder/gifs/test4.gif';
my $x;
my $offset=0;
my $img=Image::Magick->new;
$x=$img->Read($file);
warn "$x\n" if "$x";
for my $nr (0..$#{$img})
{
$x=$$img[$nr]->Crop(geometry => "100x100+0+$offset");
warn "$x\n" if "$x";
}
$x=$img->Display();
warn "$x\n" if "$x";
1 2 3 4
#$x=$img->Read($file); my $data=do{local ( @ARGV,$/ ) = $file; <>}; $x=$img->BlobToImage($data); warn "$x\n" if "$x";
4 Einträge, 1 Seite |