The Image Viewer application is a desktop application which automatically scales down large image, while maintaining the aspect ratio of image, to properly fit it(image) in viewing area of display window.
The Zoom in or out functionality takes special care of aspect ratio while scaling up or down image so that image detailing will not get lost. The Image processing is done using openCV to preserve detailing of image while resizing it.
-
Software Specification:
- Programming Language: Python 3.8.2
- Application Type: Desktop
- Operating System supported: Windows and Linux
- Packages/Libraries Used: pyinstaller, tkinter, pillow and openCV
- Supported image format: jpeg, jfif and png
- Task supported by Image Viewer: Zoom In/Out , Swipe Left/Right
Steps to execute project:
1) Compile the ImageViewer.py
2) Create executable file using pyinstaller.
3) Double-click on executable file to run the application
ImageViewer.py: This file contains the source code of the application.Tkinter is used to create GUI of Image Viewer .Pillow and OpenCV are used to scale while maintaing aspect ratio of Image during Zoom-in/out.
Main Window:
File Chooser Window:
Original Image 1:
Zoomed-In Image 1:
Original Image 2:
Zoomed-In Image 2:
IF YOU ENCOUNTER ANY BUGS OR FOR ANY SUGGESTIONS REGARDING THE IMPROVEMENT IN APPLICATION FEEL FREE TO CONTACT ME :
Himanshu Sharma : [email protected]
The software and packages used in development are open source. All these packages can be installed using pip command.
Wallpapers/Images used inside Application are not mine. This application is an educational project.It can not be used for commercial purpose.