JPEG compression not working when saving documents
Copy link to clipboard
Copied
Using PS 2020, on MacBookPro. When saving PS images to JPEG, the compression feature is not reducing file sizes properly. Look at this screenshot, JPEG op set to zero, but displayed file size is huge. Anyone else experiencing this bug?
Explore related tutorials & articles
Copy link to clipboard
Copied
Not that huge. What is the image size in pixels, please?
Copy link to clipboard
Copied
Some times there is a lot of old Meta Data that is not needed. Try this script to delete it.
function deleteDocumentAncestorsMetadata() {
whatApp = String(app.name);//String version of the app name
if(whatApp.search("Photoshop") > 0) { //Check for photoshop specifically, or this will cause errors
//Function Scrubs Document Ancestors from Files
if(!documents.length) {
alert("There are no open documents. Please open a file to run this script.")
return;
}
if (ExternalObject.AdobeXMPScript == undefined) ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript");
var xmp = new XMPMeta( activeDocument.xmpMetadata.rawData);
// Begone foul Document Ancestors!
xmp.deleteProperty(XMPConst.NS_PHOTOSHOP, "DocumentAncestors");
app.activeDocument.xmpMetadata.rawData = xmp.serialize();
}
}
//Now run the function to remove the document ancestors
deleteDocumentAncestorsMetadata();
Copy link to clipboard
Copied
JJ: thanks, and sorry, not a geek, so just exactly HOW do I do this?
Copy link to clipboard
Copied
Compare image quality settings:
12 Max = 375K
0 Low = 338K
THAT’s a problem!
[cid:image001.png@01D6715A.4BDA95A0][cid:image002.png@01D6715A.4BDA95A0]
Copy link to clipboard
Copied
200x200px @ 300dpi
Compare image quality settings:
12 Max = 375K
0 Low = 338K
THAT’s a problem!
Copy link to clipboard
Copied
These numbers do seem to show it may be the metadata thing. I wonder, is this a file you edit again and again and again, pasting or placing new layers or graphics and saving a new copy? Each time you do that, the file grows.
Copy link to clipboard
Copied
Indeed I do multiple saves, using it as a template, but I delete each new imported image after saving it. Seems like there should be some automatic cache or metadata clearing feature here.
Copy link to clipboard
Copied
I agree, there should be some clean up when the imported image is deleted. But there isn't, so far as I know.
Copy link to clipboard
Copied
The problem is not the image itself, but excessive metadata in the file. This can happen with files from unknown sources that have been copy/pasted a huge number of times. Each paste leaves a record in metadata. This can sometimes accumulate to astonishing sizes.
If you don't want to get into scripts, a much easier way is to use Export or Save For Web. Both will strip out metadata and solve the problem.
Copy link to clipboard
Copied
Does Export retain DPI? Because Save For Web does not.
Copy link to clipboard
Copied
Thanks. Exporting seems to clear the problem.
Copy link to clipboard
Copied
thanks for this🥳 saved my day
Copy link to clipboard
Copied

