Closed VINTX2 closed 2 weeks ago
Hi @VINTX2, I didn't have any experience using InstructPix2Pix, but I'm quite sure that the reason is RGBA file format. RGBA format contains RGB information with additional Alpha channel, where it usually contains a transparency information. So, if you choose rgba
option, then your output contains a full RGB information with additional transparency Alpha channel information which is generated by our tool.
In many cases, such as simple web browser image viewer does not support such format, so they rather just ignore the Alpha channel information and just regard the data as RGB data. So, the output is perfectly fine, just the viewer does not support the format.
If you want to explicitly fill the background with white
or other color, use white
or custom
option with rgb value. More information can be found in https://github.com/plemeri/transparent-background?tab=readme-ov-file#computer-command-line
Closing due to inactivity.
Hello,
while playing around with background-removed images in other AI img2img tools, I have noticed that the AI tools are recovering the removed background.
Let me give an example:
transparent-background --source TIMO_HAUS_Tiny_House_Adler_0013.jpg --dest ./test
Why is this an issue? If you think that you removed something from a picture, but you do not know that it is recoverable, it could lead to privacy/security problems.
Temporary solutions:
--type
option to fill the background with a color.convert input_image.png -background none -flatten output.png