Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix animated gif generation. #107

Merged
merged 1 commit into from
Jul 3, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion bin/lolcommits
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ def do_gif
puts "*** Generating animated gif."

gif = MiniMagick::Image.new File.join configuration.archivedir, filename
gif.run_command("convert", "-delay 50 -loop 0 #{lolimages.join(' ')} #{gif.path}")

# This is for ruby 1.8.7, *lolimages just doesn't work with ruby 187
gif.run_command("convert", *[ "-delay", "50", "-loop", "0", lolimages, "#{gif.path}"].flatten)

puts "*** #{gif.path} generated."
end
Expand Down