Get size on fast image?
See original GitHub issueIs it possible to get the size of a fast image the same way to get size via React Native’s Image.getSize()
?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:19
- Comments:10 (2 by maintainers)
Top Results From Across the Web
fast-image-size - npm
Simple stand alone module to just extract the image size from image file without using special image libraries.. Latest version: 0.1.3, ...
Read more >python - Get Image size WITHOUT loading image into memory
I compared the speed imagesize. get, magic. from_file, and PIL image to get the actual image size by timeit. The results showed that...
Read more >File: README — Documentation for fastimage (1.6.6)
Your app needs to find the size or type of an image. ... FastImage does this minimal fetch for image types GIF, JPEG,...
Read more >fast-image-size | Yarn - Package Manager
Simple stand alone module to just extract the image size from image file without using special image libraries. get image size, image size,...
Read more >Top 5 react-native-fast-image Code Examples - Snyk
To help you get started, we've selected a few react-native-fast-image examples, ... BORDER_GREY, height: size, width: size, borderRadius: rad, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@bemaverick it work from version 4.0.8 for me, maybe you need an update ?
@nica0012 You should use state to reload component who display your FastImage :
e.g :
@DylanVann I think an API involving a static
FastImage.getSize
or a callback onFastImage.preload
would be useful.My usecase is using FastImage inside of
react-native-image-zoom
. To use theonLoad
callback I would have to use a wrapping component that doesnt render theImageZoom
component until theonLoad
callback fires. This means I have to rerender theFastImage
component after I get the image size. Here’s my current solution usingImage.getSize
.https://gist.github.com/woodpav/1707e59feff35502ab9801bf84447c16