프로그램 사용2018. 2. 27. 09:47

증상 : 이미지 크기가 작은데 이상하게 PSD 파일 용량이 큼

원인 : 특정 이미지에서 얻어온 EXIF 정보 중 XMP 데이터 오염(?)

자세히 : photoshop:DocumentAncestors하위의 rdf:Bag 세부 내용이 넘쳐남

<?xpacket begin="" id="..."?>

<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.0-c060 61.134777, 2010/02/12-17:32:00        ">

   <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">

      <rdf:Description rdf:about=""

            xmlns:xmp="http://ns.adobe.com/xap/1.0/">

         <xmp:CreatorTool>Adobe Photoshop CC 2014 (Windows)</xmp:CreatorTool>

         <xmp:CreateDate>2018-02-27T09:17:54+09:00</xmp:CreateDate>

         <xmp:MetadataDate>2018-02-27T09:17:55+09:00</xmp:MetadataDate>

         <xmp:ModifyDate>2018-02-27T09:17:55+09:00</xmp:ModifyDate>

      </rdf:Description>

      <rdf:Description rdf:about=""

            xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/">

         <photoshop:ColorMode>3</photoshop:ColorMode>

         <photoshop:ICCProfile>sRGB IEC61966-2.1</photoshop:ICCProfile>

         <photoshop:DocumentAncestors>

            <rdf:Bag>

               <rdf:li/>

               <rdf:li>0</rdf:li>

               <rdf:li>...</rdf:li>

               <rdf:li>...</rdf:li> 



해결방법

1. PSD 파일

File - Script - Script Events Manager


remove.jsx 로 저장 후(adobe javascript) export나 save에 연결해주면 끝!

// https://forums.adobe.com/message/8511978#8511978

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

[링크 : http://prepression.blogspot.com/2017/06/metadata-bloat-photoshopdocumentancestors.html]

  [링크 : https://forums.adobe.com/thread/2340460]


2. JPEG 파일

File - Save as Web - Metadata : None

[링크 : https://photographylife.com/how-to-delete-exif-data]



+

해결하고 나서 보긴 했는데 댓글에 조금 도움이 되는 내용 있음

[링크 : https://brunch.co.kr/@mrlees/9]

Posted by 구차니