Splitting multipage TIFF, image%03d.png does not work
Posted: 2010-02-09T08:05:48-07:00
Hello
I want to replace the pretty good working perl system command:
with a routine that let me keep the splitted pages for further processing in memory, in a string or an array.
But what ever I tried, I have only the first page, second, third and so on, got lost.
Also this modified example from PerlMagick does not work for me:
Any hint, suggestion?
Kind Regards
RP
I want to replace the pretty good working perl system command:
Code: Select all
system("convert $workdir/$tiff $tmpdir/$file%d.tif");
But what ever I tried, I have only the first page, second, third and so on, got lost.
Also this modified example from PerlMagick does not work for me:
Code: Select all
$filename = "image%d.tif";
open(IMAGE, ">$filename");
$image->Write(file=>\*IMAGE, filename=>$filename);
close(IMAGE);
Kind Regards
RP