Psd.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <?xml-stylesheet type="text/xsl" href="../Xsl/doc2html.xsl"?>
  3. <doc>
  4. <title>Photoshop Document</title>
  5. <chapter>
  6. <title>Photoshop Document</title>
  7. <par>
  8. The .PSD (Photoshop Document) format stores an image with support
  9. for most imaging options available in Adobe Photoshop program.
  10. These include layers with masks, color spaces,
  11. ICC profiles, transparency, text, alpha channels, etc.
  12. </par>
  13. <par>
  14. Loading and saving of indexed, grayscale, RGB(A), HDR (FP32), and CMYK
  15. (auto converted to RGB) images is supported. Non-HDR gray, RGB,
  16. and CMYK images can have 8bit or 16bit color channels.
  17. There is no support for loading mono images, duotone images are treated
  18. like grayscale images, and multichannel and CIE Lab images are loaded as
  19. RGB images but without actual conversion to RGB color space.
  20. Also no layer information is loaded.
  21. </par>
  22. <par>
  23. As of Imaging version 0.26.2 images with alpha channel can be
  24. saved using layers. That way when opened in Photoshop they
  25. have proper transparency, not alpha channel
  26. (will have one layer, RGB color channels, and transparency).
  27. PSD files with layers are bigger because image has to be stored
  28. as background as well as layer data.
  29. Therefore, RLE compression was implemented to keep the files smaller
  30. (Photoshop saves PSDs RLE compressed too by default).
  31. Note that layers are not supported for floating point image data formats
  32. since it's not supported by Photoshop itself.
  33. Saving of layers can also be disabled
  34. (will be opened in PS as background raster with RGBA channels)
  35. using appropriate option.
  36. </par>
  37. <table>
  38. <title>Photoshop Document File Format Support</title>
  39. <row>
  40. <th>Format</th>
  41. <th>TImageFormat equivalent</th>
  42. <th>Loading</th>
  43. <th>Saving</th>
  44. </row>
  45. <row>
  46. <td>8 bit indexed</td>
  47. <td><icode>ifIndex8</icode></td>
  48. <td>Yes</td><td>Yes</td>
  49. </row>
  50. <row>
  51. <td>24 bit RGB</td>
  52. <td><icode>ifR8G8B8</icode></td>
  53. <td>Yes</td><td>Yes</td>
  54. </row>
  55. <row>
  56. <td>48 bit RGB</td>
  57. <td><icode>ifR16G16B16</icode></td>
  58. <td>Yes</td><td>Yes</td>
  59. </row>
  60. <row>
  61. <td>32 bit ARGB</td>
  62. <td><icode>ifA8R8G8B8</icode></td>
  63. <td>Yes</td><td>Yes</td>
  64. </row>
  65. <row>
  66. <td>64 bit ARGB</td>
  67. <td><icode>ifA16R16G16B16</icode></td>
  68. <td>Yes</td><td>Yes</td>
  69. </row>
  70. <row>
  71. <td>8 bit grayscale</td>
  72. <td><icode>ifGray8</icode></td>
  73. <td>Yes</td><td>Yes</td>
  74. </row>
  75. <row>
  76. <td>16 bit grayscale</td>
  77. <td><icode>ifGray16</icode></td>
  78. <td>Yes</td><td>Yes</td>
  79. </row>
  80. <row>
  81. <td>16 bit grayscale + alpha</td>
  82. <td><icode>ifA8Gray8</icode></td>
  83. <td>Yes</td><td>Yes</td>
  84. </row>
  85. <row>
  86. <td>32 bit grayscale + alpha</td>
  87. <td><icode>ifA16Gray16</icode></td>
  88. <td>Yes</td><td>Yes</td>
  89. </row>
  90. <row>
  91. <td>32 bit R FP32</td>
  92. <td><icode>ifR32F</icode></td>
  93. <td>Yes</td><td>Yes</td>
  94. </row>
  95. <row>
  96. <td>128 bit ARGB FP32</td>
  97. <td><icode>ifA32B32G32R32F</icode></td>
  98. <td>Yes</td><td>Yes</td>
  99. </row>
  100. <row>
  101. <td>other types</td>
  102. <td><icode>depends on type</icode></td>
  103. <td>Yes/No</td><td>No</td>
  104. </row>
  105. </table>
  106. <par>
  107. When working with PSD files you can find useful some options
  108. which can be set by <ref>SetOption</ref> function and their current values
  109. can be get by <ref>GetOption</ref> function.
  110. Or you can set them by modifying properties of <ref>TPSDFileFormat</ref>
  111. class.
  112. </par>
  113. <table>
  114. <title>Options Related to PSD Files</title>
  115. <row>
  116. <th>OptionId</th>
  117. <th>Allowed Values</th>
  118. <th>Usage</th>
  119. </row>
  120. <row>
  121. <td><ref>ImagingPSDSaveAsLayer</ref></td>
  122. <td><b>0 (false)</b> or <b>1 (true)</b></td>
  123. <td>If enabled image data is saved as layer of PSD file. This is required
  124. to get proper transparency when opened in Photoshop for images with
  125. alpha data (will be opened with one layer, RGB color channels, and transparency).
  126. If you don't need this Photoshop compatibility turn this option off as you'll get
  127. smaller file (will be opened in PS as background raster with RGBA channels)
  128. Default value is <b>1 (true)</b>. </td>
  129. </row>
  130. </table>
  131. </chapter>
  132. </doc>