Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Image viewer in python3.5.

Off-Topic discussions about science, technology, and non Debian specific topics.
Post Reply
Message
Author
frank38
Posts: 114
Joined: 2017-10-30 12:04

Image viewer in python3.5.

#1 Post 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.
Last edited by frank38 on 2018-02-05 08:56, edited 1 time in total.

frank38
Posts: 114
Joined: 2017-10-30 12:04

Re: Image viewer in python3.5 (WIP)

#2 Post 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.
Last edited by frank38 on 2018-01-11 09:56, edited 1 time in total.

frank38
Posts: 114
Joined: 2017-10-30 12:04

Re: Image viewer in python3.5 (WIP)

#3 Post 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).

frank38
Posts: 114
Joined: 2017-10-30 12:04

Re: Image viewer in python3.5 (WIP)

#4 Post 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.

frank38
Posts: 114
Joined: 2017-10-30 12:04

Re: Image viewer in python3.5 (WIP)

#5 Post 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.

frank38
Posts: 114
Joined: 2017-10-30 12:04

Re: Image viewer in python3.5

#6 Post 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.

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1389
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 45 times
Been thanked: 66 times

Re: Image viewer in python3.5.

#7 Post by None1975 »

It is not lightweight application...
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

frank38
Posts: 114
Joined: 2017-10-30 12:04

Re: Image viewer in python3.5.

#8 Post 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.

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1389
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 45 times
Been thanked: 66 times

Re: Image viewer in python3.5.

#9 Post 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.
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

frank38
Posts: 114
Joined: 2017-10-30 12:04

Re: Image viewer in python3.5.

#10 Post by frank38 »

None1975 wrote:I understood. Good luck with this project.
The program is complete, no further release.

Post Reply