Skip to content
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

Image quality low until re-opened #12

Open
pierroo opened this issue Dec 12, 2022 · 6 comments
Open

Image quality low until re-opened #12

pierroo opened this issue Dec 12, 2022 · 6 comments

Comments

@pierroo
Copy link

pierroo commented Dec 12, 2022

Hi,

Everywhere I am using this Lightbox component in my app I am facing the same issue:

The first time I click on the image to have the lightbox displayed, it is slightly blurred / low quality looking.
Then I close the lightbox, and re-tap on the image: this time the quality is perfect as expected.

And if I close the view in which this image + lightbox is rendered, I have to do the same again: a first open / close, then reopening to see the good quality image.

This seems to happen only with FastImage.

Using v0.8.8

Code as below:

<Lightbox activeProps={{ style: { flex: 1, resizeMode: 'contain', width: null } }}>
          <FastImage
            style={{ width: 100, height: 100 }}
            source={{ uri: photo }}
            resizeMode={FastImage.resizeMode.contain}
          />
        </Lightbox>
        

Any idea why this would happen?

@cbbfcd
Copy link
Owner

cbbfcd commented Jan 4, 2023

There are reproducible demos?

@pierroo
Copy link
Author

pierroo commented Jan 4, 2023

The code above is enough to reproduce the issue.
Make sure to use FastImage, and not react-native Image, for the issue only seems to happen with FastImage.
( should this issue be with FastImage library perhaps? not sure)

@jainminals
Copy link

Im also facing same issue. when i open image its get blurry image.

@jainminals
Copy link

The picture is not working as expected in the package picture get blur .

@henryteng07
Copy link

Did anyone find a fix for this? This is happening to only large images for me

@cbbfcd
Copy link
Owner

cbbfcd commented Sep 20, 2024

We apologize for the late response. The related issues will be resolved in the upcoming version. You are also welcome to join us in the co-development.

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

No branches or pull requests

4 participants