I am using the GraphicsMagick module for node.js to manipulate my multipage Tiff document. I am trying to find a way to rotate a specific page and rotate it without splitting the file into individual tiff files, do the operation and then merge them. Currently the only way i know how to rotate pages using GM is:
gm("uploads/multipage_tiff_example_copy.tif").rotate('white',90).write('uploads/temp.tif',(err)=>{
if(err)
console.log(err);
else
console.log('Rotated');
});
The code above rotates all my pages in the tiff file. Can someone please help me find a way to select a specific page and then rotate it without splitting the file.
Thank you!