-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to Save RGBA image in psd format #25
Comments
Have you try: channels[0] = your_numpy_img[:, :, 0] # Red
channels[1] = your_numpy_img[:, :, 1] # Blue
channels[2] = your_numpy_img[:, :, 2] # Green
channels[-1] = your_numpy_img[:, :, 3] # Alpha |
I tried with above commands. But alpha channel is converted into white background. |
I have done. Very thanks. |
hi @yiming1995, could you please share the full code? I have tried to add a transparent image to PSD layer. But after adding the layer to the PSD file, the background gets black. |
@magdev2022, |
Can you share code and problem here? |
only way i got this to work was by passing
|
what is the color mode in nested_layers.nested_layers_to_psd(layers, color_mode=3,) if we want to save RGBA in psd .if i used color mode as 3 it writting only RGB in psd .
code_psd.log
check at line number 37 .
The text was updated successfully, but these errors were encountered: