|
|
|
|
|
by Klathmon
2987 days ago
|
|
Wouldn't that be pretty trivial with just a <canvas> element? use the `drawImage` function to draw the image scaled to whatever size you want, then just call any of the APIs that you want to get either ImageData, a base64-encoded-URI, or a PNG Blob resized. The exact method of resize is up to the useragent (IIRC i could be wrong on this), and it's done in "native" code, not in javascript. |
|