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

[PSD Format] Image Data Section vs. Channel Image Data etc.

New Here ,
Nov 12, 2006 Nov 12, 2006

Copy link to clipboard

Copied

Hi -

Newbie here. Would someone be kind enough to clarify the following points of confusion:

1. On the difference between the Channel Image Data section(s) of a PSD file and its Image Data Section: my guess is that the former contains per layer raster info, wheras the latter holds raster data for the background (pane?).

2. All channel image data section(s) reside at the end of the layer and mask info section, after the adjustment layer info section. The spec (I'm working with the 6.0 doc), vaguely suggests that this is the case (see the description of length attribute of channel length info section).

Thanks,

- Olumide
TOPICS
SDK

Views

2.3K

Translate

Translate

Report

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
Participant ,
Nov 13, 2006 Nov 13, 2006

Copy link to clipboard

Copied

Is this not clear from my source?

Btw I'm still considering your suggestion of adding a C++ interface to it.

Votes

Translate

Translate

Report

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 ,
Nov 25, 2011 Nov 25, 2011

Copy link to clipboard

Copied

LATEST

Hi, I am also trying to decode PSD layers' Image Data Section.

Tried to use the source but unable to build it because of the following missing files with Visual Studio 2008.

Any suggestion ?

1) png.h

2) psdrecover.h

3) sys/erno.h

I also tried  decoding it myself but seem to missing something.

Compression is RLE, then 2 bytes header for each row of run-length iterate over heigth of the image.

Is this correct ? 

CT

Votes

Translate

Translate

Report

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 ,
Nov 13, 2006 Nov 13, 2006

Copy link to clipboard

Copied

Sorry Toby, but I did not read your entire source. At the time we communicated, I knew nothing of the Photoshop file format. Now however, I've pretty much written my own -- okay I started from an abandoned project.

You really should consider adding a C/C++ interface to your code. Your code appears to be mature and well tested but it also seems to be doing just one thing i.e., what YOU want it to do.

Can you please help answer my question. I'd rather hear from you than read your source.

Thanks,

- Olumide

Votes

Translate

Translate

Report

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
Participant ,
Nov 13, 2006 Nov 13, 2006

Copy link to clipboard

Copied

(1) The "image data" section is the merged composite (i.e. unrelated to layers). (In psdparse, this is handled by the call to doimage(), line 727).

(2) Yes, the channel image data comes after the "layer info" section. The layer info section describes each layer (see this loop in dolayers()). Immediately after processing that section, the channel image data is extracted by another looped call to doimage().

Hope this clarifies.

Votes

Translate

Translate

Report

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 ,
Nov 13, 2006 Nov 13, 2006

Copy link to clipboard

Copied

Thanks Toby. I didsn't realize that the image data section is the merged composite (of all layers?). If so, I needn't read this section.

Votes

Translate

Translate

Report

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
Participant ,
Nov 13, 2006 Nov 13, 2006

Copy link to clipboard

Copied

You can't ignore it entirely - a PSD that consists of background image only has just this section and no layers.

A layered file saved without "Maximise compatibility" will have a placeholder image in this section, containing multilingual text, "This layered Photoshop file was not saved with a composite image." Otherwise it is the merged composite.

Votes

Translate

Translate

Report

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