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

Warned of adding layers increasing file size when there is only one layer

New Here ,
Jun 24, 2018 Jun 24, 2018

Why do I get this warning?  When saving a tif I'm warned that adding layers will increase the file size, when there is only one layer.  If I go ahead and "flatten" I don't get the warning, but it shouldn't be necessary to begin with.  What's up with this?

Michael

2.8K
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

correct answers 1 Correct answer

Community Expert , Jun 24, 2018 Jun 24, 2018

michaelt44211682  wrote

I see.  So flattening the image doesn't reduce it's size.

Flattening would reduce the file size, but I think we have to clarify what it is we mean by a "one layer" document. Because there are two kinds of "one layer" document in Photoshop.

If your Layers panel only says "Background" then you have a flattened document. There are no other layers, and because it has a Background, there is no transparency, so no overhead data is set aside to handle transparency. You know this do

...
Translate
Adobe
Community Expert ,
Jun 24, 2018 Jun 24, 2018

If the layer isn't flattened, it's just a trigger that the code uses to warn you about larger file sizes. It really doen't have to do with you only having one layer. PS just detects that there is no background 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
New Here ,
Jun 24, 2018 Jun 24, 2018

I see.  So flattening the image doesn't reduce it's size.

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 ,
Jun 24, 2018 Jun 24, 2018

Actually, it looks like not flattening the image does increase the file size. Most likely due to that it might save a non-existent background layer - adds the data even though there is nothing there. I just ran a test and got a very different size - twice the size:

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 ,
Jun 24, 2018 Jun 24, 2018
LATEST

michaelt44211682  wrote

I see.  So flattening the image doesn't reduce it's size.

Flattening would reduce the file size, but I think we have to clarify what it is we mean by a "one layer" document. Because there are two kinds of "one layer" document in Photoshop.

If your Layers panel only says "Background" then you have a flattened document. There are no other layers, and because it has a Background, there is no transparency, so no overhead data is set aside to handle transparency. You know this document is flattened because the Flatten Image command is not available.

If your Layers panel says anything else  — including one layer that says "Layer 0" or any name other than "Background" — then it is not a flattened file. It has one layer with the potential for transparency, so there is overhead data set aside for that transparency. In other words, it's a layered file with just one layer. You will see the Flatten Image command available for this document because it isn't flattened. This type of "one layer" document always has a larger file size than a truly flattened document. (This is what Chuck's example demonstrates, by the way.)

Also, in case this has something to do with it: Don't confuse the Layer > Flatten Image and Layer > Merge Visible commands. The result of Merge Visible is a one layer non-flattened document, so it will still have a larger file size than if it was flattened. To truly flatten a one layer image, either use Flatten Image, or select that last remaining layer and choose Layer > New > Background From Layer. Either way, as soon as your entire Layers panel is reduced to a single item called Background, you won't get a layer-related file size warning and your file size will finally go down.

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