title: How to Zoom and Pan Image in Python?
body: <p>I have an image: <a href="https://i.stack.imgur.com/A3Dbs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/A3Dbs.png" alt="Image"></a></p>
  
  <p>I wish to pick a point on this image. However, when I display the image, I can only see a part of it on the screen, as follows: <a href="https://i.stack.imgur.com/RU31Q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RU31Q.png" alt="Image visible on screen"></a></p>
  
  <p>I wish to know how to zoom out and pan the image in a way that I am able to also pick a point on the same image and do the processing.</p>
  
  <p>I tried to use the code given here : <a href="https://stackoverflow.com/questions/25787523/move-and-zoom-a-tkinter-canvas-with-mouse/48069295#48069295">Move and zoom a tkinter canvas with mouse</a> but the problem is that this displays the image on a different canvas, and all of my further processing is supposed to be on the image itself.</p>
  
  <p>I do not want to use the image resize function because that leads to change in pixel orientation/pixel loss</p>
  
  <p>Kindly help!</p>