photoshop

Command line manipulation of PhotoShop images

99封情书 提交于 2019-11-29 21:15:26
问题 Are there any tools for editing PhotoShop files from a command line? I would like to add steps to our automated build process (MS Build) that takes original PhotoShop files that our artists make and produce .png files; I'm looking at a very few operations like photoshop-to-png, resize and possibly showing/hiding layers. I haven't had a lot of luck finding a tool I can use for this. If it is possible to script this with Photoshop itself, or a Photoshop utility, that'd be awesome. 回答1: You've

How to extract text from a PSD file?

我的未来我决定 提交于 2019-11-29 16:41:26
问题 I need to extract the text from the layers in a photoshop PSD file on linux. Does anyone know how to do that? Gimp rasterizes the text and you can't copy and paste it. Also, note that I do not own the Photoshop program. 回答1: Have you tried using vim? VIM comes with a flag that lets you edit a binary file. I tried editing a PSD file with: vim -b file.psd This is an example of what I got when editing the file: <dict> <key>com.apple.print.PageFormat.PMAdjustedPageRect</key> <array> <real>0.0<

Launch photoshop action using code

邮差的信 提交于 2019-11-29 14:57:08
问题 Is it possible to launch Photoshop action using code? I mean launch the action in Photoshop via a batch file? Or something like that? 回答1: Newer versions of Photoshop (CS5 and CS6 are the only ones I've worked with) support a feature called Droplets that lets you create executables to run a set of actions. Check here for detailed information on creating and running the droplet. Will update this answer with the steps shortly. 回答2: I believe so but I have not tried it myself. The PS6 JavaScript

CSS equivalent to Photoshop's Justify-All

拟墨画扇 提交于 2019-11-29 14:34:17
问题 I'd like to take an h2 element and span it's text across the width of it's div. text-align:justify; only spreads the text if it's width is greater than the width of it's container... kind of like Photoshop's justify-left 回答1: CSS: h2 {text-align: justify;} h2 span {width: 100%; display: inline-block;} HTML: <h2>This is a h2 heading<span></span></h2> Note that this adds a unvisible extra line, resulting in too much height. You might want to compensate for that: h2 {text-align: justify; height:

Drawable folders for high resolution handhelds

自闭症网瘾萝莉.ら 提交于 2019-11-29 10:57:20
I can't figure out how to produce drawables for the new "high-res" handhelds like the Galaxy Nexus, One X, Galaxy S3 etc that have a resolution of 1280x720 or higher. I always try to make as few layout-versions as possible. Preferably just one but at times a layout-long and notlong is necessary. And make the xml smart enough to handle all devices. But that's only possible if the drawable resources are there to supply all the different resolutions and sizes. All has been nice and smooth until the new big phones arrived and I find that the drawables are to small for them. No xxhdpi-folder yet

Font looks different on photoshop and at website

ぐ巨炮叔叔 提交于 2019-11-29 09:57:43
Simple question: Why this 2 fonts looks different at photoshop and at website. At this picture - this first text is from html code, second is an image from photoshop. The same font, the same size - 30. But this first looks more "bold" than second. Why? I want to have a identically font as it is at photoshop (second picture). Here css code: @font-face { font-family: "SegoeWP"; src: url("fonts/play/SegoeWP.eot"); src: url("fonts/play/SegoeWP.eot?#iefix") format("embedded-opentype"), url("fonts/play/SegoeWP.woff") format("woff"), url("fonts/play/SegoeWP.ttf") format("truetype"), url("fonts/play

Do PNGs (or JPGs) have a DPI? Or is it irrelevant when building for retina?

六眼飞鱼酱① 提交于 2019-11-29 09:32:14
A simple question that I have been having great difficulty finding a definitive answer to: do PNG files have a DPI? Or perhaps more importantly, is it even relevant when building retina-enabled sites/apps? I've just received PSD assets from our designer for a retina iPad app that I must convert into HTML for display within the app. Typically, I receive such files as 2048x1536 @ 72 DPI -- double size but standard screen DPI. I then typically use CSS to tell the browser how to display it. But this time the designer was instructed to provide his PSDs at 1024x768 @ 144 DPI (standard size but

Create Layered Tif with Java for use in Photoshop

喜欢而已 提交于 2019-11-29 08:20:34
I'm interesting in creating a layered tif with Java in a way that Photoshop will recognize the layers. I was able to create a multi-page tif , but Photoshop does not recognize the pages as layers. The pages are viewable with Acrobat though. Anyone know how Photoshop stores tif layer data and how that could be generated with Java? Thanks. I have researched this for my TIFF ImageIO plugin , and as far as I understand, the way Photoshop stores layer information in TIFFs is completely proprietary and not using standard TIFF mechanisms, like multi-page documents utilizing linked or nested IFDs (

How can I correct color banding in windows phone 7?

时间秒杀一切 提交于 2019-11-29 04:36:19
My windows phone 7 app has very nice background images but they are being destroyed by color banding on a 16bit color device. Is there a way I can correct this? I have tried saving in several different modes in photoshop to no avail. You need to use dithering. Floyd-Steinberg is a good algorithm that is simple and runs fast. You don't need to go to 8 bits per pixel as suggested by another answer, you can go directly to 16 bits per pixel. You need to know how it is split into R/G/B before you begin. Here are some examples, first up is the original 24-bit: Next is a 16-bit without dithering:

iOS: Values for CIFilter (Hue) from Photoshop

大憨熊 提交于 2019-11-29 02:39:38
I am using the Hue filter to change the hue of an image: CIFilter* hueFilter = [CIFilter filterWithName:@"CIHueAdjust" <blah blah> [NSNumber numberWithFloat:hue], nil]; I have the Hue number I wish to use from Photoshop , but it doesn't correspond to the results I get from iOS. Is there a rule to change the number in PhotoShop to the number I should use in iOS ? The Hue in HSL/HSV color mode is an angular coordinate. In Photoshop, it is given in degrees (-180 to +180). In the CIHueAdjust filter, the angle is given in radians. From http://developer.apple.com/library/ios/#documentation