Sub topic 1
Why Nondestructive Editing Matters
Every edit you make to pixels overwrites the data beneath it. Nondestructive editing keeps the original data intact so you can change your mind later. Smart objects are Photoshop's main tool for this.
Prerequisites
This chapter assumes you know the Layers panel, layer masks, basic blend modes, and the Filter menu. You should also understand that raster images are grids of pixels with a fixed resolution.
What a Smart Object Is
A smart object is a layer that holds a container with its own source content inside. Photoshop shows a small document icon on the layer thumbnail. Transforms and filters you apply to the smart object sit on top of that source, so the source stays unchanged.
Creating Smart Objects
You can create one in three ways:
- Convert: Select a layer and choose Layer > Smart Objects > Convert to Smart Object.
- Place embedded: Choose File > Place Embedded. Photoshop copies the file into your document.
- Place linked: Choose File > Place Linked. Photoshop stores only a reference to the file on disk.
// Photoshop ExtendScript: convert the active layer to a smart object
executeAction(stringIDToTypeID("newPlacedLayer"), undefined, DialogModes.NO);Embedded Versus Linked
Use an embedded smart object when the document must travel alone. Use a linked one when the same source file feeds several documents. A linked file updates everywhere when you edit the original, but a missing file breaks the link.
Scaling, Rotating, and Warping Without Quality Loss
Scale, rotate, and warp a smart object, and Photoshop records each transform as a setting. It resamples from the original data each time, so repeated scaling does not degrade the image.
Exercise
You scale a regular pixel layer down to 50 percent, save, then scale it back up. Why does the image look softer, and what would a smart object change?
Show answer
Scaling down discards pixels, so scaling up cannot restore them. A smart object keeps the original data and rescales from it, so the final result is closer to the source.