On 5/8/07, Jon A. Cruz <jon@...18...> wrote:
On May 8, 2007, at 6:29 PM, Aurélio A. Heckert wrote:
(...) When we try to change the contrast on a raster image the XML changes from:
<image xlink:href="img.jpg" />
to this: openraster:image openraster:layers <openraster:brightness-contrast contrast='1.4'/> <openraster:layer src='img.jpg'/> </openraster:layers> </openraster:image>
We can use the menu "object > raster > aplay raster changes" and the OpenRaster block comes to a svg:image. It will help to send the SVG file to other softwares.
Well... the first problem is that SVG only requires software to support PNG, JPEG and SVG, so we really can't have <image> tag linked to anything else and still stay universal.
Ok. :-) No OpenRaster link on <image>. Like i think.
The second, and larger, problem is that switching from using standard SVG <image> conventions to some custom namespace will make the SVG file non-standard. That is, if we send the SVG over to an arbitrary program that handles SVG, it will not display correctly unless the destructive change back to <image> has taken place.
Yes. You are right. By that i propose the menu "object > raster > aplay raster changes" But you give a better idea...
To balance that we could just have the linked <image> updated whenever the openraster parts are updated, but that looses a bit.
Thanks! You help the idea! Change on my proposal:
The svg:image and openraster:image still existing forever. Like that: <image id="image123" xlink:href="data:image/png;base64..." inkscape:orlink="#or123" /> <openraster:image id="or123"> openraster:layers <openraster:brightness-contrast contrast='1.4'/> <openraster:layer src='img.jpg'/> </openraster:layers> </openraster:image>
When a image is selected the Inkscape knows the OpenRaster reference and allow the user to change the OpenRaster defs by some "Raster Properties" window. When it is updated, a new PNG image data is updated on <images>'s xlink:href attribute.
Well. The designer boss will be happy and the SVG will still viewable for other programs. :-)
Thanks, Aurium