silvia-odwyer / photon

⚡ Rust/WebAssembly image processing library
https://silvia-odwyer.github.io/photon
Apache License 2.0
2.72k stars 154 forks source link

feat: create image from Blob and Image #151

Closed axetroy closed 1 year ago

axetroy commented 1 year ago

closed #61. This PR:

The current methods that can create PhotonImage objects are:

open_image() new PhotonImage() PhotonImage.new_from_base64() PhotonImage.new_from_byteslice()

These APIs are not unified, I recommend deprecating open_image

and change to PhotonImage.new_from_canvas()

axetroy commented 1 year ago

/cc @silvia-odwyer ready for review