[CREATE] OpenRaster clarifications

Calle Laakkonen calle at luolamies.org
Mon Jun 22 09:53:47 PDT 2009


On Saturday 20 June 2009, Cyrille Berger wrote:
> > First, layers and nested layer stacks have coordinates which default to
> > 0. I assume these are relative to the parent element? For example if a
> > have a layer stack like this:
> > <stack>
> > 	<stack x="10" y="10">
> > 		<layer x="-5" y="0"/>
> > 	</stack>
> > </stack>
> > In this case, is (5, 10) the real position of the layer or are all
> > coordinates absolute?
>
> Currently Krita saves using global coordinate. I think they are arguments
> against/in favor of each, but in my opinion, the one in favor of global
> outweight the local one, I think it's much much easier to work with only
> one global frame than with frame a frame per group.

The current specification defines x and y attributes for a stack, which 
implies relative coordinates. These should be removed, I think, if 
standardising on absolute coordinates for everything.

> > Finally, what's the status of the text element currently? DrawPile has
> > annotations, which are pretty much equivalent to text layers in other
> > programs (except that DP annotations always float on top of the image),
> > so naturally I'd like to be able to save those as well.
>
> There is currently nothing defined. But I am thinking that the choice is:
> * the <text> element of ODF
> * or since we plan to allow to have SVG layers, if the svg text element is
> sufficient for openraster need, it could be possible to save text as a SVG
> layer

ODF seems like an interesting choice, but I'm a little concerned about the 
ease of implementation. ODF is a huge standard so the desired subset should 
be defined well.
Also, some applications might not support full rich text editing, so perhaps 
providing some kind of a simplified fallback would be a good idea.

On a related note, what's the attitude towards application specific 
extensions? I'd like to be able to save my annotation layers, so can I just 
put them in a namespaced element like <drawpile:annotation> until the real 
text layers are included in the standard?

	-Calle


More information about the CREATE mailing list