Can anyone help? I seem since I swapped to Adobe Photoshop 2020 to be getting some rather large file size saved documents. Which previously were nowhere near the size they are now. I am not doing anything different. Any ideas? Thank you. Best regards Paul
Great! So after all that, was the ancestor metadata the significant factor in the bloated file size?
Just because there is ancestor metadata does not always mean that there is a problem, however, if there is excessive ancestor metadata then that may be a problem.
I came here looking for discussions on file sizes and stumbled across this thread, which is good to know. Out of interest, I tried this method for reducing file sizes and found that "some" file size is reduced, however, it seems to be approximately the same amount regardless of PSD size, which makes sense as the data is "so much".
But I don't believe this is the answer to the file size issue. I've since noticed PSD file sizes are huge for what they are, some hitting 2GB for what is admittedly a fairly high number of layers (not crazy high, I'm talking about 100 or so) and others where there is one single layer and it's over 350MB! Note: that single layer is a Smart Object, which in turn is a 2500x350 pixel 72dpi image - no more than 800kb in size.
So I'm thinking: how can a one layer PSD file be over 350MB?
Worse still the same PSD with some minor text in it is over 650MB! 😞
I ran the Metadata script to test and sure enough the file size was reduced to approx half - 184MB (remember the only so much data I mentioned above? Well, the same amount was taken off of a 1.5GB PSD so not that helpful)! But I digress, still way too much for this one layer PSD.
I did more testing. I tried turning off maximum compatibility, to no avail, it made no difference to file size.
But what does work is this: 1. Open your large PSD - in my case the one layer PSD as a test.
2. Create a new file in the same dimensions and DPI.
3. Duplicate the layer from the older PSD to the new PSD.
4. Save the new PSD.
Result: the new PSD file size is less than 2MB. That's the expected file size, not 350MB plus.
Now, I tried this on other PSDs with varying success, it depends on the complexity of the PSD of course.
I think this could be a bug, I'm not sure, but something is "off" with file sizes in PS 2019/2020. Overall, the state of Photoshop over the years has seen great leaps in features and intelligence (AI) BUT at what cost I wonder. And, yes, it's incredibly laggy too - opening files, saving files, dropping in a image straight into PS and trying to move/scale it before committing placement (which btw is a truly awful experience!).
I want to be able to save files which have expected and respectable file size, not what I'm experiencing with the Photoshop of today. Not to mention the performance aspect.
I'd be interested to see the results if someone else can try this method please.
I invite Adobe to take part in this discussion - I think it will benefit all designers who are tired of losing disk space to huge files for no apparent reason.
No problem with your instructions/wording I was a little out of my depth here. However, now that you kindly gave me the file via Dropbox, I have installed the automated "set and forget" script/action and all is working well. The Document Ancestors have been removed.
Have you installed the script into presets/scripts and does it work when used as an "installed menu item" under file/scripts?
Are you running the script from file/scripts/browse (i.e. not installed) and does it work?
I recommend using script events manager if you wish to have an automated "set and forget" script/action performed, otherwise you can just run the script manually as an installed script or browse.
Many scripts are offered in .js or .jsx or even .jsxbin formats. Simply download these files ready for installation (in some cases they may need to be decompressed from a .zip format archive).
Saving JavaScript Source Code
Some scripts are offered as “source code”, rather than saved into a ready to use file. This is often the case with scripts found at the Adobe User Forums, GitHub, SourceForge etc. Simply select and copy/paste the script code into a plain text document, saving the file with a .jsx filename extension. Ensure that a double extension is not incorrectly added, such as .jsx.txt
NOTE: Only paste the source code into plain text editors such as Notepad or Adobe ExtendScript Toolkit (WordPad or MS Word are not plain text editors). Ensure that straight single or straight double-quote marks " do not become curly “.
if (documents.length) {
if (ExternalObject.AdobeXMPScript == undefined) ExternalObject.AdobeXMPScript = new ExternalObject('lib:AdobeXMPScript');
var xmp = new XMPMeta(activeDocument.xmpMetadata.rawData);
var metaBloat = getArrayItems(XMPConst.NS_PHOTOSHOP, 'DocumentAncestors');
for (var a in metaBloat) {
if (metaBloat) {
alert('NOTE: There is DocumentAncestors metadata in this file!');
break;
}
}
}
function getArrayItems(ns, prop) {
var arrItem = [];
var items = xmp.countArrayItems(ns, prop);
for (var i = 1; i <= items; i++) {
arrItem.push(xmp.getArrayItem(ns, prop, i));
}
return arrItem;
}
If you do have an excessive amount of this metadata in your bloated files, then there are many options for removing this metadata. If this is not the answer, then you will need to keep looking as to why the files are larger than expected.