[CREATE] create resources, OpenRaster and tiled layers

Martin Renold martinxyz at gmx.ch
Sat May 23 12:00:26 PDT 2009


On Fri, May 22, 2009 at 02:52:19PM +0200, Boudewijn Rempt wrote:
> Ideally, we'd be able to interchange images that contain such a background in 
> OpenRaster.

Yes. And I think there should also be an (optional) fallback mechanism for
programs that don't implement tiled layers.  (Speaking more generally, also
for most other features that will be added to OpenRaster, I hope.)

Ideally, this would include information like "if you don't know this
feature, here is...  a fallback that looks the same / a fallback that looks
different / no fallback"

> I think it would be generally useful to be able to save layers that have tiled 
> contents,

Maybe this could be described with a construct like this:

<layer name="rendered background" src="data/background.png" x="0" y="0">
<filter name="tiled background" type="tiling" replaces="rendered background">
  <layer src="data/bg_tile.png"/>
</filter>

> and that it would also be nice to have an explicit tag that declares such
> a layer to be a background.

With the solution above, adding something like role="background" might be
possible.  However this allows quite generic (complex) backgrounds.  At
least for MyPaint I'd have to check that a) the object with the
role="background" really solid, and b) it is really an infinite layer and c)
it is actually only one tiled image.

So maybe this could be added to simplify things:

<background type="tiled" src="data/bg_tile.png" replaces="tiled background">

Other thoughts?  I should also confess that I haven't yet taken time to
study how Inkscape/SVG or OpenDocument solve similar problems...

bye,
Martin


More information about the CREATE mailing list