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

如何能把网站做的更大做网站哪个公司好

如何能把网站做的更大,做网站哪个公司好,公司以前做的免费网站太多 新网站搜索不到,wordpress更新文章未找到页面原因:美术提交大量2048x2048的贴图,导致工程臃肿。 方案:使用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 it's 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 don't 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!");
}

请按照以下步骤使用此脚本:

  1. 打开文本编辑器,如Notepad或TextEdit。
  2. 将上述代码复制并粘贴到文本编辑器中。
  3. 根据您的需求,修改newWidth和newHeight变量来设置新的尺寸。
  4. 将文件保存为扩展名为.jsx的文件,例如resizeTGA.jsx。
  5. 打开Photoshop。
  6. 选择“文件” > “脚本” > “浏览”并选择您保存的.jsx文件来运行脚本。

确保在运行脚本之前备份您的图片。此外,根据您的Photoshop版本和设置,您可能需要在Photoshop的“首选项”中启用“允许脚本操作”选项。

http://www.15wanjia.com/news/196500.html

相关文章:

  • 网站所有页面湘潭优化公司
  • 大连建站免费模板cms网站栏目介绍
  • 标志在线设计网站免费英文网站建设
  • 怎么做网站能够增加人气中国企业网信息网
  • 基于php的网站开发厦门网站建设和人才库建设
  • 好的结构设计网站WordPress好看的博客主题有哪些
  • 做视频网站盈利多少视频拍摄报价单
  • 如何办个网站wordpress作品
  • 襄垣城乡建设管理局的网站wordpress汉语插件
  • 哈尔滨市营商环境建设监督局网站潍坊 企业网站建设
  • 电子政务与网站建设的经验外贸网站建设便宜
  • 网站建设需要提供什么资料学校网站 aspx源码
  • 哪个行业建设网站的需求多广东中南建设有限公司网站
  • 站长工具seo综合查询怎么用东莞网络推广服务外包
  • 网站建设 做一个网站需要多少钱广州建设公司平台
  • 做网站的目标是什么电话营销技巧和营销方法
  • 推广普通话 奋进新征程关键词搜索优化公司
  • 网站虚拟域名wordpress注册页制作
  • 资讯网站的好处史志办干地情网站建设
  • 苏州企业网站设计制作专门做调研的网站
  • 江门网站开发室内设计效果图 装修
  • 保定网站制作企业内网网站建设方案
  • 东莞网站建设seo推广软件网站免费
  • 帮企业建网站公司微网站制作
  • 邢台网站建设厂家安卓优化大师旧版
  • 知名企业网站人才招聘情况网站设计项目建设内容
  • 如何建网站费用多少免费邮箱注册入口
  • 西安制作网站公司简介网站建设宣传ppt模板下载
  • 番禺建网站蓬业东莞网站建设技术支持
  • 泉州公司做网站团支部智慧团建网站