-
Notifications
You must be signed in to change notification settings - Fork 109
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
Adds a level option to gifsicle #51
Conversation
I've decided if |
Great! But few notes: as |
Also I would prefer if you can create a feature branch (unless it will require another pull request, I will add notes about contribution to readme) and make travis happy ;) |
I will make a featurebranch and work on the specs. I was away for the weekend, but I am planning on looking at this during the week, thanks for your feedback, I will get back to you. |
Conflicts: lib/image_optim/worker/gifsicle.rb
Hey @toy I have cleaned the code up, and merged master in. I don't think I can make it a featurebranch without making a new PR. Do you know anything about these spec failures?
|
args.unshift('--interlace') if interlace | ||
args.unshift('--careful') if careful | ||
args.unshift('--optimize=#{level}') if level |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No interpolation happens.
gifsicle
shows only warning about getting "#{level}", so I've created an issue (kohler/gifsicle#29) as this should abort execution.
@kaspergrubbe Sorry for delay with reply. That failure means at least that I need to make failure for that spec more descriptive :) I've added few notes, also please run |
Hey @toy, no worries for the delay, we are all busy :-) Specs passing, and your notes are fixed. I've played around with the descriptions and decided than my initial ones were too long, let me know what you think. |
Nice! |
So the specs worked, good! :P Glad to have this merged, thanks! |
Oi!
I had an issue with corruption on some gifs with gifsicle. The corruption (not relevant for image_optim) happened after a resize like:
I've also added the
--careful
flag from gifsicle so we produce more compatible gifs, but that might have been a mistake, and please notify if you want me to remove it.Gifsicle actually obeys the flag
-O0
so I considered using that instead of removing the flag, but since it isn't documented by Gifsicle I opted for the solution without-O
for when level is zero.