Page 1 of 1

Image viewer in python3.5.

Posted: 2018-01-08 18:55
by frank38
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.

Re: Image viewer in python3.5 (WIP)

Posted: 2018-01-10 10:21
by frank38
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.

Re: Image viewer in python3.5 (WIP)

Posted: 2018-01-10 14:12
by frank38
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).

Re: Image viewer in python3.5 (WIP)

Posted: 2018-02-02 13:17
by frank38
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.

Re: Image viewer in python3.5 (WIP)

Posted: 2018-02-02 13:47
by frank38
(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.

Re: Image viewer in python3.5

Posted: 2018-02-05 08:56
by frank38
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.

Re: Image viewer in python3.5.

Posted: 2018-02-05 16:28
by None1975
It is not lightweight application...

Re: Image viewer in python3.5.

Posted: 2018-02-07 09:46
by frank38
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.

Re: Image viewer in python3.5.

Posted: 2018-02-07 14:51
by None1975
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.

Re: Image viewer in python3.5.

Posted: 2018-02-09 07:44
by frank38
None1975 wrote:I understood. Good luck with this project.
The program is complete, no further release.