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

Return nil if image size is zero on iTerm2 #25

Merged
merged 1 commit into from
Oct 12, 2019

Conversation

yoichi
Copy link
Contributor

@yoichi yoichi commented Oct 12, 2019

On iTerm2, size 0 image is passed to the png encoder and cause error in it:

$ ./longcat -H  -l 0
2019/10/12 09:44:18 png: invalid format: invalid image size: 0x0

By returning first as with other backends, avoiding Encoder error.

avoid "png: invalid format: invalid image size"
@mattn mattn merged commit 2f24f07 into mattn:master Oct 12, 2019
@mattn
Copy link
Owner

mattn commented Oct 12, 2019

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants