Skip to content

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.

2 participants