photoshop

Photoshop scripting: changing text of a text layer

放肆的年华 提交于 2019-12-03 06:24:56
Because I don't have enough time to learn all about PS-Scripting, I was wondering, if you may help me. It's very simple. I want to have a JS-Script, which changes the Text of the Top Layer . For example: The Text is "#005", the script should add 1, so it says "#006". After that, it should export (Save for Web & Devices w. transparency @ 1280x720) the file with the current number (006). Here's a screen of the layers ( omg its in german!!11 ): imageshack.us/photo/my-images/706/helpal.png EDIT for downvoters: Please , for the sake of helping the community and avoiding misleading/wrong information

How to write text to a text file by Photoshop JavaScript?

拟墨画扇 提交于 2019-12-03 06:02:16
I took a look at Photoshop CS5 Scripting Guide and Photoshop CS5 JavaScript Reference , but I couldn't find out a method to write text to a plain text file. Is there any way to do that? I want to record the value of bounds of each layer object in a document. Any hint? nobody File system access is documented in Adobe's JavaScript Tools Guide (PDF) . Download the PDF file and check out the "File System Access" section. This works for me, saves text with the same name as original document, but with extension txt : function saveTxt(txt) { var Name = app.activeDocument.name.replace(/\.[^\.]+$/, '')

Jquery JSON Flickr API Returning Photos in a Set

若如初见. 提交于 2019-12-03 05:13:58
问题 I am trying to get a specified set from Flickr and then display the images in that set using the JSON and REST API. Here is the code I am using: $.getJSON("http://api.flickr.com/services/rest/?method=flickr.photosets.getPhotos&api_key=xxx&set=72157623858739780&format=json&jsoncallback=?", function(data){ $.each(data.items, function(i,item){ $("<img/>").attr("src", item.media.m).appendTo("#images"); }); }); I removed the api key from the example. The url with my key in it, when typed into my

How to create 9 patch in Photoshop? What is 9.png encoding? [closed]

主宰稳场 提交于 2019-12-03 05:06:41
问题 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 7 years ago . Provided utility looks bad, for example it does not allow to do "Save As", or to draw several button states with similar slicing. Is it possible to draw 9.png in photoshop? I noticed, that generated png just contains black pixels in outer edge. Is this what is marking the slices? What if black pixels present in

OpenCV and Unsharp Masking Like Adobe Photoshop

为君一笑 提交于 2019-12-03 05:06:08
I am trying to implement unsharp masking like it's done in Adobe Photoshop. I gathered a lot of information on the interent but I'm not sure if I'm missing something. Here's the code: void unsharpMask( cv::Mat* img, double amount, double radius, double threshold ) { // create blurred img cv::Mat img32F, imgBlur32F, imgHighContrast32F, imgDiff32F, unsharpMas32F, colDelta32F, compRes, compRes32F, prod; double r = 1.5; img->convertTo( img32F, CV_32F ); cv::GaussianBlur( img32F, imgBlur32F, cv::Size(0,0), radius ); cv::subtract( img32F, imgBlur32F, unsharpMas32F ); // increase contrast( original,

“Console.log” with Photoshop Scripting - ExtendedScript Toolkit

我与影子孤独终老i 提交于 2019-12-03 04:13:51
I'm doing a bit of Photoshop scripting for the first time and it sure would be great to have a console.log-like function to output array and object values in the Javascript console of the ExtendScript Toolkit App . Is there an equivalent function? Daniel Serodio $.writeln() is what you're looking for. See the JavaScript Tools Guide (PDF) for details. write("any message"); Is what works in XTools for Photoshop. I find that the Photoshop debugger crashes all the time in CS6 on Mac OSX. You can find more about XTools here: http://ps-scripts.sourceforge.net/xtools.html . It's fabulous! I'm using

Is it possible to make a torn paper effect on edges of a picture

假如想象 提交于 2019-12-03 03:09:25
Update 3 Hi guys, I updated the code ( http://codepen.io/anon/pen/VYRJLp ) and now the edges look really like torn paper effect. It uses SVG by the way. The Only problem is I don't know how to make the image as the background of the svg AT THE SAME TIME maintain the torn-paper-like edges. Please have a look it. Any efforts are appreciated. Update 2 It seems that it is impossible to achieve this effect without the help of PhotoShop(PS), so I would like to add PS as a part of solution. I am not a PS expert, but from a quick thought, I think there are a few steps I need to do: Use PS to create a

Turn photoshop design into Java GUI

馋奶兔 提交于 2019-12-03 02:59:47
I can't seem to find anybody who has done or posted something like this; Essentially I want to design my own UI in photoshop and then slice down the images to use it in a Java application. Essentially coding in the PSD file as the GUI. Is this possible? If so, can anybody lead me in the right direction? I'm not sure what editor to use for this sort of stuff. I am using the Eclipse IDE and I know there is a Visual Editor but, I already have the actual design for every component in a PSD file. All I want to do is to start incorporating this into the application. Thanks. Durandal It depends on

How does Content-Aware fill work?

99封情书 提交于 2019-12-03 02:46:28
问题 In the upcoming version of Photoshop there is a feature called Content-Aware fill. This feature will fill a selection of an image based on the surrounding image - to the point it can generate bushes and clouds while being seamless with the surrounding image. See http://www.youtube.com/watch?v=NH0aEp1oDOI for a preview of the Photoshop feature I'm talking about. My question is: How does this feature work algorithmically? 回答1: I am a co-author of the PatchMatch paper previously mentioned here,

Photoshop Custom Shape to SVG path string

妖精的绣舞 提交于 2019-12-03 02:44:30
问题 Is there any way to get the SVG path string off a Photoshop custom shape or path? Or is there another way to get/construct similar data? I'm looking to do something similar to this: http://raphaeljs.com/icons/ 回答1: Update: in recent versions of Photoshop, there is a built-in option to export the image as SVG, which works well on paths and custom shapes. Just do: File -> Export -> Export as... and select SVG in the file settings. Original Answer: Starting from Photoshop CC 14.2, you can create