[Bug report] Inconsistent resizing behavior between iOS and Android in thumbnailDataWithSize #1271
Labels
Automation: triage
Triaged automatically by our bot.
await triage
Platform: Android
Platform: iOS
Sort: BUG
Version
3.6.4
Platforms
iOS, Android
Device Model
iPhone 13(iOS 18.0), Android emulator API 30
flutter info
How to reproduce?
Steps to reproduce
Description
I've encountered an issue where resizing images using the thumbnailDataWithSize method produces inconsistent results on iOS and Android.
The image should be resized proportionally, maintaining the same aspect ratio across both platforms.
For example, resizing an image of size 1000x2000 with a target size of 200 should result in 200x400.
On Android, the image is correctly resized to 200x400, which is the expected result. However, on iOS, the image is resized to 100x200.
This suggests that Android scales the smaller dimension to 200, whereas iOS scales the larger dimension to 200.
Could you clarify if this behavior is intentional or if it's a bug?
Logs
Example code (optional)
Contact
No response
The text was updated successfully, but these errors were encountered: