# Photoshop: What is the difference between “Replace contents” and “Relink to file”?

When right-clicking a linked (smart) object in the Layers palette, there are two options that seem to do the same thing:

• Replace contents

What is the difference between these two functions?

How can I use a low-res placeholder and replace it correctly with a high-res image while retaining its dimonsions in the final photoshop file?

Replace contents replaces the internal contents of the Smart Object, embedding the content. No external file association is present. If the Smart Object is already a linked Smart Object, the association to the external file is broken and the external file contents are embedded in the Smart Object.

Relink to file changes the Smart Object from an embedded Smart Object to a linked Smart Object associated with an external file. If the Smart object is already a linked Smart Object, it merely changes the associated external file link. If you made changes to the external file outside of Photoshop, you'll need to use this option to update the Smart Object.

The primary difference is how the Smart Object is referenced, either embedded or linked. You won't notice a whole lot of difference within Photoshop itself, but you will notice a difference if you were to edit the contents/linked file of the Smart Object.

At least, that's my understanding. I'm not an Adobe dev though.

• Do you know how to preserve the dimensions of the linked/embedded object, after changing its source dimensions? – 360path Nov 22 '17 at 1:47
• @360path I believe you can reset the SO.... Just Free Transform on the SO layer and in the Control Bar set the W and H percentages to 100%. It with then be proportional.. and you can further transform to resize if necessary. – Scott Nov 22 '17 at 3:01
• Suppose I have a container document in which there is a SO with 200x200 px, if I replace it with a SO of 1000x1000 px, that will also have 100% W and H. So I guess there is no option to keep it within its first bounding box? – 360path Nov 22 '17 at 12:35

If the Smart Object is already a linked Smart Object, the association to the external file is broken and the external file contents are embedded in the Smart Object.

This is incorrect. If the layer is already a linked S.O., when you replace content it will still be a linked S.O. So the difference is this: