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 ...


9

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 ...


8

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 ...


7

This could be a good time to introduce scripting and the script listener to your tool set. While a plugin is fine you might have some other ideas later where this might help. So here is my quickly clobbered together script. To use this change the setup part and put this in a jsx file (and then drag an drop on Photoshop for instance): // setup preferences ...


6

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! 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. ...


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 ...


5

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 ...


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

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. ;)


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

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


4

I would recommend Imagemagick as the appropriate tool here. It has a high learning curve, but is much faster than Photoshop for this sort of batch processing. The following commands should work: convert inputFolder/* +append output.png where inputFolder is a folder containing only the images you're interested in. They should be named in sequence (001, 002, ...


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 ...


4

There's quite a lot you can do with custom scripting. There's a lot to learn and it's got kind of a steep learning curve at first because they have a lot of their own stuff, but it's pretty powerful and flexible. Adobe's scripts are commonly written in Javascript but can also be written with ActionScript or VB. Here's a list of resources to get you ...


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

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 ...


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

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

You Can use Flaticon photoshop plugin. Which gives access to the shapes of all icon fonts around the web. http://www.flaticon.com/download-plugin Hope this helps....


3

For positioning text you don't need a bounding box. I never use bounding boxes for text in PS. I click the text tool without dragging and set the text cursor without a box. Once the text is entered, I can center it vertically or horizontally just like any other shape using the align buttons--assuming I have something to align it to. I do the same ...


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 ...


3

Found instructions for exporting just the actions you need. View your actions by going to Window > Actions. If your actions aren't contained in a set, create one by clicking the folder icon at the bottom of the action widget. Drag the actions you need into the new set. Make sure you have the action set selected. From the menu in the Actions widget () ...


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

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.



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