Resize Images in JavaScript: Canvas API and Sharp Compared