Sub topic 3
Adding shadows and highlights for realism
This chapter assumes you can build a mockup document with a smart object placeholder, edit its contents, and use blend modes, clipping masks, and smart filters. It covers the rest of the mockup workflow, from realism to automation.
Adding shadows and highlights
A flat design pasted onto a product looks pasted. Add a shadow layer above the artwork, set to Multiply, and clip it to the artwork so it only darkens the design. Paint soft shadows along folds or edges with a low-opacity brush. Add highlights with a Screen layer clipped the same way. Apply Gaussian Blur or Motion Blur as a smart filter, so you can adjust it later without repainting.
Choosing embedded or linked smart objects
An embedded smart object stores its artwork inside the PSD. It travels with the file, but every copy of the mockup stores its own copy of the art. A linked smart object points to an external file. Use linked objects when one design appears in many mockups, so one update flows everywhere. Use embedded objects when the file must be self-contained for delivery.
Keeping color profile and resolution consistent
Set the artwork and the mockup to the same color profile, usually sRGB for web output. Check that the artwork resolution is high enough for the placeholder size at the final export size. A mismatch causes color shifts or soft edges after replacement.
Building variations and reusing the mockup
Duplicate the document and replace only the artwork. Keep the transforms and effects untouched. Save each variation with a descriptive name, such as poster-01-blue.psd.
Exporting the finished mockup
Use File > Export > Export As, choose JPEG or PNG, and confirm the size. For web output, convert to sRGB before saving.
Troubleshooting common smart object problems
- Artwork looks wrong after replacement: The placeholder may have a different aspect ratio. Adjust the artwork size, not the placeholder.
- Linked file is missing: Relink the file through the Properties panel.
- Shadows look detached: Check that the shadow layer is clipped to the artwork and uses Multiply.
Automating replacement with a script
This ExtendScript replaces the artwork in a layer named "Artwork" and saves a JPEG. The output folder must exist before you run it.
#target photoshop
var doc = app.activeDocument;
var art = new File("~/mockups/art/poster-01.png");
doc.activeLayer = doc.layers.getByName("Artwork");
var desc = new ActionDescriptor();
desc.putPath(charIDToTypeID("null"), art);
executeAction(stringIDToTypeID("placedLayerReplaceContents"), desc, DialogModes.NO);
var opts = new JPEGSaveOptions();
opts.quality = 10;
doc.saveAs(new File("~/mockups/out/poster-01.jpg"), opts, true, Extension.LOWERCASE);Exercise
Exercise
Why should a shadow layer be clipped to the artwork layer?
Show answer
Clipping limits the shadow to the artwork's visible pixels, so it darkens the design without spilling onto the background.