Sub topic 11
Keeping color profile and resolution consistent
This chapter assumes you can build a placeholder smart object, edit its contents, and replace it (earlier chapters). It also assumes you know what sRGB is and that image size is measured in pixels. The goal is a mockup where every design you drop in looks the same on screen and in the exported file, and stays sharp.
Why a smart object has its own color and resolution
An embedded smart object is a separate document stored inside the PSD. It carries its own pixels, its own color profile, and its own resolution setting. The mockup scene is the parent document, which has its own profile and resolution too.
Photoshop does not force the two to match. It converts the smart object's colors to the parent's profile when it composites the scene. The smart object file itself keeps its original profile. Two things follow from this:
- A design in Adobe RGB placed into an sRGB mockup shows converted colors in the scene. Opened through Edit Contents, the same design appears in its own profile.
- The pixel dimensions of the source, not the size it appears at, set how much detail you have.
If you only judge the result in the mockup, you can miss color shifts and soft edges until the client sees the export.
Color profile: decide once, then check every design
Pick the parent profile
The parent document's profile is the "working space" for the whole scene. For mockups that end up on the web, social media, or a store listing, use sRGB. Most browsers and many viewers assume sRGB when a file has no profile.
Use a wider profile such as Adobe RGB or Display P3 only if your delivery path is color-managed and you have a reason, such as a print proof. Check the current profile in the document's status bar (choose Document Profile) or under Edit > Assign Profile.
Make the choice when you build the template. Changing it later with Edit > Convert to Profile shifts every layer's color, including blend-mode shadows and smart filter results.
Match incoming artwork
Before you replace contents, look at the profile of the incoming design. You can open it directly and check Edit > Assign Profile. You have three sensible options:
| Situation | Action | Result |
|---|---|---|
| Design is already sRGB | Replace as is | No conversion surprises |
| Design is in a wider profile | Convert a copy to sRGB first (Edit > Convert to Profile) | Predictable colors; saturated colors are clipped once, on your terms |
| Design has no profile | Assign sRGB (Edit > Assign Profile), then check it | Photoshop otherwise guesses, usually the working space |
Convert only a copy. Converting changes pixel values, so keep the original untouched.
Watch the profile warning
Under Edit > Color Settings, the Color Management Policies include Profile Mismatches: Ask When Opening and Ask When Pasting. Leave these on while you build mockups. The dialog tells you when a design does not match, and that is the cheapest moment to fix it.
Color mode and bit depth
Match the color mode too. A CMYK design inside an RGB mockup is converted for display, and the saturated colors are noticeably duller. Convert CMYK designs to RGB deliberately and review the result. Keep both documents at 8 bits per channel unless you have a reason for 16. A mismatch there mostly costs file size and speed.
Resolution: pixels matter, ppi mostly does not
The ppi number in Image > Image Size is a metadata value that describes how large pixels should print. It does not change how many pixels you have. For a screen mockup, a 3000 px wide image is 3000 px wide at 72 ppi or 300 ppi.
What counts is the effective resolution of the design inside the mockup: how many source pixels land on each pixel of the final export.
- Find the width of the placeholder in the scene, in pixels, at the final export size.
- Divide the source width in pixels by that number.
- A result of 1.0 or more means no upscaling. A result below 1.0 means Photoshop enlarges the pixels and the design gets soft.
For example, a poster placeholder appears 1500 px wide in a 3000 px wide export. A source that is 3000 px wide gives a ratio of 2.0, which is plenty. A source that is 900 px wide gives 0.6, so it is upscaled and looks blurry on any display. If you also export a 2x version for high-density screens, the placeholder becomes 3000 px wide and even the 3000 px source drops to 1.0.
Smart objects protect you from repeated resampling. Scaling a smart object down and back up reads from the stored source each time, so quality is not lost the way it is with a rasterized layer. They cannot invent detail that the source never had.
What Replace Contents does to size
Replace Contents fits the new file into the bounds of the old placeholder. Layout stays stable, but the effective resolution changes with every design. A small or low-resolution replacement fills the same area as a large one and simply looks worse. So check source pixel dimensions each time. Do not assume the first design's quality carries over.
Building the placeholder with headroom
Create the placeholder's internal document larger than the scene needs. A common practice is to make the placeholder 1.5 to 2 times the largest export size. Then designs prepared at that size need no upscaling and you can export at several sizes from one template.
How color flows through the mockup
The diagram shows where conversions happen. Each arrow is a place where a profile mismatch can change the look.
Checking and fixing with a script
You can verify a document before you export. This ExtendScript reports the profile, mode, and resolution of the active document, and converts it to sRGB when it is not already.
#target photoshop
var doc = app.activeDocument;
var report = "Name: " + doc.name + "\n" +
"Mode: " + doc.mode + "\n" +
"Profile: " + doc.colorProfileName + "\n" +
"Resolution: " + doc.resolution + " ppi\n" +
"Size: " + doc.width.as("px") + " x " + doc.height.as("px") + " px";
alert(report);
// Convert to sRGB only when the document is not already in it.
if (doc.colorProfileName !== "sRGB IEC61966-2.1") {
doc.convertProfile("sRGB IEC61966-2.1", Intent.RELATIVECOLORIMETRIC, true, false);
alert("Converted to sRGB.");
}Run it on the parent mockup. To check a design, open the file itself and run the same script on it.
Exporting without a color surprise
Even with a consistent scene, the export step can undo your work. In File > Export > Export As, turn on Convert to sRGB and Embed Color Profile for web delivery. In the older Save for Web (Legacy) dialog, the equivalent setting is Convert to sRGB.
Without the conversion, a file in a wide profile and without an embedded profile is read as sRGB by browsers. Colors then look flat or off. If you keep a wide profile on purpose, embed it so the viewer can interpret it correctly.
Use View > Proof Setup > Monitor RGB or an sRGB proof to preview. It simulates how a typical viewer will see the result. Always review the exported file in a browser or image viewer, not only inside Photoshop.
Common problems
- Design looks duller inside the mockup than when opened alone. The source is in a wider profile or CMYK. Convert a copy to sRGB and replace again.
- Design is soft only in the mockup. The effective ratio is below 1.0. Supply a larger source or reduce the export size.
- Colors shift only in the exported file. The Convert to sRGB option was off, or the profile was not embedded.
- Shadows and highlights change tone after a profile change. Blend modes operate on converted values. Choose the parent profile before adding them.
Exercise
A mockup is exported at 2400 px wide. The poster placeholder occupies 1200 px of that width. Your source design is 1800 px wide and saved in Adobe RGB. (a) Is the resolution sufficient at 1x? (b) What happens if you also export at 2x? (c) What should you do about the profile before replacing contents in an sRGB mockup?
Show answer
(a) Yes. The ratio is 1800 / 1200 = 1.5, so no upscaling occurs. (b) At 2x the placeholder is 2400 px wide, so the ratio is 1800 / 2400 = 0.75. The design is upscaled and will look soft, so you need a source of at least 2400 px wide. (c) Convert a copy of the design to sRGB with Edit > Convert to Profile, keep the original, and use the copy for Replace Contents. Then export with Convert to sRGB turned on.
Exercise
Why does changing a document's ppi value from 72 to 300 in the Image Size dialog (with Resample turned off) not make the design sharper?
Show answer
With Resample off, only the metadata changes. The pixel dimensions stay the same, so the same number of pixels is available. Sharpness depends on the pixel count relative to the displayed size, not on the ppi tag.