Skip to content

63rabbits/ImageViewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ImageViewer

Image viewer made with python.

Features
handling image .bmp .png .jpg .tif
open image dialog box / drag and drop
drag image mouse left button + drag
zoom-up/out image mouse right button + wheel / control + wheel
fit the image to the window double click with mouse left button
show grid

Problem

  • Poor zoom performance.

    • When using Pillow's Image.resize(...), performance deteriorates as the image zoom rate increases. This is because the entire image is enlarged and the displayed portion is cropped. The processing time for the parts that are not displayed is wasted.
      To improve the performance, the image size should be the same as that of the Canvas and affine transformation should be performed using Image.transform(...). My guess is that only the part of the image to be displayed is processed, so the processing time is reduced. However, it is necessary to modify the program to include dragging (translation).
      Since this is a major revision, we will release the revised version as a separate version. When the work is completed, we will post the link here.
      For those in a hurry, please refer here or here.
  • Grid does not support window resizing.

About

Image viewer made with python.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages