Image Picker error

When I use Image Picker and choose small or medium size (from iPhone 12 pro), the image loads upside-down 180 degrees. Instead of being vertical, it becomes horizontal. How to fix it? Don’t want to upload heavy pictures

Nobody will answer?