Should gatsby-plugin-sharp
handle BMP image files?
#37396
Unanswered
Jeff-Tian
asked this question in
Ideas / Feature Requests
Replies: 1 comment
-
I see there is a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
See lovell/sharp#3509, the
sharp
doesn't support BMP image natively. Should thengatsby-plugin-sharp
handle BMP image files?If should, then a wrapper is needed before calling
sharp
. That wrapper will detect the image's first 2 bytes to determine if it's a BMP-type image, and then usebmp-js
to decode the file before pipes intosharp
for a BMP-type image.If not, then a site containing a BMP image file will stop building and exit when met this file. How do we solve this building halt issue?
What do you think is the best way to handle BMP images?
Beta Was this translation helpful? Give feedback.
All reactions