Piasy / BigImageViewer

Big image viewer supporting pan and zoom, with very little memory usage and full featured image loading choices. Powered by Subsampling Scale Image View, Fresco, Glide, and Picasso. Even with gif and webp support! 🍻
MIT License
3.98k stars 400 forks source link

fix:bigimage's init scale value when the image's width bigger than vi… #235

Closed Haoxiqiang closed 2 years ago

Haoxiqiang commented 2 years ago

image is bigger than screen, it should be scale to the result.

Piasy commented 2 years ago

Thank you for the contribution, could you please provide an example image and screenshot/recording that demonstrate the bug this MR fixes?

Haoxiqiang commented 2 years ago

In the CustomSSIVActivity test page. I use imgix create a diff size images. this pr is about DisplayOptimizeListener the https://github.com/Piasy/BigImageViewer/issues/2. if the container image size is bigger than the view size. the max-scale/min-scale cal has a simple bug. But after a test, It's maybe not eq. with issue 2. I need more tests. close and reopen after test.