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

公司做网站需要什么内容百度快照优化seo

公司做网站需要什么内容,百度快照优化seo,网站推荐几个免费的,网页小游戏代码原因:美术提交大量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.dt0577.cn/news/30454.html

相关文章:

  • 导航网站织梦模板合肥网络营销公司
  • 网站制作推荐新鸿儒企业网站推广优化
  • 网站运营专员做六休一二手交易平台
  • 网乐科技网站建设一站式网站建设
  • 网站建设公司平台友情链接交易平台源码
  • 产业园门户网站建设方案北京seo地址
  • 三门峡高端网站开发网络推广平台有哪些公司
  • 中国建设银行网站类型镇江关键字优化公司
  • 专业北京网站建设公司哪家好百度收录入口
  • 海南网站建设监理小程序怎么开发
  • wordpress 排除置顶免费下优化大师
  • 类似wordpress北京seo网站管理
  • 苹果浏览器怎么信任网站设置在百度上怎么打广告
  • wordpress 注册连接网站搜索引擎优化
  • 株洲做网站公司2023年7 8月十大新闻
  • 网站源码怎么弄西安网站建设公司排行榜
  • 网上做网站手机网站模板下载
  • 深圳建网站服务公司推广咨询
  • 做药物分析必须知道的网站企业推广是什么意思
  • 做二手车网站需要什么手续费最新网站发布
  • 网站制作完成需要进行哪些测试seo有哪些经典的案例
  • wordpress主题DUX大前端怎么做网站关键词优化
  • wordpress 报表图形国家优化防控措施
  • 上海营销型网站标准有趣的软文
  • 沈阳微信网站制作成品短视频app下载有哪些
  • 网站后台插件下载杭州seo
  • 长沙科技网站设计哪家专业谷歌搜索排名
  • 做网站什么是三网合一网络营销策略方案
  • 德州营销型网站网络推广外包流程
  • 最牛黑客做的白粉交易网站杭州网站推广优化