-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[New Lib] heic2any #35798
Comments
Triggered auto assignment to @Julesssss ( |
New Library Review
Once these questions are answered, start a thread in #engineering-chat, ping the
|
Hi @BartoszGrajdek, before we discuss the library can you comment on the linked issue and add a proposal for how this resolves the issue? Thanks. |
Reading through the discussion here it looks positive, but I'll need to share a brief overview comment and tag the internal team. |
@Julesssss done 😄 #12531 (comment) |
Proposal for solution
|
Here's the Slack vote |
Tagging @Expensify/mobile-deployers again, as the final vote will be on this issue. |
After a good discussion, we are aligned on not implementing the library and not trying to solve the problem with an alternative solution. We'll do nothing for now as this is an edge case with solutions relying on workarounds, large libraries, and non-cross-platform solutions. Closing this issue. |
Reopening b/c we have a new request to use this library here: #47078 (comment) I am working on writing this up in Slack today 🙏 |
@Beamanator can you create a new issue for the updated conversation please |
Surrreeeeeeeeeeeee nothingmoreintheworldthati'dratherdoooooooooooo |
Name of library: heic2any
Details
Link to package:
Problem solved by using this package:
Issue: [New Feature] [Polish] Show attachment previews for common file types #12531
We want to handle previews of image files, HEIC files included which are not fully supported yet.
Recently we have added
expo-image
to the project, this allows us to handle HEIC files on Android & iOS, but unfortunately web/desktop is still not supported (docs).Now we have discussed a few possibilities (here's the Slack thread), but in the end settled on using
expo-image
we already have in the project for mobile andheic2any
on web/desktop. This way we won't change the mobile bundle size and have all devices with working previews.The main alternative (it's ~0.4MB bigger) we could consider using is libheif, but the problem is that it's written in C++ and it's not providing any easy-to-use JS bundle. To utilize it we would need to set up a custom way to include it in our project i.e. using web assembly.
Not that I know of, but this is not the type of library that would raise any security concerns.
0
This library would add 1.3MB to web & desktop bundles, but since won't use it on mobile we want to make sure it doesn't affect iOS/android bundle sizes.
The text was updated successfully, but these errors were encountered: