Saved SVG is wrong after resizing

Bug #1212641 reported by x2nie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Unassigned

Bug Description

I got some lost of portion shape after resizing.
The error is not shown inside inkscape, but we can see that wrong by using web-browser or svg viewer.

How to repeat the mistake:

-. download below attachment (kelopak.svg)
1. Open this "kelopak.svg" via web-browser. (to see the unmodified shape).
2. Open the "kelopak.svg" in Inkscape.
3. Resize the BIG GREEN STAR shape, until whole edges/bound of the star is inside the document rect.
4. save.
5. Open the "kelopak.svg" in other tab/window of web-browser. (see the modified shape).

You will see that the BIG GREEN STAR becomes CIRCLE !

I use Inkscape 0.48 + Google Chrome 28.0.1500.95 m ,on Windows 7.

Revision history for this message
x2nie (x2nie) wrote :
tags: added: filters-svg
description: updated
Revision history for this message
jazzynico (jazzynico) wrote :

Confirmed on Windows XP, Inkscape trunk revision 12481, with Firefox 23 and Batik 1.7.

Original path:
      d="m 636.45712,583.79077 c 35.2853,20.08116 67.60542,50.65088 92.58476,90.01482 -22.46384,4.69167 -44.86859,7.17874 -66.8725,7.45674 -17.10828,0.21827 -33.96712,-0.88203 -50.43443,-3.22704 22.3951,34.42001 37.27799,76.764 41.60508,123.48252 -1.98375,-0.5647 -3.95884,-1.14494 -5.92503,-1.7406 -36.92234,-11.18713 -70.6485,-27.86434 -100.03031,-48.86453 2.86038,28.95956 0.70099,59.63564 -7.10725,90.51791 -3.40974,12.75329 -7.808,25.53026 -13.18299,38.21062 -29.56861,-28.10437 -53.18453,-60.06261 -70.3086,-94.03227 -6.55792,16.46886 -15.02206,32.6448 -25.35729,48.17005 -14.09014,20.29913 -31.62249,39.40504 -52.27446,56.48468 -13.19669,-38.58521 -19.50118,-77.84151 -18.88828,-115.84938 -4.6856,4.2824 -9.55311,8.42961 -14.59739,12.42835 -28.71539,20.6308 -63.67652,36.00916 -102.66307,44.2312 4.45959,-28.77874 12.19168,-56.22974 22.87484,-81.73471 4.27501,-10.20658 9.01987,-20.10342 14.20276,-29.6592 -40.08877,8.97653 -84.94655,8.22908 -130.25708,-4.04012 4.87971,-6.65028 9.94494,-13.08304 15.18442,-19.28719 20.68231,-24.50096 44.09399,-45.33509 69.29942,-62.22857 -33.76634,-9.04293 -67.33006,-25.91436 -97.82904,-50.33328 -5.31266,-4.35181 -10.52907,-8.9374 -15.6343,-13.75101 36.65372,-17.88066 74.83631,-28.94268 112.62822,-33.16086 -17.46836,-15.87177 -33.23973,-34.76354 -46.50596,-56.36238 -9.62799,-16.23003 -17.82846,-33.97256 -24.35856,-52.94437 40.76164,1.19591 79.70802,9.14728 115.14185,22.97174 -3.6708,-9.61947 -6.8184,-19.57937 -9.39976,-29.82951 -6.8097,-31.02713 -8.00086,-64.95019 -2.78988,-99.88787 30.8267,17.21535 58.14735,38.25751 81.09125,62.24145 3.5525,3.71615 7.00022,7.50203 10.34188,11.35318 5.49419,-40.66457 22.12018,-82.39138 49.41947,-120.51071 9.54717,14.62954 17.89918,29.69077 25.01367,45.03887 9.49363,20.48048 16.77928,41.47212 21.85216,62.61639 23.33594,-32.77261 56.19966,-61.69835 97.00368,-82.67449 0.88366,-0.44338 1.77085,-0.88306 2.66155,-1.31903 3.97049,40.62779 0.85738,80.23381 -8.4701,117.11369 23.46582,-11.98782 49.75104,-20.6584 77.94389,-25.21752 15.88782,-2.33982 32.38684,-3.35103 49.29154,-2.94572 -15.32865,37.78741 -36.32533,71.54551 -61.63899,99.91965 12.46758,-0.0583 25.13818,0.79541 37.90095,2.60858 29.30962,4.92996 59.13216,15.43328 87.83178,31.37745 -30.57128,27.51269 -64.29822,48.82367 -99.3479,63.36247 z"

Modified path:
d="m 688.57141,583.79077 a 257.14285,257.14285 0 1 1 -0.0384,-4.44596"

Changed in inkscape:
importance: Undecided → Medium
status: New → Triaged
tags: added: livepatheffects
removed: filters-svg saving
Revision history for this message
jazzynico (jazzynico) wrote :

Steps to reproduce from scratch:
1. Draw a circle.
2. Apply a Live path effect (tested with Pattern along path and Gears).
3. Open the file with a web browser: it looks as in Inkscape.
4. Resize or move the circle.
5. Open in a browser again: the LPE is no longer applied.

Note that the file renders correctly if you use a rectangle, a star or any shape except a circle.

Revision history for this message
su_v (suv-lp) wrote :

> 4. Resize or move the circle.
> 5. Open in a browser again: the LPE is no longer applied.

Based on tests with archived builds on OS X 10.7.5:
- reproduced with rev <= 12676
- not reproduced with rev >= 12677
this part of the bug was fixed by the changes in rev 12677:
<http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/12677>

With the changes in 12677 however, the regenerated LPE result after moving or scaling the arc is unexpectedly different from the original state:
- reproduced with 12677 <= rev <= 12881
- not reproduced with rev >= 12885
the second part was likely fixed by the changes in rev 12884
<http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/12884>

Closing as 'Fix committed' for 0.91 - please reopen if this was done in error and still reproduces with current trunk builds.

Authors contributing to the fix:
Markus Engel (r12677), Jabiertxof (r12884)

Changed in inkscape:
milestone: none → 0.91
status: Triaged → Fix Committed
Bryce Harrington (bryce)
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.