A closer look at the Photoshop Generator syntax

- Joel Brandt and Samartha Vashishtha

The Photoshop Generator feature offers great flexibility in the ways you can rename layers/layer groups to specify size and quality parameters. Stepping beyond the recommendations in the Help article, this blog post looks at some valid variations that you can use while tagging layer/layer group names.

Before we begin, let’s look at the conventions followed in this blog post:

gradient_suffix-prefix

Space case

  • The filename portion of a layer/layer group name can include space characters. For example:
    250% Foo Bar Baz.gif
    Result: Generates a single file named Foo Bar Baz.gif scaled by 250%
  • While specifying absolute sizes, you can omit the space character between the height and the width. For example:
    100×80 foo.png
    Result: Generates a 100 px x 80 px-sized PNG file named foo.png
  • Do add a space character between the size parameter (prefix) and the layer name. For example:
    100×100 foo.png
  • You can omit the space character following the separator (, or +). For example, any of the following layer names generates two files—foo 1.png and foo 2.jpg—from the tagged layer:
    foo 1.png,foo 2.jpg
    foo 1.png, foo 2.jpg
    foo 1.png+foo 2.jpg
    foo 1.png + foo 2.jpg
  • Do not add a space character between an absolute size dimension and its unit. For example, the following layer names are invalid:
    80 x 100 px imagename.png
    4 in x100 imagename.png
    90 mm x120 cm imagename.png
  • Do not add a space character between the layer name and the suffix. For example, the following layer/layer group name is invalid:
    100×100 imagename.png 5%

Mixing units

While specifying the size parameter, it’s OK to mix and match the supported units—px, cm, mm, and in.

If no unit is specified for a dimension, Photoshop assumes it to be px.

Examples:

  • 80 x 100px foo.png
  • 4in x100 foo.png
  • 90mm x120cm foo.png

Wild cards

While specifying absolute sizes, you can use the ? wildcard in place of a dimension.

Examples:

  • 100x? foo.png
  • ?x60in foo.png

Hyphenated quality parameters

You can add a hyphen before the quality parameter (suffix) to make your layer/layer group names more readable.

Examples:

  • foo.png-8
  • foo.jpg-100%
  • foo.png-32

Some other Don’t’s

  • Don’t use unsupported units.
  • Don’t mix absolute and relative sizes. For example, the following layer name is not valid:
    50% 80×100 foo.png
  • Don’t specify out-of-bounds values. For example:
    foo.jpg-101%
    foo.png-42
    0% foo.png

That’s all for now! Hope you have fun using Generator and other exciting enhancements in the September 2013 release of Photoshop. In case you haven’t already reviewed the What’s New, here’s the link.

 

Lo and behold! Photoshop CC is now available!

Adobe has just made available Photoshop CC, a magical new update to Photoshop. This blog post lists out some resources that will help you get started with this new release.

Install Photoshop CC

  1. Go to http://creative.adobe.com and sign in with your Adobe ID.
  2. Click Download Center in the top bar.
  3. Click the Download icon next to the Photoshop icon.
  4. On the Photoshop product page, click Download. Follow the on-screen instructions to complete the installation.

What’s New

Photoshop CC is packed with exciting features and enhancements that will enrich your digital imaging experience. Here is a select list:

  • Reduce camera shake blurring

    Before_After_CSR

    Before/After | Reduce camera shake blurring

  • Share your creative work on Behance

    Behance_4

    Uploading your creative work to Behance

  • Automatically straighten image content using the Upright modes in Adobe Camera Raw

    Upright_Before_Auto_wn

    Before/After | Straightening image content

  • Define elliptical marquees and apply localized corrections to them using the Radial Filter tool in Adobe Camera Raw

    RadialFilter_Before_After_betterfalloff

    Before/After | Radial Filter tool

  • Work simultaneously with multiple paths
  • Paint 3D models with finer control and greater accuracy

    Live3D

    Live 3D painting in Photoshop CC

  • Work better with 3D objects using the revamped 3D panel
  • Type text in 10 Indic languages
  • Adjust dimensions, placement, and the corner radii of a rectangle or rounded rectangle shape

For more information, see:

Video resources:

 


PS: I had the privilege of documenting the new features and enhancements in Photoshop CC over the past few months. Watch this space for helpful resources and useful hints.

Story update now available—May 2013

We’ve just pushed live another exciting update to Adobe Story. This release takes collaborative script authoring to the next level. Coauthors and reviewers can now insert sticky notes into a script. They can also drag a sticky note to any location within the script. Cool, isn’t it?

We’ve also added numerous other features to simplify and streamline your workflows:

  • The Sync Schedule dialog now lists changes only for the properties that you’ve chosen to view.
  • You can edit tags that you created.
  • You can export the resource conflict results between two schedules as HTML (.htm). You can then open the exported results in word processing tools, such as Microsoft Word.
  • User interactions for several dialog boxes have been simplified:
    • Manage Scene Numbers
    • Manage Dialog Numbers
    • Manage Camera Shot Numbers
    • Manage Scene Durations
    • You can export project data (lists, scene properties, and schedules) as XML.
    • While working with schedules, you can choose a font size—small, medium, or large.
    • Layout improvements while printing schedules.
    • You can choose whether you want to display Revision Start Date or Last Modified Date in the header and footer for production revisions.
    • You can see a list of users with whom a project is shared. Invitees who haven’t yet accepted a share request are listed as well.
  • When you click the word count in the status bar, you can view the dialog word count in the current script.
  • Several critical bugs have been fixed in this release.