HiDeoo / starlight-image-zoom

Starlight plugin adding zoom capabilities to your documentation images
https://starlight-image-zoom.vercel.app
MIT License
47 stars 4 forks source link

Make the image zoomable, based on the images size. #4

Closed jonasfroeller closed 6 months ago

jonasfroeller commented 6 months ago

Is your feature request related to a problem?

I have a full page image. the problem is, that you can not see much, without zooming in. That is why I hoped this plugin would change that, but If I click the image to open it in the lightbox, it overflows the container and is not readable, and the container is not scrollable. It would be good, to have a zoom, that is calculated by the size of the image, like the one in chrome. image

Overflow: image

Describe the solution you'd like

If i open the image url in another tab and zoom with chrome I get this result, which is what I hoped this plugin could do: image

Describe alternatives you've considered

Writing my own plugin.

Additional Context

No response

jonasfroeller commented 6 months ago

In short: The plugin doesn't zoom, it just puts an image onklick in a lightbox.

HiDeoo commented 6 months ago

Thanks for your feedback :raised_hands:

Indeed, this plugin is closer to what is usually called, afaik, the "Medium zoom" effect rather than the one you are referring to and I think I'm leaning towards keeping it that way. I may re-visit this in the future based on the feedback I get and maybe provide more options for the user to choose from (I think the original behavior would not change).

Regarding the effect you are referring to, I guess PhotoSwipe would be closer to what you are looking for. If this is the case, I'm also linking some references for it with Astro: "Astro + PhotoSwipe" guide and an example repo of it.