Things to consider: this can currently already be done with external image editing software. Implementing this is not trivial, especially from a UX standpoint. This would also certainly require a way to undo changes while editing and the odds are high that once this gets added, other features will be requested that are already available within image editing software.
It should be possible to allow users to remove certain colours so those areas become transparent. By using a
canvas
element instead of a regularimg
tag, this might indeed be possible. See https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Pixel_manipulation_with_canvasThings to consider: this can currently already be done with external image editing software. Implementing this is not trivial, especially from a UX standpoint. This would also certainly require a way to undo changes while editing and the odds are high that once this gets added, other features will be requested that are already available within image editing software.