Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Duplicating layer in new document with same canvas size as the layer

Community Beginner ,
Sep 11, 2018 Sep 11, 2018

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?

2.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Sep 11, 2018 Sep 11, 2018

That would be easy to script. I know of no setting to do that with duplicate layer

JJMack
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 11, 2018 Sep 11, 2018

Thanks for your thoughts. What's the best way to resize the document's canvas size to the size of the layer?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 11, 2018 Sep 11, 2018

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

JJMack
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 11, 2018 Sep 11, 2018

If I can understand what you want then the solution should be Image > Trim > Transparent Pixels. You can automate this task using Photoshop action.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 11, 2018 Sep 11, 2018

This is really confusing. How many documents do you have? Where is the layer you are duplicating?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 11, 2018 Sep 11, 2018

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

JJMack
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 11, 2018 Sep 11, 2018

Yeah I thought that was what the OP wanted but the question was a bit confusing. Isn't canvas size global though?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 11, 2018 Sep 11, 2018

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.

JJMack
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 11, 2018 Sep 11, 2018

You can make an artboard and duplicate that to a new file, sized the same. Maybe that's what you saw?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 11, 2018 Sep 11, 2018

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.

JJMack
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 11, 2018 Sep 11, 2018

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 09, 2023 Mar 09, 2023
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines