Photoshop 14.1.2: Generator - Rounded Rectangle and Clipping Issues

  • 1
  • Problem
  • Updated 4 years ago
  • Solved
  • (Edited)
In Photoshop v14.1.2 - I have come across some unexpected behavior using the Images Assets Generator.

Use case: I have a layer that is made from a rounded rectangle that is partially off the edge of the image. I have named the layer "MapSwitcherButton@2x.png, 50% MapSwitcherButton.png" -- because I want two images and the second one I want as half the size of the other.

1) When the assets are generated the 50% image the rounded rectangle is not the same shape. It seems that the radius was changed when the image was generated.

2) I expected the generated asset to be clips to the sides of the image and not the full rounded rectangle that extended outside of the image bounds.

I have an example file if needed upon request along with the assets produced and what I expected them to look like (which were generated correctly using Slicy).
Photo of Shawn Gano

Shawn Gano

  • 11 Posts
  • 1 Reply Like

Posted 5 years ago

  • 1
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 14046 Posts
  • 1734 Reply Likes
Hi Shawn. Sent an email to get your example file.
Photo of Shawn Gano

Shawn Gano

  • 11 Posts
  • 1 Reply Like
Thanks! I just sent it.
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 14046 Posts
  • 1734 Reply Likes
Thanks. I have it. I'll look into it with the team.
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 14046 Posts
  • 1734 Reply Likes
Hi Shawn,

Thanks for bringing these up.

I talked with the team. The team is aware of both behaviors - and they are currently expected and have suggested workarounds. They're also looking at adding properties to control this via layer name syntax.

For the first behavior where the rounded rect radius aren't scaled: From Tim Wright: "Generator scales the rounded-rect as a rounded-rect "smart shape," like the transform tool, so the corners don’t scale, so it’s expected, but maybe not always desired. You can dumbify the shape (like rotate 360 or some other path editing operation that removes the origin data.) to workaround that behavior. We are looking into controlling smart or dumb scaling via a tag."

For the second behavior where the areas off screen are exported: From Tim Riot - "The customer's expectation is the old way of thinking of assets (IE, document based), as opposed to thinking of them as flexible assets that might have form/context outside of the current view. A work around is to select all, then create a layer mask. We are looking into either a document-based or preference-based option to declare which output type is preferred."
Photo of Shawn Gano

Shawn Gano

  • 11 Posts
  • 1 Reply Like
Any update on if these tags or options will be implemented? And if so any expected implementation date? The lack of scaling of layer options and radius really makes this potentially amazing feature much less useful for me.
Photo of Shawn Gano

Shawn Gano

  • 11 Posts
  • 1 Reply Like
Thanks for following up and the work arounds - and those sound like nice settings/options to add in a future version.
Photo of James Bogenrief

James Bogenrief

  • 2 Posts
  • 0 Reply Likes
Hello, I know this post is a bit old now, but have there been any fixes to this issue? I am having the same problem.
Photo of Shawn Gano

Shawn Gano

  • 11 Posts
  • 1 Reply Like
Nope - other than using "Slicy" instead if you are on a mac.
Photo of James Bogenrief

James Bogenrief

  • 2 Posts
  • 0 Reply Likes
Sweet, thanks for the hint, Shawn.
Photo of Shawn Gano

Shawn Gano

  • 11 Posts
  • 1 Reply Like
Jeffrey (or any Adobe employee) -- when will this get fixed or the options added? It has been a year now and this capability would make the generator feature very useful.
Photo of Divya Manian

Divya Manian, Employee

  • 82 Posts
  • 9 Reply Likes
Try the Generator configuration panel from Adobe Add-ons for turning on smart scaling https://creative.adobe.com/addons/pro...

We are looking to clipping to document bounds for Generator in the next release.

(I am the Product Manager looking into Extract Assets dialog in the new Photoshop release)
Photo of Shawn Gano

Shawn Gano

  • 11 Posts
  • 1 Reply Like
Hi Divya - I could not find the "Generator Configuration Panel" anywhere -- where is "Adobe Add-ons" found in the menu? (I am using a mac - if that matters). I looked in the Photoshop preferences and in the Extract Assets dialog "Settings" but couldn't find anything that looked like your screenshot.

(another topic - but how do you save save all the generated assets into the same directory, I want to use different suffixes for the different sizes but I don't want them all in separate directories, the current UI does't seem to allow the path of ".".)

Thanks - I am excited to try out the new features of the assets generator!
Photo of Divya Manian

Divya Manian, Employee

  • 82 Posts
  • 9 Reply Likes
You need to click on the link I pasted in my response and use Adobe Extension Manager to install it from that site for you. 

Currently you cannot save the 2x stuff into the same directory. The problem is a lot of people have layer names that are identical but within different layer groups and this would make it really easy to override other assets. We obviously need a better UI to prevent this, but we will work on it for the next year. 
Photo of Shawn Gano

Shawn Gano

  • 11 Posts
  • 1 Reply Like
I had to also turn File Sync "On" within the Creative Cloud app settings, before the extension would install properly. But I got it working thanks!
Photo of Shawn Gano

Shawn Gano

  • 11 Posts
  • 1 Reply Like
I played with the new Asset Generator and it is now exporting rounded rectangles correctly by default!! If I turn on "Use Smart Scaling" from the Generator configuration panel (found in Divya's post) it reverts back to the old v14.1.2 style of asset generation (with a fixed radius and not a scaled radius).

Excellent- thanks for fixing this!

(though I still would really like to export all the files to the same directory - which has been so far the only negative aspect I have found in the new asset generator updated in v14.2.1)