Since tiff cannot show in most browser, I'm thinking about transfer it to png and display the png in html. How can I do this? Thanks!
Try to use this library. https://www.npmjs.com/package/tiff-to-png
var ConvertTiff = require('tiff-to-png');
var options = {
logLevel: 1
};
var converter = new ConvertTiff(options);
var tiffs = [
'/home/tiffs/document_one.tif',
'/home/tiffs/document_two.tif'
];
var location = '/srv/www/mysite/public/documents';
converter.convertArray(tiffs, location);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.