Voyager - Image viewer in Vala

Programming issues and discussion
simargl
Site Admin
Posts: 466
Joined: 16 May 2013, 10:54
Contact:

Voyager - Image viewer in Vala

Postby simargl » 10 Feb 2014, 18:25

Voyager is a Image browser in Vala and Gtk+3. It has support for slideshow, double click switch to full screen, browse previous/next image with keyboard keys, context menu items "set as wallpaper" if wpset is installed, "edit with gimp" if gimp is installed, zoom in and out with Gtk.Scale from its headerbar. By default image size on start is set according to width and height of the main window, except if image width is smaller than 400px - then it's loaded at 100%.

Image

Install with:

Code: Select all

packer -S voyager

Depends only on Gtk3 and dconf for saving settings.

Scooby
Site Admin
Posts: 826
Joined: 09 Sep 2013, 16:52

Re: Voyager - Image viewer in Vala

Postby Scooby » 11 Feb 2014, 18:38

will this replace wpset?

simargl
Site Admin
Posts: 466
Joined: 16 May 2013, 10:54
Contact:

Re: Voyager - Image viewer in Vala

Postby simargl » 11 Feb 2014, 21:06

It will replace gpicview.

Setting wallpaper is done using same script from wpset, and menu item for that command will not be shown if wpset is not installed (this part is relevant for Arch Linux / and other Arch based distributions).

Strangely quiet, this forum. :?

Scooby
Site Admin
Posts: 826
Joined: 09 Sep 2013, 16:52

Re: Voyager - Image viewer in Vala

Postby Scooby » 11 Feb 2014, 22:09

Tested it using makesb.

Install worked fine.
Like the zoom slider.
Took a while before I got how to stop slideshow.

If I wanted anything added it would be ability to enlarge font of image file paths
in the left hand column with ctrl and + like in firefox.

For some reason icon for voyager didnt get ascociated?

Supplied full path (Icon=/usr/share/icons/hicolor/96x96/apps/voyager.png)
in .desktop file and did the update-desktop-database
it showed up in menu but not as the icon of started program?

john3voltas
Expert
Posts: 266
Joined: 19 May 2013, 21:53

Re: Voyager - Image viewer in Vala

Postby john3voltas » 29 Jul 2014, 17:12

Would it be easy to add a "rotate 90º/180º" feature?
Especially if lossless jpeg rotation is possible. Let me emphasize the lossless because there are lots of apps out there that can rotate a jpeg very easily but you lose image definition.
Here's a list of lossless jpeg transforming tools: http://sylvana.net/jpegcrop/losslessapps.html
Thanks in advance :D

john3voltas
Expert
Posts: 266
Joined: 19 May 2013, 21:53

Re: Voyager - Image viewer in Vala

Postby john3voltas » 03 Aug 2014, 14:34

Simargl, could you please let me know if it's possible to add this feature? But only if it's lossless. ;)
I'm just asking if it can be done, I'm not asking you to do it right now. Since I can't program I would be greatly appreciated if you could add it to your to-do list :)
Cheers

simargl
Site Admin
Posts: 466
Joined: 16 May 2013, 10:54
Contact:

Re: Voyager - Image viewer in Vala

Postby simargl » 03 Aug 2014, 18:41

john3voltas wrote:Simargl, could you please let me know if it's possible to add this feature? But only if it's lossless. ;)
I'm just asking if it can be done, I'm not asking you to do it right now. Since I can't program I would be greatly appreciated if you could add it to your to-do list :)
Cheers


Looked now on valadoc.org for image rotation and it has this
http://valadoc.org/#!api=gdk-pixbuf-2.0 ... ate_simple

Is that lossless?

So you would like just image rotation as in image viewer without option to save image in that angle, for that gimp could be used.

efgee
Expert
Posts: 115
Joined: 29 Dec 2013, 20:58

Re: Voyager - Image viewer in Vala

Postby efgee » 03 Aug 2014, 18:57

It should be lossless.
If an os API doesn't explicitly mention JPEG (or other formats) it will assume buffers with raw pixels.

john3voltas
Expert
Posts: 266
Joined: 19 May 2013, 21:53

Re: Voyager - Image viewer in Vala

Postby john3voltas » 04 Aug 2014, 13:10

simargl wrote:Looked now on valadoc.org for image rotation and it has this
http://valadoc.org/#!api=gdk-pixbuf-2.0 ... ate_simple
Is that lossless?

Just asked them at the IRC channel. Waiting for their answer.

simargl wrote:So you would like just image rotation as in image viewer without option to save image in that angle, for that gimp could be used.

Not really. I would like to have image rotation with the ability to save the picture after rotation done. I just don't want to loose quality in the process ;)

john3voltas
Expert
Posts: 266
Joined: 19 May 2013, 21:53

Re: Voyager - Image viewer in Vala

Postby john3voltas » 04 Aug 2014, 15:46

Ok, I chatted with Florian Brosch. He's an Op of the channel (sort of Moderator).
He said he doesn't recall what pixbuf does. However he says we should use ImageMagick which is a library for converting, editing and composing images.
Bottom line is, maybe imagemagick will use up too much space in alpha's iso.
So maybe you could try PixBuff and test it.
For instance, we take a 5MB picture, run a sha1 checksum on it.
Then we rotate it 90º to the right using PixBuff and save the picture.
Then we rotate it again 90º to the left (original position!) using PixBuff and save the picture. We run a sha1 checksum on this picture and it should have the same hash as the original picture.
If it doesn't it's either because:
a) PixBuff changes some EXIF data or something similar and we would need to run some more testings on it before we're sure it's rotation is lossless
b) PixBuff's rotation is not lossless
So, what do you say? Is it too much trouble to run the test? It doesn't need to be done ASAP. You could put it down on your to-do list :)
Cheers


Return to “Scripting and Programming”

Who is online

Users browsing this forum: No registered users and 14 guests

cron