psd

Extract layers from PSD with ImageMagick, preserving layout

烈酒焚心 提交于 2019-12-31 08:03:46
问题 I'm using ImageMagick to extract layers from a PSD, and it gets them all out fine with: convert image.psd image-%d.png But the resulting PNG images are of varying dimensions, depending on the actual contents of the layer. What I'd like is to extract all the layers, but have them all the same size, so that I can easily lay them on top of each other later, and have everything line up just as it did in the original PSD. If it helps to visualise it, this is what I'm currently getting with the

Editing Photoshop PSD text layers programmatically

穿精又带淫゛_ 提交于 2019-12-29 03:22:10
问题 I have a multi-layered PSD, with one specific layer being non-rasterized text. I'm trying to figure out a way I can, from a bash/perl/python/whatever-else program: load the PSD edit the text in said layer flatten all layers in the image save as a web-friendly format like PNG or JPG I immediately thought of ImageMagick, but I don't think I can edit the text layer through IM. If I can accomplish the first two steps some other programmatic way, I can always use ImageMagick to perform the last

Creating a triangle in css with a gradient background

家住魔仙堡 提交于 2019-12-19 03:17:06
问题 I am trying to create a triangle in css with a gradient background. I have not had any success as yet. Is there way to do this to bring off this effect seen in the image below. (The triangle that is attached to the Wrong password error box.) Design in Photoshop This is the design I have so far in HTML and CSS. Here is the css I have for the triangle at the moment. .error-triangle { wwidth: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-right:

psd file format

偶尔善良 提交于 2019-12-18 02:41:30
问题 I am attempting to find documentation of the psd file format so I can read in a .psd and then save out the individual layers as files, along with do other modifications. Does anyone know of any document in on the .psd file format? (Just for reference, I will be writing this in C++) If there are any code examples of loading a .psd file in C++ then I would appreciate them being linked. (Please not turn this into a "just use XXX software". This is not homework, or anything related to that. I am

How to create a layered PSD file from command line?

给你一囗甜甜゛ 提交于 2019-12-17 15:25:48
问题 I need to create a layered PSD file with ImageMagick or any other command-line tool available on Linux platform. Since I need to do this on Linux server, I can't use Photoshop scripting. The ImageMagick command below creates PSD file with a single layer, where two images (here: plasma fractals) are positioned one below another. (I use ImageMagick 6.5.3-10 2009-07-31 Q16, latest available in MacPorts.) convert -size 100x100 plasma:fractal plasma:fractal -append out.psd How do I create a PSD

PSD.JS Parsing the color of a text layer

倖福魔咒の 提交于 2019-12-13 03:01:40
问题 I am using PSD.JS (a photoshop PSD file parser for NodeJS and browsers) to parse a few PSD files. When the parser extracts the information for a text layer, the color information is returned as an array. e.g: colors": [ [ 102, 0, 255, 0, 255 ], [ 102, 0, 255, 0, 255 ] ] But the array contains 5 values instead of 3 for RGB or 4 for CMYK. Please can somebody help me understand why the color is represented with 5 values? And is there a way to convert this into RGB equivalent? I am pretty sure

looking for java library to work with PSD format [closed]

做~自己de王妃 提交于 2019-12-12 08:43:50
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I'm looking for a java library to work with PSD format(Photoshop). Any ideas? 回答1: Probably very late, but as this page is pretty high ranked on google when searching "java psd library" I'll share my experience. -As Boris said the java-psd-library is read only. It has trouble reading recent CS4 format. If you

psd Image creation with layer properties using CGImageRef

戏子无情 提交于 2019-12-11 18:24:17
问题 Working in Mac OSX, Cocoa I have an psd image with layered property. I want to crop it to the crop rect and save this cropped image with the settings of original image. I am using CGImageRef for all the image related operations. I have enclosed the code i used to crop the image is given below. But it fails to create the layered image. NSImage *img = [[NSImage alloc]initWithContentsOfFile:imagePath]; NSBitmapImageRep *rep = [[NSBitmapImageRep alloc] initWithData:[img TIFFRepresentation]];

How to create Android layout matches pixel to pixel from PSD?

前提是你 提交于 2019-12-11 11:48:49
问题 If you look at the Question text then it sounds duplicate but I am facing different problem here. I have couple of psd (given by designer). Now I need to convert them into Android layout . So, I followed the following approach: Let's assume the size of App Bar in psd is 94 px x 747px (height x width). Now I convert this px to dp using this tool. Let's assume I am creating layout for Nexus 5 , xxhdpi device. In tool I entered the value of px in the front of xxhdpi which get converted into 33.3

matlab实现功率谱密度分析psd及详细解说

时光毁灭记忆、已成空白 提交于 2019-12-10 17:36:16
1.直接法: 直接法又称周期图法,它是把随机序列x(n)的N个观测数据视为一能量有限的序列,直接计算x(n)的离散傅立叶变换,得X(k),然后再取其幅值的平方,并除以N,作为序列x(n)真实功率谱的估计。 Matlab代码示例: clear; Fs=1000; %采样频率 n=0:1/Fs:1; %产生含有噪声的序列 xn=cos(2*pi*40*n)+3*cos(2*pi*100*n)+randn(size(n)); window=boxcar(length(xn)); %矩形窗 nfft=1024; [Pxx,f]=periodogram(xn,window,nfft,Fs); %直接法 plot(f,10*log10(Pxx)); 2.间接法: 间接法先由序列x(n)估计出自相关函数R(n),然后对R(n)进行傅立叶变换,便得到x(n)的功率谱估计。 Matlab代码示例: clear; Fs=1000; %采样频率 n=0:1/Fs:1; %产生含有噪声的序列 xn=cos(2*pi*40*n)+3*cos(2*pi*100*n)+randn(size(n)); nfft=1024; cxn=xcorr(xn,'unbiased'); %计算序列的自相关函数 CXk=fft(cxn,nfft); Pxx=abs(CXk); index=0:round(nfft/2-1);