Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arbitrary transformations when saving the source svg #647

Closed
mlhoutel opened this issue Aug 25, 2022 · 1 comment
Closed

Arbitrary transformations when saving the source svg #647

mlhoutel opened this issue Aug 25, 2022 · 1 comment

Comments

@mlhoutel
Copy link
Contributor

Summary of your problem or feature request

In some cases, saving the source svg while editing sozi will arbitrarily move and resize some layers.

Version of Sozi and other relevant software

  • Which version of Sozi are you using? v22.03.25
  • Which drawing software did you use? Inkscape 0.92.2 (5c3e80d, 2017-08-06)
  • On which platform? CentOs7 x64
  • If your problem happens when playing a presentation, which browsers have you tried? Firefox 91.10.0esr (64-bit), Chromium 102.0.5005.115 (64-bit)

Steps to reproduce the problem

  1. Create a svg with an image in a layer with a redefined position:
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 100 100">
   <g>
      <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="100" height="100" viewBox="0 0 210 297">
         <g>
            <image width="206" height="80" id="image" x="2" y="2"
               href="https://pixnio.com/free-images/2018/08/21/2018-08-21-20-52-01-460x264.jpg">
            </image>
         </g>
      </svg>
   </g>
</svg>
  1. Open it in sozi, add 2 slides
  2. Add an animation with a translation and zoom on the second slide
  3. Save the sozi document
  4. Open the generated html => the animation works correctly
  5. Save the source svg document
  6. Save the sozi document
  7. Open the generated html => the image has been translated and scaled down

Expected behavior

Editing and saving the source svg should only take into account the updates of the document and apply them as such in the sozi project.

Observed behaviour

Editing and saving the source svg apply arbitrary translations and resize of layers in the sozi project.

@mlhoutel
Copy link
Contributor Author

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants