Copy link to clipboard
Copied
Hi! I'm trying to duplicate a layer in a new document via Right Click > Duplicate Layer in a new document.
The default is for the new document to retain the canvas size as the original document but I remember reading somewhere that you can change the setting for the new document to have the same canvas size as the layer but I can't find how.
Does anyone know where this setting might be?
Copy link to clipboard
Copied
That would be easy to script. I know of no setting to do that with duplicate layer
Copy link to clipboard
Copied
Thanks for your thoughts. What's the best way to resize the document's canvas size to the size of the layer?
Copy link to clipboard
Copied
I believe a simple Action may be able to do what you want to do. If you target a single layer. If you target several layers the new document will be trimmed to the composite bounds of the layers combined. Layers are created the way you want you just need to trim the canvcas to the layers bouns
Copy link to clipboard
Copied
If I can understand what you want then the solution should be Image > Trim > Transparent Pixels. You can automate this task using Photoshop action.
Copy link to clipboard
Copied
This is really confusing. How many documents do you have? Where is the layer you are duplicating?
Copy link to clipboard
Copied
Any layer or layers can be duplicated into a new document using meny Layer>Duplicate Lauers... you can also name the new documeny ine the dialog
Copy link to clipboard
Copied
Yeah I thought that was what the OP wanted but the question was a bit confusing. Isn't canvas size global though?
Copy link to clipboard
Copied
A document has a single canvas size that can be changed layers can be any size but for the Background layer which is special. If one exists it is the bottom layer in the layer stack it does not support transparency. So it is locked and is canvas sized. Other layers can be any size their view will be clipped to its area over the canvas. If you change a document canvas size if it has a background its sides will either cropped or have new solid color pixels added to its new canvas size.
Copy link to clipboard
Copied
You can make an artboard and duplicate that to a new file, sized the same. Maybe that's what you saw?
Copy link to clipboard
Copied
Have never used artboards from what I read they seemed to be like a collection document for different web devices in a single Photoshop document. I would have no Idea as how you would duplicate layers into a new artboard. Never used artboards myself.
Copy link to clipboard
Copied
I don't use them either but an artboard can be custom sized.
Any way I see of creating a new file from layer uses the global canvas size and not a custom one.
Copy link to clipboard
Copied
They're right in that you can do it with an action. I select the elements I want then press my assigned shortcut key and it opens a new document at the same size with just those elements. It's just recording an action out of "Duplicate to new canvas" which is basically under "Layers" > "Dupicate..." (set to 'Document: New').
This isn't ideal if the file with layers your duplicating is set up in artboards since it will export to a new document set to the document size, not the artboard size. If I can change this to export to new document to artboard size, I will be set. Otherwise you will need to set the new, duplicated file's canvas size to the correct size or you do this before duplicating by ungrouping artboards then changing the canvas size.
Regarding artboards, you can select and copy layers from one artboard & paste those into a new artboard which will be placed correctly.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now