You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Image Quality is too low while i am taking view shot of my screen #505
changed the title [-]Image Quality is too low while i am taking view show of my screen[/-][+]Image Quality is too low while i am taking view shot of my screen[/+]on Jan 18, 2024
Image quality issues on Android can come from a few different places, so let's narrow it down before drawing conclusions.
In the snippet you shared, you await viewShotRef.current.capture() (default returns a tmpfile PNG), then RNFS.readFile(uri, 'base64') and RNFS.writeFile(...) to a .jpg extension. That re-encode chain can lose quality if any step re-compresses the bytes — and depending on how RNFetchBlob then handles the file, you can lose more on each round-trip.
Could you please re-test on react-native-view-shot@5.0.0 with the simplest possible pattern, and report back?
consturi=awaitviewShotRef.current.capture({format: 'jpg',quality: 0.95,result: 'tmpfile',});// uri is already a JPG file — copy / share it directly without re-encoding
If quality is still degraded with that pattern, please share:
the exact format / quality / width / height options you pass,
device model + Android API level,
the on-screen size of the captured view vs the resolution of the captured image,
a side-by-side: original vs captured.
Leaving open until we have a confirmed repro on v5.0.0 with a minimal pattern.
Activity
[-]Image Quality is too low while i am taking view show of my screen[/-][+]Image Quality is too low while i am taking view shot of my screen[/+]muyushifang07 commentedon Sep 10, 2024
me too, On the Android platform, the height of the screenshot is blurry when the height exceeds 1000。
newoved commentedon Feb 12, 2025
@muyushifang07 This issue has been confirmed on Android too, do you know how to solve it?
dtyrrell commentedon May 9, 2025
I'm also experiencing this problem, has anyone found a solution?
gre commentedon May 2, 2026
Hi @krupal811 and others on this thread,
Image quality issues on Android can come from a few different places, so let's narrow it down before drawing conclusions.
In the snippet you shared, you
await viewShotRef.current.capture()(default returns a tmpfile PNG), thenRNFS.readFile(uri, 'base64')andRNFS.writeFile(...)to a.jpgextension. That re-encode chain can lose quality if any step re-compresses the bytes — and depending on how RNFetchBlob then handles the file, you can lose more on each round-trip.Could you please re-test on
react-native-view-shot@5.0.0with the simplest possible pattern, and report back?If quality is still degraded with that pattern, please share:
format/quality/width/heightoptions you pass,Leaving open until we have a confirmed repro on v5.0.0 with a minimal pattern.
Release notes: https://github.com/gre/react-native-view-shot/releases/tag/v5.0.0