
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
This is a picture frame for gDesklets, which can cycle through a series of images. It will extract all image files (.jpg, .png, .gif) from a selection of files dropped onto it, and can display them either in order or shuffled. From the menu you can open the image or the containing folder using the command of your choice.
The desklet been largely rewritten to use Controls rather than Sensors (gDesklets old technology!). it makes installation a little easier, but there are a couple of features which don't work quite as well. I hope that these may be fixed in the new sparkly gDesklets 0.40.
Installation:
There are instructions in the enclosed 'readme'. The first time you run the desklet you'll need to update the installation path (screenshot 3), presumably just the username unless you install it somewhere strange.
Foibles:
1. After updating the time period in the preferences, you must wait for the current timer to finish before a timer with the new length starts.
2. gDesklet has a bug which swaps the blue and green channels in the frame colour.
13 years ago
1.2 - Removed the bug whereby the 'open image' and 'open folder' commands didn't work with uris with spaces.
1.1 - Removed the need to generate and save a thumbnail of the image. Added frame options, and customisable svg previous/next arrows.
1.0 - Updated to use Controls rather than Sensors. Added width/height preferences. Added open image/folder options.
0.2 - Added support for individual files, and subdirectories. Expanded preferences. Added 'next' and 'previous' buttons.
0.1 - First release.
13 years ago
1.2 - Removed the bug whereby the 'open image' and 'open folder' commands didn't work with uris with spaces.
1.1 - Removed the need to generate and save a thumbnail of the image. Added frame options, and customisable svg previous/next arrows.
1.0 - Updated to use Controls rather than Sensors. Added width/height preferences. Added open image/folder options.
0.2 - Added support for individual files, and subdirectories. Expanded preferences. Added 'next' and 'previous' buttons.
0.1 - First release.
vicviper
13 years ago
Report
cumpstey
13 years ago
I too wanted to be able to specify a maximum dimension rather than just width, but it's not easy to do. I need to be able to read the dimensions of an image file, in order to tell whether x or y is larger, and (from what I've found googling) this seems to be a common problem that there is not a simple solution to. I could give the option of specifying either maximum height or width, but I'm still hoping to find some way of doing what I really want. If anyone knows a way to read image dimensions please let me know.
Report
kjallcock
13 years ago
Well done on this. I'm another who was 'going' to get around to trying to do this. Used to use a similar on superkaramba before i switched to Gnome.
I would like to see the frame work out landscape/portrait images. I have tried looking into this for batch scripting stuff before, an got as far as :
identify -verbose $file | grep Exif:Orient
Results are 8 for a landscape and 1 for portrait (right way round I think ;-) )
identify gives you lots of details of the file if you use -verbose
Report
cumpstey
13 years ago
I eventually hit on the idea of generating a thumbnail - which you can do without knowing the dimensions of the original. In its current state the desklet will generate a thumbnail with the required dimensions, then display this full size. This has the disadvantage of having to store the image, but the advantage that it appears to be faster to generate and display the thumbnail than to display a large original.
I hope you find it useful. ;-)
Report
mots
13 years ago
Report
cumpstey
13 years ago
Report
cumpstey
13 years ago
Report
huygensss
13 years ago
I was searching for a desklet like this 2month! You schould publish it on the official gdesklets page (gdesklets.de)
Congratulations
Report
cumpstey
13 years ago
'It's obviously not finished and shouldn't be here' perhaps? But it actually does work, and it was requested. And I've pointed out how to get round all the things I know don't work as I want them to.
'It's stupidly hard to install'? Everything in gdesklets is hard to install.
'I have to go to a different site in order to download files'? Apache seems to go into spasms with .py files, and it was the only way I could think of.
Anything else?
Report
mohazzab
13 years ago
this is what i was searching for... undfortunatelly it does not work: made as you told me, but:
invalid syntax (__init__.py, line 1)
/usr/lib/gdesklets/utils/ErrorFormatter.py
> 1 import os
2 import sys
3 import traceback
4 import vfs
5
6
7 #
8 # Class for formatting errors. Hilights the bad line of code.
9 #
10 class _ErrorFormatter(object):
11
12 __slots__ = ()
best regards
r
Report
cumpstey
13 years ago
Can anyone else help?
Report