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

Add additional file types and functions #4

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

iwatakeshi
Copy link

This pull request adds support for .ico, .bmp, .tiff, and .webp. In addition, in cases where auto file type detection fails, new functions were added to cover that issue; allowing anyone to manually enter the file extension. Finally, with this pull request, it's now possible to convert an image buffer to a base64 encoded string. よろしくお願いします。

@iwatakeshi
Copy link
Author

There are additional changes that I will be making, so I will close this PR for now and reopen it at a later time..

@iwatakeshi iwatakeshi closed this May 7, 2019
@iwatakeshi iwatakeshi reopened this May 9, 2019
@iwatakeshi
Copy link
Author

Image detection is now handled by imghdr.

@iwatakeshi iwatakeshi changed the title Feature: Add additional file types and functions Add additional file types and functions May 9, 2019
@laris
Copy link

laris commented Feb 10, 2022

OK for test, but I got some error like this:

thread 'main' panicked at 'range end index 4169 out of range for slice of length 4168', /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/alloc/src/string.rs:1672:36

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