SVG not scaled on Symbian

Asked by Nadav

Hi,

I'm a Symbian (Nokia's main OS) programmer. I have created the simplest image (a square) using Inkscape, and then I've added it to the project: I used Nokia's Carbide C++ to create an empty GUI project, and added the image in several sizes.

The result was that the image was not scaled. Instead, only parts of it were visible.

Is it a bug by Inkscape or by Carbide C++? How can that be fixed?

Thanks,
Nadav

Question information

Language:
English Edit question
Status:
Solved
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Solved by:
mahfiaz
Solved:
Last query:
Last reply:
Revision history for this message
mahfiaz (mahfiaz) said :
#1

Inkscape generated svg files are fine and scale well. Try these with firefox for example. This has to be problem of carbide.
Btw, inkscape SVG contains some extra information for inkscape itself, which cannot be used by other svg apps (but not needed for simple rectangle). To get rid of this extra non-svg information you could save as plain svg.

Revision history for this message
Nadav (nadav70) said :
#2

Hi,

Thanks for your answer.

This is a bit strange, because I didn't have this problem with an image that I got from a graphic designer, probably using some other editing software. It could be that this is indeed Carbide's or Symbian fault. Perhaps they don't support some standard SVG feature that Inkspace is using, but the bottom line is that I cannot use Inkspace to create images for Nokia phones.

Also, when I tried to display this in Firefox, it didn't seem to scale. If the object size was smaller then the original SVG design, then I got scrolbars inside firefox, and the recangle did not scale.

I used this html:

<html>
<body>
<object data="drawing.svg" type="image/svg+xml" width="100" height="100">
    <embed src="drawing.svg" type="image/svg+xml" width="100" height="100" />
</object>
</body>
</html>

The image was:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
   xmlns:svg="http://www.w3.org/2000/svg"
   xmlns="http://www.w3.org/2000/svg"
   version="1.0"
   width="572.85712"
   height="512.85718"
   id="svg2">
  <defs
     id="defs4" />
  <g
     transform="translate(-57.857143,-204.50504)"
     id="layer1">
    <rect
       width="562.85712"
       height="502.85715"
       rx="4.181818"
       ry="4.181818"
       x="62.857143"
       y="209.50504"
       id="rect2383"
       style="opacity:1;fill:#ff0000;fill-opacity:1;fill-rule:evenodd;stroke:#070000;stroke-width:10;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
  </g>
</svg>

Revision history for this message
mahfiaz (mahfiaz) said :
#3

Hi
Could you post a simple example of svg which works, so we could see what's the difference. It most probably is either viewbox or other svg tag attributes.

Revision history for this message
Nadav (nadav70) said :
#4

Hi,

I've opened a bug on it, with attachments that include one svg created by Inkspace, one svg created by Adobe's Illustrator an HTML page that uses both of them. I've also included a bitmap, containing the result of the HTML page in Firefox.

You can see it in this link: https://bugs.launchpad.net/inkscape/+bug/310265

Cheers,
Nadav

Revision history for this message
Best mahfiaz (mahfiaz) said :
#5

You could close this question here, as you probably got enough information from bugreport.

Regards

Revision history for this message
Nadav (nadav70) said :
#6

Thanks mahfiaz, that solved my question.