That's an options.
It seems that the width and height were used before, here is a snip of the svg.py file:
self.width = (aa_image.width+1)*aa_image.nominal_size*aa_image.aspect_ratio self.height = (aa_image.height+1)*aa_image.nominal_size if xml_header: self.file_like.write("""\ <?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="%s" height="%s" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <!-- automatically generated by aafigure --> """ % ( '100%', #self._num(self.width), '100%', #self._num(self.height) )) else: self.file_like.write("""<svg width="%s" height="%s" version="1.1" xmlns="http://www.w3.org/2000/svg">\n""" % ( self._num(self.width), self._num(self.height) ))
For some reason it seems like the real image width and height is only used when an SVG without header is requested.
I don't know why this is, so I'll wait for Chris Liechti comments before doing anything...
That's an options.
It seems that the width and height were used before, here is a snip of the svg.py file:
self.width = (aa_image. width+1) *aa_image. nominal_ size*aa_ image.aspect_ ratio height+ 1)*aa_image. nominal_ size
self. file_like. write(" ""\ www.w3. org/Graphics/ SVG/1.1/ DTD/svg11. dtd">
self.height = (aa_image.
if xml_header:
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://
<svg width="%s" height="%s" version="1.1" xmlns="http:// www.w3. org/2000/ svg" www.w3. org/1999/ xlink">
'100% ', #self._ num(self. width),
'100% ', #self._ num(self. height)
self. file_like. write(" ""<svg width="%s" height="%s" version="1.1" xmlns="http:// www.w3. org/2000/ svg">\n""" % (
self. _num(self. width),
self. _num(self. height)
xmlns:xlink="http://
<!-- automatically generated by aafigure -->
""" % (
))
else:
))
For some reason it seems like the real image width and height is only used when an SVG without header is requested.
I don't know why this is, so I'll wait for Chris Liechti comments before doing anything...