karolzak / ipyplot

IPyPlot is a small python package offering fast and efficient plotting of images inside Python Notebooks. It's using IPython with HTML for faster, richer and more interactive way of displaying big numbers of images.
MIT License
415 stars 41 forks source link

[Bug] Image resolution vs image width - blurry images when zoomed in #36

Closed mluerig closed 2 years ago

mluerig commented 2 years ago

nice little program, but what I don't understand is whether it is intentional that the images become blurry/compressed when selecting small img_width. for instance, see here (all the way to the bottom): https://www.phenopype.org/gallery/example_1/

I would want the thumbnails to be small enough to display in a grid inside the cell, but when people click on them I'd expect the original resolution, not the specified display width of 300. am I misunderstanding something here?

karolzak commented 2 years ago

Hi @mluerig Thanks for your feedback. You're right, the way it is done right now, images are being resized under the hood (for compression purposes when converting to base64) according to img_width and it was ok at first but when I introduced zoom feature I didn't change this behavior. I think this can be fixed quite easily.