Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement support for layers. #6

Open
bcampbell opened this issue Jul 24, 2015 · 3 comments
Open

Implement support for layers. #6

bcampbell opened this issue Jul 24, 2015 · 3 comments
Labels

Comments

@bcampbell
Copy link
Owner

No description provided.

@bcampbell
Copy link
Owner Author

Aim is to use OpenRaster as our 'native' file format.
There's a lot of ambiguity surrounding how to support animations in openraster. Seems to be an extension proposal but nothing too concrete. It'd be good to find if there are any existing apps that support animation in openraster files, and if there's any consensus building on how to do it...

@caiwan
Copy link
Contributor

caiwan commented Oct 1, 2015

This is a good idea.
Are muliple layers will be animated? Otherwise, I'd store the animation frames in separate layers; but somehow has to indicate that is is a multilayer animation, or not. The dirty way ia can come up, is store these informations in a separate file - like a human-readable/editable text. (json?) This could be usable even if having multipla layers, which are animated.
Photoshop' approach for animation is storing the layer states on keyframes. The animation is done by switching the visibility of layers. I don't think we'll have to have it.

Soon I'll have more freetime, I'll take a closer look on the recent code.

@bcampbell
Copy link
Owner Author

I've got layers pretty clear in my head now I think... it's the next major thing I want to tackle, and it makes a lot of other stuff much easier.
A partial brain dump of what I've got in mind:

  • each layer can be animated or static (so you could have a static background layer, with animated layers on top)
  • layers can all be different sizes and modes (paletted/rgb/rgba, non-square pixels, special palette restrictions etc...)
  • openraster handles layers (it's a zip file with a png file for each layer + metadata in XML). Easy to extend to animation, but need to see if there is any standardised way.
  • non-layered file formats saved with layers flattened into one
  • paletted layers can either share a single global palette, or have a palette per frame.
  • timing can be constant (eg "30fps") or set on a per-frame basis. (unsure if per-frame means different layers can have different key times or not...)

@bcampbell bcampbell changed the title No support for layers. Implement support for layers. Jan 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants