當前位置:首頁>ps入門教程>ps基礎(chǔ)教程>技巧教程>教程內(nèi)容

保存技巧,完美解決PS導(dǎo)出文件過大的問題

來源:站酷 作者:黑亦 學(xué)習:47151人次

本篇教程和同學(xué)們分享一個小技巧,相信在PS做圖當中有時會遇到PS卡頓或者提示PS導(dǎo)出JPG文件過大的問題,那么此時同學(xué)們都是如何做的呢?把PS關(guān)了再開啟?把圖片大小縮小,其實都是不是這個原因,具體如何做可以解決,通過教程我們一起來學(xué)習一下吧,說不定遇到的問題一下就解決了呢。

教程素材://tgudhdp.cn/photoshop/sucai/2018/d488538.html

操作步驟:

1.

保存技巧,完美解決PS導(dǎo)出文件過大的問題_tgudhdp.cn

這是文件的尺寸,不大也不小

2.

保存技巧,完美解決PS導(dǎo)出文件過大的問題_tgudhdp.cn
tgudhdp.cn

導(dǎo)出jpg可以看到,目前一張jpg差不多42 M

3.

保存技巧,完美解決PS導(dǎo)出文件過大的問題_tgudhdp.cn

然后導(dǎo)入制作好的文件,通過腳本導(dǎo)入。導(dǎo)入后ps會卡頓一小會,等正常后文件就恢復(fù)正常了。(因為內(nèi)容問題,所以我把內(nèi)容覆蓋掉了)

4.

保存技巧,完美解決PS導(dǎo)出文件過大的問題_tgudhdp.cn

最后重新導(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é)習 · 提示

  • 一定要打開PS,跟著教程做一遍,做完的圖到這交作業(yè):提交作業(yè)
  • 建議練習時,大家自己找素材,盡量不要用教程提供的素材。
  • 教程有看不懂的地方,可以到論壇發(fā)帖提問:新手求助
  • 加官方微信,隨時隨地,想學(xué)就能學(xué):ps_bbs,或掃右側(cè)二維碼!
  • 關(guān)注我們學(xué)更多,每天都有新教程:新浪微博 抖音視頻 微信小程序
- 發(fā)評論 | 交作業(yè) -
最新評論
悸動的心2020-07-29 04:55
代碼有幾處錯誤: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();代碼注意分行。
青春、一個夢2020-04-05 02:21
錯誤

不要問我為什么2018-10-19 04:19
說是錯誤代碼
迷你小朋友-599502018-10-08 01:44
點贊
愛哭的小女孩酷2018-10-08 11:45
點贊

關(guān)注大神微博加入>>

網(wǎng)友求助,請回答!