Skip to main content
Participating Frequently
August 12, 2020
Question

JPEG compression not working when saving documents

  • August 12, 2020
  • 3 replies
  • 2350 views

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? 

This topic has been closed for replies.

3 replies

Stephen Marsh
Community Expert
Community Expert
June 26, 2024
D Fosse
Community Expert
Community Expert
August 13, 2020

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.

marklucasAuthor
Participating Frequently
August 13, 2020

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

Legend
August 12, 2020

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

JJMack
Community Expert
Community Expert
August 12, 2020

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
marklucasAuthor
Participating Frequently
August 13, 2020

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