-
Notifications
You must be signed in to change notification settings - Fork 255
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
convert warns for greyscale captures #35
Comments
Does it prevent it from creating the output gif? |
Yeah - the generated gif has the warning all over
|
Do you have an example I can see? |
Oh, I see what you mean. Can I get a few of the pngs that you're using? http://stackoverflow.com/a/11451064/215969
|
The pngs are generated by ttygif afaik.
|
Someone else contributed the osx version which uses If you give me an example png that creates the problem I'll try to find appropriate flags for I don't want to pipe the output to |
There is a workaround for this, make your terminal full screen and run ttygif with -f option. works for Mac OS's native terminal.app, did not try iTerm. I think the issue is caused by this line |
I just wrote a fix for this and submitted a pull request for this, by redirecting error output, before reading that you didn't want to do that. Sorry. It does fix it completely, because convert just complains but it still processes things correctly. Removing "-background white" from the convert argument list also fixes it. Personally, the call to convert says "-quiet", so it specifically doesn't want error messages. I'd say it is a bug in "convert" not to honor the "-quiet" argument. And if you tell it "-quiet", I see no harm in just redirecting the output to null - there is clearly an interest in not getting any output. Proper fixes would require proper command-line args to ttygif, which is still quite a bit of effort to add. Otherwise thanks for the awesome work! |
sometimes screencapture saves png file that's greyscale (e.g., black white console). when this happens, convert will complain and warn about not being able to convert colors space:
https://github.com/icholy/ttygif/blob/master/ttygif_osx.c#L125
It helps to disable warning by redirecting it to /dev/null
The text was updated successfully, but these errors were encountered: