Tag Info

Hot answers tagged

11

Select the particular layers you want to save as a .png file press Ctrl+e (that'll merge them into a single layer) select all and copy press Ctrl+n to create new file. The default option in Photoshop is that the size of the new file will be the same as what you've in clip-board. In this case, it'll give you a size with the empty spaces trimmed. Now ...


8

You can create your own script if you want, here's a simple one: main(); function main(){ var Name = app.activeDocument.name.replace(/\.[^\.]+$/, ''); var Ext = decodeURI(app.activeDocument.name).replace(/^.*\./,''); if(Ext.toLowerCase() != 'psd') return; var Path = app.activeDocument.path; var saveFile = File(Path + "/" + Name ...


7

Adobe products allow you to use AppleScript, JavaScript, or VBScript to create scripts. Functionally, ExtendScript is very similar to JavaScript - think of it as JavaScript plus some extra features. Adobe provides a program to make scripts called ExtendScript Toolkit, which was most likely bundled with your install of Photoshop. On my computer it's in ...


5

You could do it in Acrobat with Export > Image > PNG In Photoshop it's more complex. When opening a PDF you can select all pages by holding shift. That way all pages open and the opened documents are named by page number. Exporting is a different thing though. You could start with the Automate > Batch and choose all open files as source, and using an ...


5

Yes, photoshop has something called actions. To use actions, go to Window -> Actions and create a new action. Then, do ONLY want you want you action to so (resize, duplicate, etc.) Once you have completed what you want your action to do, stop recording your action. Now, whenever you want, you can recall that action, and it will do the same thing, to ...


5

As I write code a lot too, I know your pain with this task. Luckily there are dozens of Sprite Generators out there. I don't even save the link, as you always find a fitting one soon. The above linked generator takes a ZIP file. Luckily they don't only give you the resulting sprite image/sprite, but write the CSS for you as well. Sidenote/Hint: Pay ...


4

No. There's no way to change it. You could simply look at the History Panel and click the step before you ran the script. Or, create snapshots (via History panel menu) and then click the snapshot you want.


4

Yes! Here's what you do. Open the Layer Comps window in photoshop. Click the snapshot button, hide your current layer, show the next layer, click the snapshot again. Create a layer comp snapshot for each state of your document that you want to have exported as individual files. Once you have all of those ready, go to File > Scripts > Layer Comps to Files. ...


4

You don't. The classes that are provided by the applications you are working with aren't extensible. But, what you can do to get around this is to create a record making use of Applescript's dynamic typing. set myLayerInformation to {layer:psLayerObj, fill color:fillColorObj, width:mWidth, height:mHeight} set targetLayer to layer of myLayerInformation ...


4

Keyboard shortcuts are your friend. http://www.shortcutworld.com/en/mac/Photoshop_CS5.html Remember, if you're on a PC, basically any command button in a short cut will be your Ctrl button. I have a very similar job editing photos for an ecommerce company, and shortcuts cut down the amount of time the job would've taken exponentially. Here's how I'd ...


3

You can script Photoshop to do things using using Ruby, Javascript, VB Script and Apple Script This tutorial is worth checking out: http://www.kirupa.com/motiongraphics/ps_scripting.htm


3

You are essentially looking to do what is called a Data Merge. Photoshop has this facility: see for instance ( http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-7417a.html#WSfd1234e1c4b69f30ea53e41001031ab64-7414a )


3

If I understood you correctly, you could do this: Select all the layers you want to blur and then go Cmd+G+Cmd+E ( Cmd+G isn't necessarily needed ) Take the Brush tool and Soft round brush ( round brush with 0 hardness ) and make the brush really big ( big enough to cover the whole area you want to blur ) Then run it across the area you want to blur while ...


3

You can look into using Adobe's 'Smart Objects'. Alternatively, consider FireWorks which has object templating abilities. Even better, stop mocking up individual web pages in PhotoShop. It's a workflow nightmare and only causes headaches for the timeline. ;)


3

The only thing I can think of to save a little time would be to create a simple Action that does the Convert to Smart Object and then Rasterizes it in one press but you'd still have to go through each layer individually hitting this button. Of course I'm not exactly sure off the top of my head what the practical use for doing this even is. What About.com ...


3

Although it's not automatic (you need to adjust it manually for each text), you can use Baseline Shift to 'imitate' a vertical centering:


3

What you'll want to use is: textItem.position, that will return the coordinates of the top-left most point of the bounding box you're looking for. Example code of textItem.position: alert(app.activeDocument.activeLayer.textItem.position); Then if you want the bottom-right point, simple add the height and width of the box to that coordinate. Something ...


3

As I mentioned in the comments, you should give some more clarity in your question to get a truly tailored answer. But, from what you stated above, I can help you break down your seemingly 6 steps into 3: 1) Copy a layer/layers 2) Make a new Document 3) place/drag them into the new document Step 1: Duplicate Do you know about the Duplicate ...


3

In Photoshop go to File → Automate → Batch and you can select the action to use and the file naming of the output files


3

A quick and dirty way is to run this script on the document: for (var i = app.activeDocument.layerSets.length - 1; i >= 0; i--) { app.activeDocument.layerSets[i].merge(); }; ...and then use the export_layers_to_files.jsx script you already talked about. This will take the top most Layer Groups, and merge them into a Layer named whatever the group ...


2

Try turning off the layers you don't want and saving as a .png file with save for web. That way you have a little control on the final resolution output. Or are you looking for a batch type of saving method?


2

I'm not getting the problem. Any settings you use in Save As are sticky for any particular format. They become the default until you change them. Non-interlaced is the default for png. If you're trying to save time, though, why in the world would you not set up an Action and assign a keyboard shortcut to it? No mouse clicks needed, just hit one key combo ...


2

Well the obvious answer is to create a batch process to do it for you so you don't have to do it 190 times. But maybe you can use one of Photoshop's automated processes to do it for you. In the old version of photoshop I use there's a Contact Sheet II process available. Perhaps you could set it up to include all the images you want to turn into a sprite, ...


2

If it is always a 3 step process, you could make an action with 3 undos and map that to a hotkey. Otherwise you could do it in scripting also.


2

You can automate most tasks in Photoshop by using actions. You can record them, enter them by hand or download others from the internet. They can be fully automated with predefined values or you can design them to ask for settings when they run. Short tutorial I don't think you can automate tasks in Lightroom and I don't have any experience with other ...


2

Check out File > Scripts > Layer Comps to Files. You can export batches of files based on layer comps that way. Layer comps need to be set up first though, but if you are repeating yourself over and over, it is the lesser of 2 evils. If you need more control or a better automated script, you will need to write a custom script to give you that ...


2

As long as the clipped art is vector (as opposed to a raster image), you could use Object > Expand appearance on it to actually delete the parts that are clipped away. Thus, the script will no longer see the original art and work properly.


2

Layer → Arrange → Reverse will reverse the selected layers. I don't know how you can automate the selection of layers within a group though. I bet someone could create a script for that, if it was essential.


2

Your problem may require scripting. The name of the original image is included in the recorded action so it only works for that particular image or at least one with the same file name. A workaround that might be acceptable (though I admit hardly ideal) is to first duplicate your original image to rename it something generic, then run the action on that. ...


2

I just created an action that can do this. You can download it here: Scale up PSB And that is how you use it: Do a layer filtering for Smart Objects Select the first layer Run the action Repeat running the action until you reach the last Smart Object The action opens up the Smart Object, scales it up to 150%, saves the PSB, and selects the next layer. ...



Only top voted, non community-wiki answers of a minimum length are eligible