ematsakov / tilezoom

TileZoom Plugin is an image zoom plugin which uses image tiles and provides a convenient way to zoom in and zoom out of high-resolution images.
17 stars 7 forks source link

Remove big gap around the picture #8

Open mheiduk opened 9 years ago

mheiduk commented 9 years ago

Hello, thanks for the great script. I try to remove the big gap around the initial thumb picture, because I want to display it in fullwidth.

Is there any option to do that?

Thanks!

Best regards, Marc

ematsakov commented 8 years ago

Hi, Marc Sorry for delay. You can use "offset" option for reducing gaps which is default 20% of the container size. But please note, zoom levels have predefined sizes and the transition from one level to another goes incrementally. I planing to rewrite the plugin to be able to zoom smoothly with the steps up to 1 pixel. But as long as it is not implemented. I mean, I'm not sure that you can have image always fit 100% of container size, because zoom levels are predefined. Thanks, Evgeny

033MaX commented 8 years ago

Hi Evgeny,

Are you still working on tilezoom ? I would be interested in the feature you are talking about ( 1px steps / 100% fit in the container ).

ematsakov commented 8 years ago

Hi, there!

I can't deliver a lot of time for Tilezoom today. As I answered above, zoom levels have predefined dimensions. So depends on original image size and container size, image can not fit 100% of the container width or height. I planned to rewrite this plugin with canvas for support smooth scaling. But just don't have a time for that now.

Best, Evgeny