
Photo frame gDesklet
Source (link to git-repo or to original if based on someone elses unmodified work):
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.
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.
Ratings & Comments
11 Comments
Very good, I just wish it was more configurable. For example, to set image height instead of width, a max size of both or real size, etc.
Thanks. 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.
Hi, 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
Thanks. I'll see if I can incorporate this. I intend to do a rewrite to use the newer Control system rather than the Sensor, and will try to put it in at the same time.
I tried to use 'identify'. However, the only way I could find to use it from within python was with an os.system(identify...) command. Although this displays the appropriate response in a terminal, I don't know how to use this information - what is returned is not the output from the 'identify' command, but instead the state of the terminal once the command has been carried out (0). If you know how to get the 'identify' output into python, please let me know. 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. ;-)
Try one of the os.popen() functions :D
Thanks! I'll incorporate this, and post the update soon.
Very Good! I was searching for a desklet like this 2month! You schould publish it on the official gdesklets page (gdesklets.de) Congratulations
Hey, come on, if you're going to rate it badly at least tell me why. '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?
hallo! 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
I don't really understand this. It looks like it's having trouble understanding its own error reporter. Do you have gdesklets and python installed correctly? I have gdesklets 0.35.3, and python 2.5.1c1, though I had python 2.4 until a couple of days ago. Can anyone else help?