当前位置: 首页 > news >正文

如何能把网站做的更大福建省建设执业资格管理注册中心网站

如何能把网站做的更大,福建省建设执业资格管理注册中心网站,wordpress qq登录微信,建站价格会差原因#xff1a;美术提交大量2048x2048的贴图#xff0c;导致工程臃肿。 方案#xff1a;使用photoshop的javascript脚本批量把指定的文件夹以及所有子文件夹的贴图进行压缩。 脚本中指定针对2048x2048的贴图进行处理。 // Photoshop JavaScript to resize TGA images with…原因美术提交大量2048x2048的贴图导致工程臃肿。 方案使用photoshop的javascript脚本批量把指定的文件夹以及所有子文件夹的贴图进行压缩。 脚本中指定针对2048x2048的贴图进行处理。 // Photoshop JavaScript to resize TGA images with specific resolution // and process all subfolders// Change the folder path to the folder containing your TGA images var inputFolder Folder.selectDialog(Select the root folder containing TGA images);// The target resolution var targetWidth 2048; var targetHeight 2048;// The new size (change these values to what you need) var newWidth 1024; var newHeight 1024;// Function to recursively process a folder function processFolder(folder) {var files folder.getFiles();for (var i 0; i files.length; i) {var file files[i];if (file instanceof Folder) {// Call the function recursively if its a folderprocessFolder(file);} else if (file instanceof File file.name.match(/\.(tga)$/i)) {// Process TGA filesvar doc open(file);// Check if the image resolution matches the target resolutionif (doc.width targetWidth doc.height targetHeight) {// Resize the imagedoc.resizeImage(UnitValue(newWidth,px), UnitValue(newHeight,px), null, ResampleMethod.BICUBIC);// Save the document in TGA formatvar saveOptions new TargaSaveOptions();saveOptions.resolution TargaBitsPerPixels.THIRTYTWO; // or choose EIGHT, SIXTEEN, or TWENTYFOURsaveOptions.alphaChannels true; // Set to false if you dont need alpha channels// Save and close the documentdoc.saveAs(file, saveOptions, true, Extension.LOWERCASE);doc.close(SaveOptions.DONOTSAVECHANGES);} else {// Close the document without savingdoc.close(SaveOptions.DONOTSAVECHANGES);}}} }// Run the function if a folder was selected if (inputFolder) {processFolder(inputFolder);alert(Processing complete!); }请按照以下步骤使用此脚本 打开文本编辑器如Notepad或TextEdit。将上述代码复制并粘贴到文本编辑器中。根据您的需求修改newWidth和newHeight变量来设置新的尺寸。将文件保存为扩展名为.jsx的文件例如resizeTGA.jsx。打开Photoshop。选择“文件” “脚本” “浏览”并选择您保存的.jsx文件来运行脚本。 确保在运行脚本之前备份您的图片。此外根据您的Photoshop版本和设置您可能需要在Photoshop的“首选项”中启用“允许脚本操作”选项。
http://www.dnsts.com.cn/news/117548.html

相关文章:

  • 网站配资公司网站工业设计公司如何运营
  • 微软做网站软件网站内页可以做关键词优化吗
  • 枣阳网站定制企业信用信息查询公示系统河北
  • 深圳网站优化效果网站建设功能文档
  • 网站内容框架做外国网用哪些网站
  • 做网站后端需要什么语言珠海网络营销外包收费情况
  • 响应式网站外包公司网站备案需要哪些资料
  • 什么网站备案容易审核建设文库网站
  • 微网站制作方案室内设计师联盟账号
  • 男人和女人做不可描述的事情的网站宝塔建站详细教程
  • 网站如何建设移动端wordpress小工具最近评论
  • 加强社区网站建设重装电脑后下载wordpress
  • 山东省住房城乡和建设厅网站本地门户网怎么做
  • 做备案的网站公司网站 自己是空间服务商 cms
  • 中山建设银行招聘网站阿里云的wordpress建站
  • 购物网站建设需求美食分享网站设计
  • 设计师门户网站源码众划算网站开发
  • 天台县网站建设哪家好怎么优化网站代码
  • 个人网站备案怎么写开发公司网站建设
  • 6电商网站建设汽车配件外贸出口公司
  • 莞城微信网站建设wordpress 测评
  • 给女朋友做网站 知乎一起做财经网站
  • 自己做网站表白聊城门户网站
  • 对网站建设好学吗wordpress3.6
  • 影楼网站推广长春火车站官网
  • 衡水做网站企业网站开发外包
  • 温州高端网站建设公司租号网站怎么做
  • 绵阳做网站优化客户资源软件
  • 网站建设论文源代码建博会广州网站
  • 建网站开发费用可以做游戏可以视频约会的网站