Very fast, would you share the libraries you're using to handle conversion and resize?
Not use other specific libraries, only the in browser canvas api.