Closed liamslo closed 1 year ago
For anyone that is having the same issue/trying to do the same thing, this was my work-around:
getInstance().applyFilter('Brightness', {'brightness': 100}).then((res: any) => { getInstance().applyFilter('removeColor', { color: '#FFFFFF' }) console.log(res) })
That will remove the background image, while keeping the drawing in tact. I don't know how good of a workaround it is, but hopefully it helps someone in the same boat.
Summary I would like to draw on an image, then remove the image so that I have an overlay against a transparent background. I have tried a few different methods to accomplish this, but have run into the following issues:
getInstance().applyFilter('ColorFilter', {'Threshold': 100}).then((res: any) => { console.log(res) })
but have not had any success. I have tried the same for Remove White, but am not sure what the types I should be using are.Is there any solution to this issue? To reiterate, I would like to draw on top of an image, remove that image, then download just the drawing. Kind of like tracing.
Thank you.
Version 3.15.2