photoshop

Writing binary file using in Extendscript. Incorrect file size

一个人想着一个人 提交于 2020-08-05 10:06:06
问题 Further to my question here I'm writing a list of hex colours to a binary file from within Photoshop using Extendscript. So far so good. Only the binary file written with the code below is 119 bytes. When cut and pasted and saved using Sublime Text 3 it's only 48 bytes, which then causes complications later on. This is my first time in binary land, so I may be a little lost. I suspect it's an either an encoding issue (which could explain the 2.5 file size), or doing something very wrong

Photoshop ScriptUI: Show a dialog window, close it, show it again gives an empty full size window

人走茶凉 提交于 2020-06-29 12:27:33
问题 In my script for Photoshop CC 2015 (Windows 10), written in JavaScript, I am processing all layers of the active document in a loop and want to show a setup dialog in each step. For simplification, take the following working example. The window is defined outside the loop, and among other steps which are stripped here, the window is shown once every step in the loop: #target photoshop var w = new Window('dialog', 'Title'); var b = w.add('button', undefined, 'OK'); for (var i = 0; i < 3; i++)

Possible to interact with a 64-bit COM server (Photoshop) from .NET?

走远了吗. 提交于 2020-04-07 19:09:27
问题 I've been trying to write some code to interact with Photoshop, both by adding a COM reference and by late binding. It took me a while to realise that the code did work, but not with the 64-bit version of Photoshop. The exception I get with 64-bit Photoshop is as follows: COMException was unhandled Retrieving the COM class factory for component with CLSID {D9389EDE-AEF8-4092-9377-075E94B7CB9A} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT:

Possible to interact with a 64-bit COM server (Photoshop) from .NET?

瘦欲@ 提交于 2020-04-07 19:05:55
问题 I've been trying to write some code to interact with Photoshop, both by adding a COM reference and by late binding. It took me a while to realise that the code did work, but not with the 64-bit version of Photoshop. The exception I get with 64-bit Photoshop is as follows: COMException was unhandled Retrieving the COM class factory for component with CLSID {D9389EDE-AEF8-4092-9377-075E94B7CB9A} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT:

Possible to interact with a 64-bit COM server (Photoshop) from .NET?

为君一笑 提交于 2020-04-07 19:05:53
问题 I've been trying to write some code to interact with Photoshop, both by adding a COM reference and by late binding. It took me a while to realise that the code did work, but not with the 64-bit version of Photoshop. The exception I get with 64-bit Photoshop is as follows: COMException was unhandled Retrieving the COM class factory for component with CLSID {D9389EDE-AEF8-4092-9377-075E94B7CB9A} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT:

小蚂蚁学习PS切图之基础操作(1)——界面设置和移动工具选区工具

守給你的承諾、 提交于 2020-03-11 11:57:39
为什么要学习PS? 这要追溯到公元2014年12月31日晚,在制定15年计划的时候,头脑一热就把这一项写进了计划里。不过这也是有原因的,有时候需要做一点前端的时候,ps用不好确实很影响工作效率,虽然这在我平时工作中所占得比例并不是很大。今年需要完成的计划就剩下了两个,其中包括学习ps,眼看这一年又走到头了,简单学习一下ps基础,能为前端提供一些帮助就行。既然制定了这个计划,就把它完成,言出必行,这是我的忍道。 学习目标 * 能够自己使用ps从网页设计师提供的psd中获取网页前端开发过程中所需要的资源 * 对简单的ps操作有一个基本了解 * 可以做一些简单的图片处理和调整 * 提高自己的审美期美感的培养 一、界面设置 1. 新建:Ctrl+n 预设:web 大小:1920\*1080,但是web设计是不指定高度的。所以预设:自定义,大小:1920\*2000(高看情况)。 分辨率:72。颜色:RGB。背景:透明。 2. 移动工具设置 快捷键:v 建议:自动选择不打勾;自动选择后面的选项选择:图层;当选择的时候可以按住ctrl键选择图层。 3.视图设置 视图--显示--勾上智能参考线 标尺:打钩 选择ps切图最常用的四大功能:信息,字符,图层,历史记录 在信息右边--面板选择,标尺单位全部改为像素。颜色模式全部改为RGB模式。文档尺寸打钩。 编辑--首选项 单位全改为像素 ctrl

Photoshop 使用优化

不羁岁月 提交于 2020-02-29 07:51:05
一、 文件大小: ps文件大小:200 —300 MB/个; 二、 ps优化: 1、 Photoshop 安装32位(64位占用资源多); 2、 内存使用情况 : Photoshop是64位的本机应用程序,因此你为它提供多大的内存,它都可以使用的完。在处理较大尺寸的图像时,更多的内存将会更有利。默认情况下,Photoshop将会分配70%的内存让其使用,但是你可以通过菜单 编辑 > 首选项 > 性能 来改变这个数值。数值改变之后,重启Photoshop才会生效。这可能是提升Photoshop性能最有效的方式。 3、 使用暂存盘 : 当你的内存完全使用时,电脑的硬盘将会承载剩余的工作量。默认情况下,你的暂存盘为系统(启动)分区,通常系统分区已经负载了你的安装应用程序和操作系统。建议你增加所有空闲的硬盘作为暂存盘,在菜单 编辑 > 首选项 > 性能 下可打开暂存盘选项窗口,并且点击右方的上下箭头根据硬盘的使用情况进行优先级排序。 你可以在Photoshop的性能设置窗口分配并且进行优先排序。 4、 效率指示器 :( 重构同学可以忽略) 如果你在文档窗口的下方状态栏选择了效率,你可以看到Photoshop的效率级别。如果显示100%,意味着效率最高。你可以通过减少图层和智能对象的数量来提升效率,不过由于未保留可编辑的源图层,这样可能会破坏你的工作流程。 5、 高速缓存与历史记录 :