maltaisn / swf-convert

Utility to convert static SWF files to PDF or SVG
GNU Lesser General Public License v3.0
23 stars 5 forks source link

Some paths are badly converted #1

Closed maltaisn closed 3 years ago

maltaisn commented 4 years ago

The program sometimes fail to convert some paths to the intermediate representation, so both SVG and PDF are affected.

This seems to be a common problem in many applications that convert SWF to SVG. The algorithm used by swf-convert was copied from the one used by as3swf. The result is that this file gets converted to the path seen in the first image (viewed from Inkscape with added stroke) while the second image is the expected output (viewed from Flash Player or Lightspark).

I searched for another algorithm, however all of the following open source programs produce the same wrong output:

I also asked for help on StackOverflow. It's entirely possible that there's currently no program able to reliably convert SWF shapes to SVG, in which case this issue will pretty much exist forever.

jindrapetrik commented 3 years ago

Hi, I am not sure, but I think I fixed the issue in FFdec - see the issue in its tracker.

maltaisn commented 3 years ago

Thanks a lot! I fixed it here and it seems to work pretty great. Also congrats on the recent progress on FFdec, I see it's been going pretty fast for the past two months.