I have a system for downloading an image (using the FileSystem API) from an url and save it to local file (in cache directory).
The problem I have is with big images: normally the image gets downloaded and then i can retrieve the dimensions correctly, but if I have a big image (w: 800px, h: 15040px) then it gets downloaded, but it is smaller than the original size and when i get the dimensions, those are also smaller (w: 100px, h: 1880px).
I’d like to know if there are some limitations with the FileSystem API regarding the size of the files? or am I doing something wrong?
Info: I’m using the managed workflow, if you need anything else I can provide further info.
Thank you for having created a snack, the problem it’s exactly the one shown in the snack.
I’ve made further tests and if the image is downloaded then moved to the camera roll, the image has the right dimensions, but if you try to load the image even from the gallery, where for sure has the right dimensions, the dimensions retrieved are wrong and the image is smaller.
It now seems to be a problem about images in react-native …?