Upsample in a web worker.