Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

JPEG compression not working when saving documents

Explorer ,
Aug 12, 2020 Aug 12, 2020

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? 

2.0K
Translate
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
Adobe
LEGEND ,
Aug 12, 2020 Aug 12, 2020

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

Translate
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 12, 2020 Aug 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
Translate
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 13, 2020 Aug 13, 2020

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

Translate
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 13, 2020 Aug 13, 2020
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]
Translate
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 13, 2020 Aug 13, 2020

200x200px @ 300dpi

 

Compare image quality settings:

12 Max = 375K

0 Low = 338K

THAT’s a problem!

marklucas_1-1597328040932.pngexpand image

 

marklucas_2-1597328040933.pngexpand image

 

Translate
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

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.

Translate
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 13, 2020 Aug 13, 2020

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. 

Translate
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

I agree, there should be some clean up when the imported image is deleted. But there isn't, so far as I know.

Translate
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

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.

Translate
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 13, 2020 Aug 13, 2020

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

Translate
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

Thanks. Exporting seems to clear the problem.

Translate
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
New Here ,
Jun 26, 2024 Jun 26, 2024

thanks for this🥳 saved my day

Translate
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 ,
Jun 26, 2024 Jun 26, 2024
LATEST
Translate
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