Code Monkey home page Code Monkey logo

motion-photo-extractor's People

Contributors

matthewalner avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

Forkers

tobias74 prabhieg

motion-photo-extractor's Issues

Thanks - One fix for windows

Thanks a lot for this. Very helpful! Didn't quite work in Windows because it was not writing output as bin file.

I modded:
File.open("#{file_path}/#{name}_Extracted.jpg", 'w') { |file| file.write(data[0]) }
File.open("#{file_path}/#{name}_Extracted.mp4", 'w') { |file| file.write(data[1]) }
to:
File.open("#{file_path}/#{name}_Extracted.jpg", 'wb') { |file| file.write(data[0]) }
File.open("#{file_path}/#{name}_Extracted.mp4", 'wb') { |file| file.write(data[1]) }

And then it worked perfectly. Not sure how that affects output on other OSes.

Problems with running: fetch': key not found: :j (KeyError)

20:26 [vip:/tmp]$ motionPhoto.rb -p x.jpg Path: x.jpg /usr/lib/ruby/vendor_ruby/ruby-progressbar/format/molecule.rb:29:in fetch': key not found: :j (KeyError)
from /usr/lib/ruby/vendor_ruby/ruby-progressbar/format/molecule.rb:29:in initialize' from /usr/lib/ruby/vendor_ruby/ruby-progressbar/format/base.rb:48:in new'
from /usr/lib/ruby/vendor_ruby/ruby-progressbar/format/base.rb:48:in block in parse' from /usr/lib/ruby/vendor_ruby/ruby-progressbar/format/base.rb:47:in scan'
from /usr/lib/ruby/vendor_ruby/ruby-progressbar/format/base.rb:47:in parse' from /usr/lib/ruby/vendor_ruby/ruby-progressbar/format/base.rb:8:in initialize'
from /usr/lib/ruby/vendor_ruby/ruby-progressbar/formatter.rb:35:in new' from /usr/lib/ruby/vendor_ruby/ruby-progressbar/formatter.rb:35:in format_string='
from /usr/lib/ruby/vendor_ruby/ruby-progressbar/formatter.rb:8:in initialize' from /usr/lib/ruby/vendor_ruby/ruby-progressbar/base.rb:12:in initialize'
from /usr/lib/ruby/vendor_ruby/ruby-progressbar.rb:10:in new' from /usr/lib/ruby/vendor_ruby/ruby-progressbar.rb:10:in create'
from /home/vip/bin/motionPhoto.rb:75:in process_images' from /home/vip/bin/motionPhoto.rb:88:in

'
`

ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]
ruby-progressbar 1.4.2-1

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.