Open mandric opened 5 years ago
I think I'd prefer to get away from sharp here to reduce the number of native dependencies in this module. As mapeo-server is deployed on different platforms it would be difficult to guarantee support for all potential platorms
Don't fail here: https://github.com/digidem/mapeo-server/blob/master/api.js#L237 try to create thumbnails.
Use sharp because it's fast and looks to have good support: https://github.com/lovell/sharp
Sharp adds a native add-on dependency which didn't existed before, it might be worth weighing pluses and minuses of that.