Image viewer in python3.5.

If it doesn't relate to Debian, but you still want to share it, please do it here

Image viewer in python3.5.

Postby frank38 » 2018-01-08 18:55

Today I was bored, and I didn't know what to do. I was looking around my PC for some images when I remebered that I'd like to get an image viewer for almost all kind of images. The only program I know to be capable to read almost everything is ImageMagick. After some hours, I've got the first result, my new program can read every images supported by IM. Obviously, the window can be resized, and can also store my preferred window size for the next use. I think the program will have not too much apart the three important functionality "zoom +/-/reset" and maybe the "next/previous" functionality.
I'm still bored.
Last edited by frank38 on 2018-02-05 08:56, edited 1 time in total.
frank38
 
Posts: 84
Joined: 2017-10-30 12:04

Re: Image viewer in python3.5 (WIP)

Postby frank38 » 2018-01-10 10:21

Here is the very first version of the program, which is at an early stage of development (the wand module and the ImageMagick program are required):

http://www.mediafire.com/file/tn1xv51z7 ... IV-0.1.zip
md5sum: 306f4b0918d6a60fb744ebd5cc440ea5

The only functions implemented are: zoom '+/-/full size' (keys +/-/0); the ability to save the preferred dimension of the window.
I think I'll add only two functions for flipping the image visualized.
Last edited by frank38 on 2018-01-11 09:56, edited 1 time in total.
frank38
 
Posts: 84
Joined: 2017-10-30 12:04

Re: Image viewer in python3.5 (WIP)

Postby frank38 » 2018-01-10 14:12

Further improvements to the program:

http://www.mediafire.com/file/7nndu6ijs ... IV-0.2.zip
md5sum: e68fb1e406908e48d90c113e0bedbc66

Added the following, basic functions: rotate (up arrow), flip hor (right arrow), flip ver (left arrow), reset view (down arrow).
frank38
 
Posts: 84
Joined: 2017-10-30 12:04

Re: Image viewer in python3.5 (WIP)

Postby frank38 » 2018-02-02 13:17

An update, almost complete, version of the program (v. 0.3):
http://www.mediafire.com/file/8ml6j866x ... IV-0.3.zip
md5sum: 6d53f61ac758b8a9663ae870c19fce58

This version can display all the subpages on the image, if any. A sample tiff multipage file is in the package.

Keys:
j = next subpage
f = previous subpage
+ = zoom+
- = zoom-
0 = zoom at starting value
CTRL+s = save the current window size

Arrows:
up = rotate by 90 degrees each time
left = flip
right = flop
down = reset view

Any suggestions are welcome.
frank38
 
Posts: 84
Joined: 2017-10-30 12:04

Re: Image viewer in python3.5 (WIP)

Postby frank38 » 2018-02-02 13:47

(Missed a line of code)
An update, almost complete, version of the program (v. 0.3.1):
http://www.mediafire.com/file/fmcz2pxra ... -0.3.1.zip
md5sum: b164541a46276c5c552473d1533714f5

This version can display all the subpages on the image, if any. A sample tiff multipage file is in the package.

Keys:
j = next subpage
f = previous subpage
+ = zoom+
- = zoom-
0 = zoom to starting value
CTRL+s = save the current window size

Arrows:
up = rotate by 90 degrees each time
left = flip
right = flop
down = reset view

Any suggestions are welcome.
frank38
 
Posts: 84
Joined: 2017-10-30 12:04

Re: Image viewer in python3.5

Postby frank38 » 2018-02-05 08:56

This is the final version of my 'Simple Image Viewer':
http://www.mediafire.com/file/sq2mav6x5 ... IV-1.0.zip
md5sum: 0809ae692d5d92402968f046cee809fb

This program needs: Python 3, the Gtk3 libraries, ImageMagick, and the python3 Wand module.

Keys:
h = help window
j = next subpage
f = previous subpage
+ = zoom+
- = zoom-
0 = zoom 1x
CTRL+s = save the current window size

Arrows:
up = rotate by 90 degrees each time
left = flip
right = flop
down = reset view

In the package a sample multipage tiff image.
The program is very simple, it only displays the images supported by ImageMagick.
The help window lists the keys and their functions.
That's all.
frank38
 
Posts: 84
Joined: 2017-10-30 12:04

Re: Image viewer in python3.5.

Postby None1975 » 2018-02-05 16:28

It is not lightweight application...
OS: Debian 9.4 / WM: Xmonad
Debian Wiki | DontBreakDebian, My config files in github
Linux User #607425
User avatar
None1975
 
Posts: 505
Joined: 2015-11-29 18:23
Location: Lithuania, Vilnius

Re: Image viewer in python3.5.

Postby frank38 » 2018-02-07 09:46

None1975 wrote:It is not lightweight application...

Nowadays only two toolkits are available to programmers: GTK3 and QT5. I've choosen Gtk3 because my desktop manager uses the Gtk3.
ImageMagick needs some libraries as dependencies, but my program is very light and reactive.
frank38
 
Posts: 84
Joined: 2017-10-30 12:04

Re: Image viewer in python3.5.

Postby None1975 » 2018-02-07 14:51

frank38 wrote:Nowadays only two toolkits are available to programmers: GTK3 and QT5. I've choosen Gtk3 because my desktop manager uses the Gtk3.
ImageMagick needs some libraries as dependencies, but my program is very light and reactive.

I understood. Good luck with this project.
OS: Debian 9.4 / WM: Xmonad
Debian Wiki | DontBreakDebian, My config files in github
Linux User #607425
User avatar
None1975
 
Posts: 505
Joined: 2015-11-29 18:23
Location: Lithuania, Vilnius

Re: Image viewer in python3.5.

Postby frank38 » 2018-02-09 07:44

None1975 wrote:I understood. Good luck with this project.

The program is complete, no further release.
frank38
 
Posts: 84
Joined: 2017-10-30 12:04


Return to Offtopic

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable