digidem / mapeo-server

Mapping web server for managing observations, media, tiles, and various static files.
11 stars 3 forks source link

use sharp library to create thumbnails #33

Open mandric opened 5 years ago

mandric commented 5 years ago

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.

okdistribute commented 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