Pixlr document

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Format Specification)
 
(11 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
|subcat=Graphics
 
|subcat=Graphics
 
|extensions={{ext|pxd}}
 
|extensions={{ext|pxd}}
 +
|released=2008
 
}}
 
}}
'''Pixlr''' is a layered raster graphics format associated with Web based ''Pixlr'' application.
+
'''Pixlr''' is a layered raster graphics format associated with the Web based ''Pixlr'' application.
 +
 
 +
== History ==
 +
Pixlr was founded in 2008. It was acquired by Autodesk in 2011, then by 123RF in 2017[https://www.123rf.com/pressroom/press-20170424.php].
  
 
== Format Specification ==
 
== Format Specification ==
  
[[https://apps.pixlr.com/developer/pxd pixlr.com limited documentation]]
+
[https://apps.pixlr.com/developer/pxd pixlr.com limited documentation]
 
<br><i>
 
<br><i>
 
Pixlr document format<br>
 
Pixlr document format<br>
 
The pixlr format is a compressed binary format, why we choose this and not a xml/jpg ish format is due to many reasons.<br>
 
The pixlr format is a compressed binary format, why we choose this and not a xml/jpg ish format is due to many reasons.<br>
 
It all comes down to quality, speed and file size.<br>
 
It all comes down to quality, speed and file size.<br>
The pxd file is compressed with zlib to reduce the file size.<br>
+
The pxd file is compressed with [[zlib]] to reduce the file size.<br>
 
The uncompressed data are then ordered into two main sections. The Header and the Layer section.<br>
 
The uncompressed data are then ordered into two main sections. The Header and the Layer section.<br>
 
The header includes, pxd version, color-mode, width, height and number of layers.
 
The header includes, pxd version, color-mode, width, height and number of layers.
Line 29: Line 33:
  
 
for every layer
 
for every layer
   4 bytes - layer size in bytes (including layer bitmap data)
+
   4 bytes - total layer size in bytes
 
   2 bytes - namelen
 
   2 bytes - namelen
 
   n bytes - name
 
   n bytes - name
   1 byte - always zero?
+
   1 byte - layer type: 0=bitmap, 1=text (text layer also contains bitmap)
  
 
   4 bytes - layer x-pos
 
   4 bytes - layer x-pos
Line 39: Line 43:
 
   4 bytes - layer height
 
   4 bytes - layer height
 
   1 byte - opacity (0..100)
 
   1 byte - opacity (0..100)
   1 byte - visible (TODO: flags ?)
+
   1 byte - visible
   2 byte - blendmode ?
+
   2 bytes - blendmode
  (TODO: layer protected flag?)
+
  
   4 bytes - size in bytes of layer data
+
   4 bytes - size in bytes of layer bitmap data
 
   n bytes - layer bitmap data in ARGB format (not premultiplied)
 
   n bytes - layer bitmap data in ARGB format (not premultiplied)
 +
 +
  4 bytes - size in bytes of layer mask data (0 if no mask)
 +
  1 byte - number of layer style effects
 +
  for every effect
 +
    4 bytes - size in bytes of effect data
 +
    1 byte - type of effect
 +
    n bytes - effect data (TODO)
 +
  end every effect
 +
 +
  2 bytes - unknown
 +
  if text layer
 +
    text + font data (TODO)
 +
  end if
 +
 
end every layer
 
end every layer
  
Merged image data may be at the end ?
+
(TODO: Merged image data may be at the end ?)
TODO: Layer masks and Layer styles
+
  
 
</pre>
 
</pre>
Line 54: Line 70:
 
== Software ==
 
== Software ==
 
* [https://pixlr.com/editor/ https://pixlr.com/editor/]
 
* [https://pixlr.com/editor/ https://pixlr.com/editor/]
 +
 +
== Links ==
 +
* [[Wikipedia: Pixlr]]
 +
 +
[[Category:Autodesk]]

Latest revision as of 13:24, 20 July 2017

File Format
Name Pixlr document
Ontology
Extension(s) .pxd
Released 2008

Pixlr is a layered raster graphics format associated with the Web based Pixlr application.

Contents

[edit] History

Pixlr was founded in 2008. It was acquired by Autodesk in 2011, then by 123RF in 2017[1].

[edit] Format Specification

pixlr.com limited documentation
Pixlr document format
The pixlr format is a compressed binary format, why we choose this and not a xml/jpg ish format is due to many reasons.
It all comes down to quality, speed and file size.
The pxd file is compressed with zlib to reduce the file size.
The uncompressed data are then ordered into two main sections. The Header and the Layer section.
The header includes, pxd version, color-mode, width, height and number of layers.

Reverse engineered information (after inflating the file):

2 bytes - version = 3
2 bytes - colorMode = 0
4 bytes - width
4 bytes - height
2 bytes - numLayers
4 bytes - The total size of the layers in bytes

for every layer
  4 bytes - total layer size in bytes
  2 bytes - namelen
  n bytes - name
  1 byte - layer type: 0=bitmap, 1=text (text layer also contains bitmap)

  4 bytes - layer x-pos
  4 bytes - layer y-pos
  4 bytes - layer width
  4 bytes - layer height
  1 byte - opacity (0..100)
  1 byte - visible
  2 bytes - blendmode

  4 bytes - size in bytes of layer bitmap data
  n bytes - layer bitmap data in ARGB format (not premultiplied)

  4 bytes - size in bytes of layer mask data (0 if no mask)
  1 byte - number of layer style effects
  for every effect
     4 bytes - size in bytes of effect data
     1 byte - type of effect
     n bytes - effect data (TODO)
  end every effect

  2 bytes - unknown
  if text layer
    text + font data (TODO)
  end if

end every layer

(TODO: Merged image data may be at the end ?)

[edit] Software

[edit] Links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox