njdehoog/NHBalancedFlowLayout

Images are upscaled during the layout

limenutt opened this issue · 4 comments

I'm loading images from the server and naturally the thumbnails are pretty small, much smaller then the screen size. I noticed that only dimension ratios is taken into account, not sizes of the images themselves, thus images are often getting upscaled which is undesirable. Is there any workaround?

As a quick workaround I would suggest using larger thumbnails, so that there is a bit of room for error. In terms of a more solid solution, I'm not sure what it would take to achieve that at this moment. This would require some changes to the logic of the layout algorithm. I would be happy to do some consulting for you if you'd like me to help you figure it out. Otherwise feel free to fork the project and contribute.

If anybody else has this issue have a look at my fork https://github.com/graetzer/NHBalancedFlowLayout

@graetzer How can i change the layout of your fork so i can have only 1 or 2 photo per row? Thanks.

@thelordy Please create an issue in @graetzer's fork to discuss this issue.