JPEG compression not working when saving documents

Community Beginner ,
Aug 12, 2020 Aug 12, 2020

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? 

Views

457

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 12, 2020 Aug 12, 2020

Copy link to clipboard

Copied

Not that huge. What is the image size in pixels, please?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 12, 2020 Aug 12, 2020

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(); 

 

 

JJMack

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 13, 2020 Aug 13, 2020

Copy link to clipboard

Copied

JJ: thanks, and sorry, not a geek, so just exactly HOW do I do this?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 13, 2020 Aug 13, 2020

Copy link to clipboard

Copied

200x200px @ 300dpi

Compare image quality settings:
12 Max = 375K
0 Low = 338K
THAT’s a problem!

[cid:image001.png@01D6715A.4BDA95A0][cid:image002.png@01D6715A.4BDA95A0]

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 13, 2020 Aug 13, 2020

Copy link to clipboard

Copied

200x200px @ 300dpi

 

Compare image quality settings:

12 Max = 375K

0 Low = 338K

THAT’s a problem!

marklucas_1-1597328040932.png

 

marklucas_2-1597328040933.png

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 13, 2020 Aug 13, 2020

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.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 13, 2020 Aug 13, 2020

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. 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 13, 2020 Aug 13, 2020

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.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 13, 2020 Aug 13, 2020

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.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 13, 2020 Aug 13, 2020

Copy link to clipboard

Copied

Does Export retain DPI? Because Save For Web does not.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 09, 2022 Aug 09, 2022

Copy link to clipboard

Copied

LATEST

Thanks. Exporting seems to clear the problem.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines