Adobe Photoshop 26.3.0脚本:一键为图片添加复古仿富士胶片滤镜效果!
以下是一个适用于Adobe Photoshop 26.3.0的脚本代码,用于为图片添加复古的仿富士胶片滤镜效果。这个脚本将直接在Photoshop中运行,不需要外部插件或资源。 ```javascript // 复古仿富士胶片滤镜效果脚本 var doc = app.activeDocument; // 添加色阶调整层 var levels = doc.artLayers.add(); levels.kind = LayerKind.ADJUSTMENT; levels.name = "Levels"; var levelsRef = doc.activeLayer; var levelsAdjustment = levelsRef.levels; // 设置色阶参数 levelsAdjustment.inputLevels = [0, 1.00, 255]; levelsAdjustment.gamma = 1.20; // 添加曲线调整层 var curves = doc.artLayers.add(); curves.kind = LayerKind.ADJUSTMENT; curves.name = "Curves"; var curvesRef = doc.activeLayer; var curvesAdjustment = curvesRef.curves; // 设置曲线参数 curvesAdjustment.addPoint(0, 0); curvesAdjustment.addPoint(255, 255); curvesAdjustment.addPoint(85, 60); curvesAdjustment.addPoint(170, 190); // 添加色相/饱和度调整层 var hueSaturation = doc.artLayers.add(); hueSaturation.kind = LayerKind.ADJUSTMENT; hueSaturation.name = "Hue/Saturation"; var hueSaturationRef = doc.activeLayer; var hueSaturationAdjustment = hueSaturationRef.hueSaturation; // 设置色相/饱和度参数 hueSaturationAdjustment.hue = 0; hueSaturationAdjustment.saturation = -15; hueSaturationAdjustment.lightness = 0; // 添加照片滤镜调整层 var photoFilter = doc.artLayers.add(); photoFilter.kind = LayerKind.ADJUSTMENT; photoFilter.name = "Photo Filter"; var photoFilterRef = doc.activeLayer; var photoFilterAdjustment = photoFilterRef.photoFilter; // 设置照片滤镜参数 photoFilterAdjustment.color = new SolidColor(); photoFilterAdjustment.color.rgb.red = 255; photoFilterAdjustment.color.rgb.green = 220; photoFilterAdjustment.color.rgb.blue = 180; photoFilterAdjustment.density = 25; photoFilterAdjustment.preserveLuminosity = true; // 添加颗粒效果 var grain = doc.artLayers.add(); grain.name = "Grain"; grain.applyAddNoise(10, NoiseDistribution.GAUSSIAN, true); // 合并所有调整层 doc.mergeVisibleLayers(); // 保存并关闭文档 doc.save(); doc.close(); ``` 注意事项: 1. 在运行脚本之前,请确保你已经打开了想要处理的图片。 2. 脚本中的参数可以根据你的具体需求进行调整,以达到最佳的复古效果。 3. 如果你对脚本中的某些参数不熟悉,建议先备份原始图片,以免误操作导致不可逆的修改。 ######[AI写代码神器 | 660点数解答 | 2025-03-03 18:34:53]
- Adobe Photoshop 26.3.0:脚本代码实现图片复古仿富士胶片滤镜效果(DeepSeek | 553点数解答 | 2025-02-18 13:19:51)340
- Adobe Photoshop 26.3.0脚本:一键为图片添加复古仿富士胶片滤镜效果!(DeepSeek | 660点数解答 | 2025-03-03 18:34:53)267
- Photoshop 26.5.0:Python 脚本一键去除图片薄雾变清晰!(字节豆包 | 190点数解答 | 2025-04-29 11:20:37)348
- Adobe Photoshop 2022 脚本处理褪色照片的实现与开发建议(字节豆包 | 1011点数解答 | 2026-03-13 21:16:19)14
- 超甜!用 HTML 代码让你无法拒绝成为千一的恋人(DeepSeek | 1411点数解答 | 2025-07-26 08:37:17)196
- Adobe Photoshop 25.0.0:复古仿富士胶片滤镜脚本代码大揭秘!(字节豆包 | 261点数解答 | 2025-02-15 19:18:45)322
- jQuery 实现动态操作 DOM:打造可增删任务的待办事项列表应用(百度文心 | 1015点数解答 | 2024-10-26 23:41:22)431
- jQuery 打造实用待办事项列表:输入添加、点击删除一步到位!(阿里通义 | 1139点数解答 | 2024-10-29 08:44:48)351
- jQuery 实现动态操作 DOM:打造带添加与删除功能的待办事项列表应用(阿里通义 | 687点数解答 | 2024-10-29 09:25:06)357
- jQuery 实战:打造可添加与删除任务的待办事项列表应用(字节豆包 | 499点数解答 | 2024-10-29 20:40:48)274
- Adobe Photoshop 2020(21.2.7):附老旧照片修复上色JavaScript脚本及详细解析(DeepSeek | 642点数解答 | 2025-02-11 22:42:12)331
- 用Python脚本为Adobe Photoshop 2020修复并上色老旧照片!附代码及注意事项 (阿里通义 | 378点数解答 | 2025-02-11 22:44:26)248