JPEXS Free Flash Decompiler Issue Tracker

If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler

NEW : We have got a new blog where we post some interesting SWF internals info.

List of issuesList of issues

#2465 Follow-up on #2464 : zoom level impact linewidth on SVG export
Author:
Date created:
Type: question
Visibility: Everybody
Assigned to:
Labels: ExportSVG
State: opened Help

[I can't send a message on the original issue #2464 since it was closed, so I'm opening a new issue] So after the fix of #2464, I did more extensive testing, and I found that in some sprites, the linewidth is now too thick (for my usecase)... After more exploration, I found that the zoom level impact the linewidth when exporting as SVG (so in my case, I export with zoom level 2 so that the resulting linewidth is twice thinner, which is what I expect). I just wanted to point it out, I don't think it's something to be fixed ? But the maintainers will know better than me. Something related : the newly introduced `ffdec:original-stroke-width` attribute changes based on the zoom level. When exporting as SVG with the command with `-zoom 1` for the object 816 (see the linked SWF file in #2464), if we look at the last path element for example, we have `ffdec:original-stroke-width="0.1"` and `stroke-width="1.0"`. If we do the same but with `-zoom 2`, the last path element have `ffdec:original-stroke-width="0.2"` and `stroke-width="0.5"` Not sure if it's expected or not, again the maintainers will know better. Feel free to close this issue, I opened it mainly for documentation purpose (for my future-self...)
Yes, this is because the Flash player displays a minimum stroke width of 1 pixel (no matter how scaled is object on stage). In the issue #2464, the shape had stroke width less than 1px on 100% zoom level, that's why it was modified - the stroke-width attribute was changed to be real 1px and the original unchanged stroke-width was placed into "ffdec:original-stroke-width" just for the info. Also ffdec:has-small-stroke="true" attribute was added. It might be weird that in SVG something is different on different zoom levels, but I tried to mimic the Flash player behavior...
State: new→opened
Thanks for the details ! > I tried to mimic the Flash player behavior I agree with you, that seems to be the right path forward. Thanks !