Giter Club home page Giter Club logo

swf-convert's People

Contributors

maltaisn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

swf-convert's Issues

Some paths are badly converted

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:

  • as3swf, gives the output above.
  • ffdec, seems to be based on as3swf, shapes displayed in the program are wrong too. An issue is opened here.
  • Flash2SVG, getting wrong paths too.
  • pyswf, again, similar output.
  • The algorithm described in the Swiffy thesis looks a lot like the one used in as3swf.

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.

Incapable of passing an ordered list of individual items to be merged converted to a pdf file

As far as i can understand the only way to pass file

  • use a directory with a list of files then specify one single output file
  • pass each input with respective output i.e. command pdf file1 file2 file3 -o outpout1.pdf output2.pdf output3.pdf , or i'll be prompted with the error message ERROR: Expected as many output files or directories as input.

Is there a way to pass only the list of input items with just one single output name ?

Some SWF shapes are not rendered in PDF

Hey, maltaisn, and thanks for the great tool!

Here's the issue -- this is a minimal example (only 160 bytes!):

bug.swf.zip

There's just one frame, and the only thing on that frame is a thin horizontal line. No animations or anything else. When converting to PDF this bar is not rendered.

I am using v. 0.0.2, running command:

java -jar swf-convert.jar pdf bug.swf -o bug.pdf -t tmp

Adding "-DdrawShapeBounds" to the command options shows the green horizontal bar bounds where the line ought to be.

Adding "-DdisableClipping" rectifies the problem (!), so there must be some problem within the clipping algo (if the algo is just 1 pixel off somewhere it could be just enough to erase thin lines).

Comma in the output file name

When running:

java -jar swf-convert.jar pdf "$SWF" -o "$PDF" -t "$TMPDIR"

where $SWF is a single file name and $PDF is also a single file name that contains a comma,
swf-convert exits with:

ERROR: Expected as many output files or directories as input.

Looks like a comma is searched for as a file separator.

for swf's sprite

can we do the same for swf's sprite, maltaisn? i don't have any code information, I don't even know how to run it. can you help?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.