I have to convert multipple tiff to separate png files.For isntance i have a tiff file which have a 3 pages and i'd like to convert it 3 separate png's.In below code i could only convert first page of tiff file into png.
gm(__dirname+'/Tiff/Recorded.tiff').write(__dirname+'/Png/cpng.png',(err)=>{
if(!err){
console.log('Done');
}
else {
console.log(err);
}
});
How could i convert for example a second page of this tiff file?
And second question regarding adding a tiff file into another tiff.For example i have tiff file with one page and have second tiff file with three pages? I investigate i have found the append method but it was not working.The code below!
gm(__dirname+'/Tiff/Recorded.tiff')
.append(__dirname+'/Tiff/another.tiff').append(false);
could i add the tiff with one page into the tiiff with three pages and get a one tiff file with four pages?