BalancedGallery icon indicating copy to clipboard operation
BalancedGallery copied to clipboard

Rounding errors sum up after 5 resizes

Open diederikfeilzer opened this issue 9 years ago • 1 comments

Hi, Great plugin, I noticed that when the user does a couple of resizes, the rounding errors seem to sum up and aspect-ratios of the images are lost. Since modern browsers seem to handle decimal places in style tags very well I suggest you either use the decimal places like 123.45995 px to increase the number of allowed resizes or completely redraw each time, but I get that last one is not preferable. Maybe store the original aspect ratios in a data-aspectratio attribute in the image its self.

diederikfeilzer avatar Jun 17 '15 13:06 diederikfeilzer

hi, @diederik789 Have you any thoughts at this issue?

vburlak avatar Nov 02 '15 23:11 vburlak