GithubHelp home page GithubHelp logo

for swf's sprite about swf-convert HOT 5 CLOSED

maltaisn avatar maltaisn commented on May 27, 2024
for swf's sprite

from swf-convert.

Comments (5)

maltaisn avatar maltaisn commented on May 27, 2024 1

Here's a pre-release with two new options:

  • -DrecursiveFrames: parse frames recursively in sprites
  • -DframeSize=[w,h]: manual frame size override (in inches)

I think I get the correct output with:

java -jar swf-convert.jar pdf file-b.swf -DrecursiveFrames -DframeSize=[8.5,11]

I guessed for the dimensions but it looks right. You tell me if it works for other files if you have any.

from swf-convert.

maltaisn avatar maltaisn commented on May 27, 2024

I'm not sure I understand. If you have a .swf file you can convert it to pdf or svg. Follow the instructions in the readme for how to run it.

from swf-convert.

skream27 avatar skream27 commented on May 27, 2024

the program you made converts the frame of the swf, but I need the one for the sprite of the swf. i'll send you a file, will you examine it? please open with jpexs flash decompiler and click sprites, you'll understand what I mean.
file-b.zip

from swf-convert.

maltaisn avatar maltaisn commented on May 27, 2024

Ok I made a change and it seems to work. The tool was made to parse only top-level frames and a single frame in sprites. Other frames in sprites were discarded since this is typically used for animation, not static content. I added an option to create pages for all frames in a sprite.

However there's another issue: your file indicates the frame dimensions to be 20x20 twips (1x1 pixel), so there's virtually nothing getting displayed. Are you aware of where the actual dimensions are set? If not, I can always provide an extra option to override the frame dimensions.

from swf-convert.

skream27 avatar skream27 commented on May 27, 2024

Maltaisn, thank you very much for all the hard work and effort you put into this project. I would like to opt for the option to change the dimensions manually. Can you send?

from swf-convert.

Related Issues (5)

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.