NHBalancedFlowLayout icon indicating copy to clipboard operation
NHBalancedFlowLayout copied to clipboard

Images are upscaled during the layout

Open limenutt opened this issue 10 years ago • 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?

limenutt avatar Mar 12 '14 11:03 limenutt

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.

njdehoog avatar Mar 13 '14 08:03 njdehoog

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

graetzer avatar Dec 27 '15 14:12 graetzer

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

thelordy avatar Feb 06 '16 18:02 thelordy

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

njdehoog avatar Feb 08 '16 09:02 njdehoog