Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Add zoom feature? #13

Open
dosstx opened this issue Apr 15, 2020 · 2 comments
Open

Add zoom feature? #13

dosstx opened this issue Apr 15, 2020 · 2 comments
Labels
plugin idea Idea for a new plugin

Comments

@dosstx
Copy link

dosstx commented Apr 15, 2020

Love this tool. Thank you very much for making it. I think you have a great start but one thing that I think would be great is to have some kind of zoom capability.

@alexzorin
Copy link

@rsimon's annotorious/annotorious#121 (comment) suggests implementing zoom by means of a magnifying lens on the cursor. Cool!

I wanted to add a second interpretation of "zoom" that could be valuable. This would be the ability to scale the rendering of the image up (or down, in fact) past its natural px size, without affecting the annotation functionality.

Something like https://jsfiddle.net/hfm97pw8/1/. The annotation layer doesn't quite do the right thing when encountering an image scaled with CSS.

I imagine this might be problematic to achieve, the magnifying lens would still be amazing on its own.

@rsimon
Copy link
Member

rsimon commented Jul 5, 2021

Good point - yes, this could also achieve zooming. FWIW: you can make the annotation layer adjust to the size of a zoomed image with a little CSS + HTML trickery. This would work, for example:

<div style="width:200px">
  <img src="https://recogito.github.io/images/640px-Hallstatt.jpg" style="width:100%" id="image" />
</div>

In general, the trick is always to wrap the image in a DIV and apply all the styles to the DIV rather than the image.

@rsimon rsimon transferred this issue from annotorious/annotorious Oct 10, 2021
@rsimon rsimon added the plugin idea Idea for a new plugin label Oct 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
plugin idea Idea for a new plugin
Projects
None yet
Development

No branches or pull requests

3 participants