保存技巧,完美解決PS導(dǎo)出文件過大的問題
本篇教程和同學(xué)們分享一個小技巧,相信在PS做圖當(dāng)中有時會遇到PS卡頓或者提示PS導(dǎo)出JPG文件過大的問題,那么此時同學(xué)們都是如何做的呢?把PS關(guān)了再開啟?把圖片大小縮小,其實都是不是這個原因,具體如何做可以解決,通過教程我們一起來學(xué)習(xí)一下吧,說不定遇到的問題一下就解決了呢。
教程素材://www.theoat.com.cn/photoshop/sucai/2018/d488538.html
操作步驟:
1.
這是文件的尺寸,不大也不小
2.
導(dǎo)出jpg可以看到,目前一張jpg差不多42 M
3.
然后導(dǎo)入制作好的文件,通過腳本導(dǎo)入。導(dǎo)入后ps會卡頓一小會,等正常后文件就恢復(fù)正常了。(因為內(nèi)容問題,所以我把內(nèi)容覆蓋掉了)
4.
最后重新導(dǎo)出,可以看到文件已經(jīng)是370 K 了。
5.文件制作:
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 s cript.")
return;
}
if (ExternalObject.AdobeXMPs cript == undefined) ExternalObject.AdobeXMPs cript = new ExternalObject("lib:AdobeXMPs cript");
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();
用記事本粘貼以上代碼后另存,后綴改為JSX,即(名字.jsx)后打開問題文件,文件-腳本-瀏覽-載入JSX格式文件即可。
PS:如果怕該代碼文件會損壞到psd文件,可以備份使用。
同學(xué)們可以試一下,遇到的問題說不定就迎刃而解了呢。
學(xué)習(xí) · 提示
![](http://bbs.16xx8.com/uc_server/data/avatar/000/54/03/53_avatar_middle.jpg)
![](http://bbs.16xx8.com/uc_server/data/avatar/000/53/37/09_avatar_middle.jpg)
![](http://www.theoat.com.cn/1diy/imges/noavatar.gif)
![](http://www.theoat.com.cn/1diy/imges/noavatar.gif)
![](http://www.theoat.com.cn/1diy/imges/noavatar.gif)
相關(guān)教程