Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 43 |
Nodes: | 6 (1 / 5) |
Uptime: | 39:22:55 |
Calls: | 282 |
Calls today: | 1 |
Files: | 884 |
Messages: | 75,729 |
I wonder if it is possible to remove the background from an image and
make it transparent using Tk or a package? Then I can save it as a png
image. The background in my case consists of a single color. Perhaps I
could replace that color with an "alpha" color but how?
I wonder if it is possible to remove the background from an image and make it transparent using Tk or a package? Then I can save it as a png image. The background in my case consists of a single color. Perhaps I could replace that color with an "alpha"color but how?
On 10/17/2024 3:35 PM, Rich wrote:
saito <saitology9@gmail.com> wrote:
I wonder if it is possible to remove the background from an image and
make it transparent using Tk or a package? Then I can save it as a png
image. The background in my case consists of a single color. Perhaps I
could replace that color with an "alpha" color but how?
man n photo:
imageName transparency subcommand ?arg arg ...?
Allows examination and manipulation of the transparency
information in the photo image. Several subcommands are
available:
Thank you - I missed this page. Does this command apply to non-png
images?
Initially the image will have no transparency, since the
background is a solid, opaque color?
The challenge in my case is I don't know where the background starts and
what color it would be. The latter can be solved by involving the user perhaps.