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
When I used the scroll_screenshot package's captureAndSaveScreenshot method to capture a screenshot and obtained the base64String, I executed the following code: Gal.putImageBytes(base64Decode(base64String));
However, the image colors appeared inverted, as if in dark mode. This behavior was observed on both iOS and Android.
Additionally, I tried using the image_gallery_saver package to process the same base64String with the following code, but the color inversion did not occur: ImageGallerySaver.saveImage(base64Decode(base64String));
This was confirmed on iOS (Android has not been tested due to build errors).
When viewing the image saved with putImageBytes in the iOS "Photos" app or Android "Files" app, the thumbnail displays the correct colors, but when viewing the full image, the colors appear inverted.
This issue occurs with both .jpg and .png formats.
It is reproducible whether dark mode is enabled or disabled on the device.
The issue was reproduced on Android 13, 14, iOS 17.5, and 18.0.
It occurs on both real devices and simulators.
I also confirmed that the issue occurs with the following code: final tempDir = await getTemporaryDirectory(); Gal.putImage(tempDir.path);
I have attached the base64 text file that was passed as an argument, as well as the saved image files for reference. base64String_2024-10-24_11-08_21335.txt
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Did you check the documentation and it did not help?
Descrpition
When I used the scroll_screenshot package's
captureAndSaveScreenshot
method to capture a screenshot and obtained the base64String, I executed the following code:Gal.putImageBytes(base64Decode(base64String));
However, the image colors appeared inverted, as if in dark mode. This behavior was observed on both iOS and Android.
Additionally, I tried using the image_gallery_saver package to process the same base64String with the following code, but the color inversion did not occur:
ImageGallerySaver.saveImage(base64Decode(base64String));
This was confirmed on iOS (Android has not been tested due to build errors).
When viewing the image saved with putImageBytes in the iOS "Photos" app or Android "Files" app, the thumbnail displays the correct colors, but when viewing the full image, the colors appear inverted.
final tempDir = await getTemporaryDirectory();
Gal.putImage(tempDir.path);
I have attached the base64 text file that was passed as an argument, as well as the saved image files for reference.
base64String_2024-10-24_11-08_21335.txt
Beta Was this translation helpful? Give feedback.
All reactions