Copy link to clipboard
Copied
Hi all,
I am running a script on photoshop that pulls in png files as layers and saves as a png. Problem is the transparency of the layers is not being preserved and we are seeing white corners on our rounded images.
I urgently need some help as we have loads to generate and a tight timeframe!
Code:
```
```
Thankyou!!
Copy link to clipboard
Copied
Why haven’t you posted one of the images?
Edit: I apologize, I had misread and you did use png24.
Could you please post screenshots of the original image taken at View > 100% and the resulting png?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Hi,
I am generating a png file from multiple png files as layers. Output is showing white corners (image has rounded ones) and it seems as if a white layer is being added in the generation.
REALLY APPRRECIATE any help - we are really up against it!
Any ideas why that woud be happening here:
```
```
Copy link to clipboard
Copied
missed this line from the top
Copy link to clipboard
Copied
Try adding to your ExportOptions:
opts.transparency = true;
You may also wish to consider making the script more portable:
var saveLocation = File("~/Dropbox/Mad Cat Militia/__GENERATED CATS__/cat.png");
Copy link to clipboard
Copied
Copy link to clipboard
Copied
It looks like a moderator has merged/combined the two separate topics into a single one... So, did adding this code work?
I'm going to remove the correct answer that was applied to my dupe post message.
opts.transparency = true;
Copy link to clipboard
Copied
Did adding the line of code that I suggested resolve this issue?
Please add likes and or correct answers to the various posts so that when others are searching for a resolution to their issue it will be obvious that a solution was found.