Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am relatively new to the concept of layers in image editing software. If I understand correctly, some image/file formats such as Paint.NET's .pdn or Photoshop's .psd support layers, but others such as .bmp or .jpeg don't.

I was wondering if anybody knows of an image file format that supports layers and that is relatively "open", in the sense that can be opened in different image editors (preferably lightweight and non-proprietary software) and for which read & write code libraries (e.g. in Python, C, C++, MATLAB) exist.

share|improve this question
3  
Photoshop's file formats are documented, actually. –  Јοеу May 12 '11 at 18:13
add comment

4 Answers

TIFF can contain layers. This format should be supported by almost all image viewers.

share|improve this answer
2  
Layers are not included in baseline TIFF. –  Mike Simpson May 12 '11 at 22:38
add comment

In a practical sense, .psd (photoshop) is going to be the most portable format with the widest reach and most implementations, despite it not being "open".

share|improve this answer
1  
As someone who's sometimes called on to edit media (but has no way to access photoshop), I would disagree. –  isaaclw Oct 4 '13 at 20:48
add comment

You can try OpenRaster, which has some support by applications and is 100% open. For opening it, there is libora. Note that I never really tried it, I just know about it for some time. It's not so famous, but it's the only format I know which does not seem to be very specific to one application.

share|improve this answer
add comment

If you don't need raster support in the representation, but only in the resulting files, try SVG format with rendering down to whatever raster format when needed.

http://www.w3.org/Graphics/SVG/

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.