Has anyone developed a reusable Javascript component (by which I just mean functions, or package) which can take an Image BLOB object (like what’s in memory from use of a JS Upload Dialog) and let the user use the mouse to draw (using maybe a circle brush) the “transparency” areas, that Image Editing API requires, onto parts of the image and save the PNG back into a new BLOB. I’m pretty sure this is doable, as long as JS can write the rasterized data back out to a new BLOB, to use in the Image API.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Use B64 as Image input for Edits and Variations? | 0 | 433 | March 29, 2023 | |
How to create ImageEdit from ImageData? | 8 | 1379 | December 29, 2023 | |
'Missing image file in request. (Perhaps you specified `image` in the wrong format?)' | 7 | 1777 | October 30, 2023 | |
Programming simple color swatch interface with Open Codex | 1 | 367 | February 6, 2024 | |
Edit imported PNG image with transparency | 5 | 4223 | January 20, 2023 |