Photoshop: Changing canvas size uncrops a smart object.

  • 1
  • Problem
  • Updated 2 years ago
  • Not a Problem
  • (Edited)
Open and adjust a raw file in ACR, then open in Photoshop as a smart object. Crop to desired size. Enlarge the canvas size to effectively add a border ... and the crop is lost. Happens if the delete pixels option for the crop tool is on or off.  PS 15.5.1
Photo of Robert Stone

Robert Stone

  • 33 Posts
  • 2 Reply Likes
  • perplexed.

Posted 2 years ago

  • 1
Photo of Max Johnson

Max Johnson, Champion

  • 432 Posts
  • 198 Reply Likes
Smart objects are never 'cropped'. You can, however, add a layer (alpha) mask to the smart object before your do you expand the canvas and it will *look* like it has been cropped, though it's just being hidden behind the mask.

Alternately, you can create a new shape layer at the size of your canvas before you expand the canvas, then change the shape's "path operations" mode from "add" to "subtract front shape" and you'll get a nice resizeable, stylable frame to play with!
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 14046 Posts
  • 1734 Reply Likes
What Max said. We don't delete cropped pixels for smart objects to keep a non-destructive workflow.
Photo of Robert Stone

Robert Stone

  • 33 Posts
  • 2 Reply Likes
The behavior is not expected. Other 'flat' image layers do not resize with this operation, but a smart object does. Why does changing the canvass affect the size of a user's crop?  Perhaps the smart object or the crop operation are based on the canvas object in some way that is not obvious.  My solution was to Ctrl+Alt+Shift E to a new layer and hide the smart object. Easy to repeat if necessary. Thanks for the prompt reply!
(Edited)
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 14046 Posts
  • 1734 Reply Likes
Cropping the parent document can't delete the pixels of a Smart Object layer. So instead, the existing bounds of the smart object layer are just hidden/masked by the document apron (the grey area outside the image canvas). When you change the canvas size, your just widening the image canvas and revealing the smart object layer contents that were under the document apron.
Photo of Robert Stone

Robert Stone

  • 33 Posts
  • 2 Reply Likes
Thanks Jeff ... the crawl space is one of my daily visits.