Photo frame gDesklet

Conky

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

0
Become a Fan
5.0

Description:
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.
Last changelog:

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

vicviper

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.

cumpstey

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.

kjallcock

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

cumpstey

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.

cumpstey

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. ;-)

mots

Try one of the os.popen() functions :D

cumpstey

Thanks! I'll incorporate this, and post the update soon.

huygensss

Very Good! I was searching for a desklet like this 2month! You schould publish it on the official gdesklets page (gdesklets.de) Congratulations

cumpstey

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?

mohazzab

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

cumpstey

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?

Pling
0 Affiliates
Details
license
version 1.2
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 2

More Conky from cumpstey:

Thumbnail Generator gDesklet
cumpstey
last update date: 18 years ago

Score 5.0

CPU Temperature gDesklet
cumpstey
last update date: 18 years ago

Score 5.0

eBay Watcher
cumpstey
last update date: 18 years ago

Score 5.0

Page Scraper
cumpstey
last update date: 18 years ago

Score 5.0

Fuzzy clock
cumpstey
last update date: 18 years ago

Score 5.0

Other Conky:

System Status
Whise
last update date: 17 years ago

Score 5.0

Genetic code
Whise
last update date: 17 years ago

Score 5.0

BCCRScreenlet
gartuz
last update date: 17 years ago

Score 5.0

Diggler
Whise
last update date: 17 years ago

Score 5.0

Comic
Whise
last update date: 17 years ago

Score 5.0

Clear-enGlish Theme pack (Picframe Theme
ClearenGlish
last update date: 17 years ago

Score 4.7