Git Product home page Git Product logo

Comments (4)

KojiNakamaru avatar KojiNakamaru commented on September 3, 2024

We will fix it soon. For now could you please modify swf2lwf.rb as below?

diff --git a/tools/swf2lwf/swf2lwf.rb b/tools/swf2lwf/swf2lwf.rb
index 1f0e8b3..de737e5 100644
--- a/tools/swf2lwf/swf2lwf.rb
+++ b/tools/swf2lwf/swf2lwf.rb
@@ -58,10 +58,6 @@ begin
 rescue LoadError
   require 'rexml/document'
 end
-begin
-  require 'rb-img'
-rescue LoadError
-end

 LWF_HEADER_SIZE = 324

from lwf.

r2digi avatar r2digi commented on September 3, 2024

thanks! now this error...haha....trying to figure out ourselves too....

zoomcrypt-macbook-pro:swf2lwf zoomcrypt$ ruby swf2lwf.rb -p /Users/zoomcrypt/Desktop/LWFS_work/piece_blue.swf
/svn/lwf/tools/swf2lwf/lib/chunky_png/canvas/png_encoding.rb:370:in encode_png_pixels_to_scanline_method': No encoder found for color mode 3 and 8-bit depth! (ChunkyPNG::NotSupported) from /svn/lwf/tools/swf2lwf/lib/chunky_png/canvas/png_encoding.rb:210:inencode_png_image_pass_to_stream'
from /svn/lwf/tools/swf2lwf/lib/chunky_png/canvas/png_encoding.rb:174:in encode_png_image_without_interlacing' from /svn/lwf/tools/swf2lwf/lib/chunky_png/canvas/png_encoding.rb:161:inencode_png_pixelstream'
from /svn/lwf/tools/swf2lwf/lib/chunky_png/canvas/png_encoding.rb:85:in to_datastream' from /svn/lwf/tools/swf2lwf/lib/chunky_png/image.rb:62:into_datastream'
from /svn/lwf/tools/swf2lwf/lib/chunky_png/canvas/png_encoding.rb:35:in write' from /svn/lwf/tools/swf2lwf/lib/chunky_png/canvas/png_encoding.rb:43:inblock in save'
from /svn/lwf/tools/swf2lwf/lib/chunky_png/canvas/png_encoding.rb:43:in open' from /svn/lwf/tools/swf2lwf/lib/chunky_png/canvas/png_encoding.rb:43:insave'
from swf2lwf.rb:201:in export_png' from swf2lwf.rb:1037:inexport_png'
from swf2lwf.rb:4203:in block in swf2lwf' from swf2lwf.rb:4203:inmap'
from swf2lwf.rb:4203:in swf2lwf' from swf2lwf.rb:4250:in

'

from lwf.

KojiNakamaru avatar KojiNakamaru commented on September 3, 2024

New swf2lwf and corresponding gems are pushed. Could you please try this new one. Please note you need to install two gems placed under tools/swf2lwf/gems/.

from lwf.

r2digi avatar r2digi commented on September 3, 2024

ok i can export the PNG now after installing the two gems and also installing libpng and jpeg from macports. thanks!

from lwf.

Related Issues (20)

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.