Skip to main content
Participant
March 24, 2023

P: Batch saving PNGs no longer keep color profile embedded

  • March 24, 2023
  • 36 replies
  • 5221 views

Photoshop versions past 24.0.1, including the latest 24.3, are breaking my Actions and Scripts that batch save PNGs (Save as a copy) that are supposed to keep the color profiles embedded. Each time I run an action or script, the first PNG keeps the color profile embedded, but all subsequent PNGs save out "untagged".

 

One weird exception: I have one Action which saves out a PSD and PNG from each file with color profiles embedded. The original action saved out the PSDs first and then the PNGs. This was the first time I noticed the bug. I tried switching the order in the action to save out the PNGs first, then the PSDs, and the bug no longer occurred. Not sure why, but I wanted to pass that along.

 

All other scripts which save out (not export) PNGs have this bug. We cannot update until this gets fixed.

This topic has been closed for replies.

36 replies

Inspiring
December 15, 2023

@Mohit Goyal I have updated to 25.3.1, and unfortunately this issue still persists when running a normal batch to save out PNGs with color profile embedded. It also doesn't work on a script we wrote which includes a batch saving out PNGs with color profile embedded.

Mohit Goyal
Community Manager
Community Manager
December 15, 2023

Hi all,

 

We are happy to announce the release of Photoshop version 25.3.1 (public version), which incorporates the resolution for this particular problem. To see the list of all fixed issues, click here

 

To update Photoshop to 25.3.1, click "Update" in the Creative Cloud desktop app next to Photoshop. More detailed instructions for updating

 

Let us know if the update resolves the problem for those affected, and share your feedback.

 

Thanks,

Mohit

Participant
December 5, 2023

Is there any update to this topic? I use actions for work to output final versions of files in different filetypes and the ICC profile needs to be attached correctly. I do this for batches of hundreds of files at a time so they cannot be saved out manually. I'm on version 25.0.0 and I've tried remaking my actions and specifically setting it to embed the current profile (Adobe 1998). When I run my batch action it saves out PNGs with no profile attached, and JPGs with the wrong profile attached (sRGB).

Inspiring
October 24, 2023

Hi @CShubert, has there been any movement on this issue from your team? I just tested the latest updates for 2023 (v24.7.1) and 2024 (v25.0), and this issue still persists in both.

Participating Frequently
October 12, 2023

Lol, adobe developers is too lazy to fix this bug. Another bug is hand tool presistent. Still not fixed. Lol

Known Participant
October 9, 2023

Adding more to this issue :

 

In UXP, I run in a folder to save all images to png, and the first image is applying the icc profile and including it in the png, but the others png doesn't include it.

 

I tried to force conversion with :

await document.convertProfile(PNG_PROFILE, constants.Intent.PERCEPTUAL, undefined, undefined);
await document.saveAs.png(newFile, {"compression": PNG_QUALITY, "method": "QUICK"}, true);

but the issue is still here : first PNG includes the icc profile and others don't.

I know this is not the dev forums, but it's adding a detail to the overall issue !

 

That's why I fall on this topic.

 

Windows 11

Photoshop 25.0.0

Inspiring
September 14, 2023

Thanks for the additional testing @PP32138406s7ku. But, I can't use the Save for Web workarounnd. That's a totally different function and result as far as I'm concerned. I need to be able to save out PNGs at higher than 72ppi or with at 16bpc encoding per client's rules, and SFW won't do that. And per Tom's suggestion, I also can't turn dialogs on as that defeats the purpose for quickly automating batch saves if you have to manually hit the Save button each time on a dialogue box. And yes, this issue has been going on for awhile, since version 24.2. Here's hoping it's an easy fix for Adobe.

Participating Frequently
September 14, 2023

One more thing in reply to @tom attix from the other day. Tom mentioned "I tried BTA-1138's action with show dialogs on and all of my PNG saves had the checkbox marked."

 

I got that behavior as well. With dialogs on, the embed profile checkbox is checked every time. The bug sufaces when dialogs are turned off however. That's when we get the behavior where the first PNG file saved includes a profile but all subsequent ones do not.

 

 

Participating Frequently
September 14, 2023

Here's some additional commentary on this matter from the Photoshop scripting community.

Re: Jsx Save as PNG With Embedded Color Profile - Adobe Support Community - 13954786

It seems this has been an ongoing problem for some time. Adobe, what do you say we get this fixed once and for all?

 

On the plus side, it looks like there is a workaround, with some caveats. You can replace the Save As step in your action with a Export > Save for Web (Legacy) step. This will reliably retain the embedded ICC profile if Embed Color Profile is selected. Depending on your file naming requirements you may also need to adjust the Output Settings > Saving Files settings for File Naming and Filename Compatibility. The down side is that you can't dynamically select the output directory for batch operations since there is no Save or Save As step in the action. The output directory is hard coded in the Export action step. Not the end of the world but an inconvenience as you would have to direct all output to a common folder and them manually move the files after processing.

Participating Frequently
September 14, 2023

Nevermind, after further testing I'm getting the same behavior as v24.7.1. Strangely, when I noticed v25 was installed I launched it and immediately ran a batch, using the same test folders I've been using, to export some TIFF files to PNG. All of the PNG files included the embedded ICC profile. I thought it was possibly fixed. I then went to another machine, that didn't yet have v25, and manually initiated the update. One updated I did the same batch test on that machine and got the same results as v24.7.1 - the first PNG saved included the profile but the subsequent ones did not. Then I went back to the first machine and tried again. In between, Photoshop had been quit and relaunched for what it's worth. Sadly, it was now back tot the previous, incorrect behavior. For some reason I got one good batch, but ultimately the problem remains. I though it may be too good to be true. I couldn't imagine that something discussed on here just a few days ago was already in the release, unless the deverlopers were already working on it, which it seems is not the case.