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

Scale image message based on the user's text area. #99

Merged
merged 1 commit into from Jun 16, 2019

Conversation

Projects
None yet
2 participants
@jrswab
Copy link
Contributor

commented Jun 15, 2019

Using the "image" package from the standard library the images loaded by gomuks now scale to one third the size of the text area.

The image data contains both hight and width while the scaling uses only width the option to scale by hight is possible if passed into CalculateBuffer(). ansimage.NewScaledFromReader() now takes the new variable based off the size of the buffers' width.

This may resolve issue #92

Scale image message based on the user's text area.
Using the "image" package from the standard library the images loaded by
gomuks now scale to one third the size of the text area. The image data
contains both hight and width while the scaling uses only width the
option to scale by hight is possible if passed into `CalculateBuffer()`.
`ansimage.NewScaledFromReader()` now takes the new variable based off
the size of the buffers' width.

This may resolve issue #92

@tulir tulir merged commit 3ebfb87 into tulir:master Jun 16, 2019

1 check passed

codeclimate All good!
Details

@jrswab jrswab deleted the jrswab:imageResize branch Jun 16, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.