I was wondering is there a way to change the pic feed from flickr to my own pics? I tried copying my pics to the public data picture folder but I still cannot get any to come up with my pics in place of some of the flickr images. I can pull them up if I go to view my pics through LMCE when I go to the pictures menu.
Quote from: fearingsept on September 27, 2007, 04:44:12 PM
I was wondering is there a way to change the pic feed from flickr to my own pics? I tried copying my pics to the public data picture folder but I still cannot get any to come up with my pics in place of some of the flickr images. I can pull them up if I go to view my pics through LMCE when I go to the pictures menu.
Unfortunately it's not that easy aparently, I have just posted a few hints in another thread, you might want to look at that.
Thank you I will take a look.
QuoteUnfortunately it's not that easy aparently, I have just posted a few hints in another thread, you might want to look at that.
Ok I must be dim cause I can't find it. mind posting a link? ;)
http://forum.linuxmce.org/index.php?topic=2628.0
I had to look for a minute there myself. :) It's far from a tutorial on how to do it though. :-\
I have butchered the script. You'll need to change the source dir ($dirtoget) in the config section. It's hardcoded to look for .JPG files but you can change that (there are two references, just do find and replace).
I also added a bit in which ignores the images if they are less than 500px wide or high for quality reasons.
It's a hack though, and my first time with Perl, so don't expect too much finesse! ;-)
Chris
Thanks for the script chris. Trying to get this to work now.
Also, if anyone is interested, I have posted a help wanted for someone who wants to build this so that a change in the directory that is used can be done via the control panel settings. See http://forum.linuxmce.org/index.php?topic=2713.msg13170 if you are interested in the bounty.
Quote from: fearingsept on September 27, 2007, 04:44:12 PM
I was wondering is there a way to change the pic feed from flickr to my own pics? I tried copying my pics to the public data picture folder but I still cannot get any to come up with my pics in place of some of the flickr images. I can pull them up if I go to view my pics through LMCE when I go to the pictures menu.
Sheesh... Someone should have told me it was hard to do... because I put my photos on no problem. ;D
First, I moved the flickr.pl to flickr.pl.back. Too many of the flickr.pl photos were just not appropriate for my 4 year old grand-daughter... plus I didn't care to see various people sitting on the commode. So, by moving the flickr.pl out of the way, it will not overwrite what I do.
Next, I went to the directory where all the photos are stored by month... just under the 2007 year folder. I removed everything below the 2007 folder rm -rf *. Then I put my photos there, under the 2007 folder. A few minutes later they showed up as wallpaper. I didn't size/resize the photos... just used as they came out of my digital camera. That's it. It works.
can an orbiter use the flickr screensaver or only the media directors?
QuoteFirst, I moved the flickr.pl to flickr.pl.back.
Where is the flickr.pl located?
Quote
Where is the flickr.pl located?
/usr/pluto/bin/
And the flicker pictures folder is
/home/public/data/pictures/flickr/
Nice work Chris! And thanks for the aditional instructions majkaj.
That "tutorial" sure didn't take you guys long. ;)
:)
thanks for posting these instructions, this is almost what i wanted to do,
I was wondering though, can I just add my photos to the flickr directory and then them appear intermingled with the flickr ones? might give it a go a see what happens
Quote from: jayzee on October 01, 2007, 10:01:24 PM
:)
thanks for posting these instructions, this is almost what i wanted to do,
I was wondering though, can I just add my photos to the flickr directory and then them appear intermingled with the flickr ones? might give it a go a see what happens
Yes, you can intermingle your photos with the flickr.pl downloaded photos. I have done this. I loaded 15 or so photos from my digital camera under the 2007 folder. At first, I left some of the photos that the flickr script pulled but, over time, I have replaced them with my own selections. I logged in to MY flickr account, did a search on photos with a tag of landscape, downloaded what I liked, copied them to the 2007 folder.
Sorry that I was not more specific about where flickr.pl is located. I didn't remember
exact directory locations (I am at work!)
Quote from: majkaj on October 01, 2007, 08:34:19 PM
Quote from: fearingsept on September 27, 2007, 04:44:12 PM
I was wondering is there a way to change the pic feed from flickr to my own pics? I tried copying my pics to the public data picture folder but I still cannot get any to come up with my pics in place of some of the flickr images. I can pull them up if I go to view my pics through LMCE when I go to the pictures menu.
Sheesh... Someone should have told me it was hard to do... because I put my photos on no problem. ;D
Hmm. It didn't work for me! How strange!
Chris
Me neither - all I got was a blank screen instead of the flickr pics. I thought that it might be a file permission thing maybe? I copied my photos from my Vista machine... I'll try the .pl hack later I think.
Try
http://wiki.linuxmce.org/index.php/Use_my_own_pictures_in_the_Screen_Saver#Setting_an_attribute_from_the_web_admin_screens (http://wiki.linuxmce.org/index.php/Use_my_own_pictures_in_the_Screen_Saver#Setting_an_attribute_from_the_web_admin_screens)
Let me know if anything needs clarification...
Regards
Darren
Sadly, I haven't been able to get either method to work for me either. I initially tried the script but with no luck, just a blank screen and when removing the pl script and adding some of my own pics to the directory I ended up with pretty much the same result.
Happily it looks like there is some talent making progress on my request: http://forum.linuxmce.org/index.php?topic=2713 (http://forum.linuxmce.org/index.php?topic=2713) so stay tuned.
QuoteTry
http://wiki.linuxmce.org/index.php/Use_my_own_pictures_in_the_Screen_Saver#Setting_an_attribute_from_the_web_admin_screens
Let me know if anything needs clarification...
Regards
Darren
Thanks Darren. I will take a look at this. Hadn't seen it before.
That looks really promising! l'll give it a go tomorrow!
Hmmmm... followed the instructions on the wiki page and added the file association etc to a few sample JPG images (all .JPG) in the flickr/2007/ folder via the web admin. Did a reload, and I now get a blank black screen that fades to white, pauses, and then back to black again. Its almost like it can't load the images at all? Am I doing something wrong? I've disabled the flickr.pl script and deleted all the sub folders and their images from the 2007 folder...
Quote from: Stingly on October 08, 2007, 05:26:00 PM
Hmmmm... followed the instructions on the wiki page and added the file association etc to a few sample JPG images (all .JPG) in the flickr/2007/ folder via the web admin. Did a reload, and I now get a blank black screen that fades to white, pauses, and then back to black again. Its almost like it can't load the images at all? Am I doing something wrong? I've disabled the flickr.pl script and deleted all the sub folders and their images from the 2007 folder...
Wow, I am sorry that folks are having problems. I am at work right now. When I go home for lunch, I will double check my settings and report back in. But , I really didn't do much of anything. And, yes, I have my own pictures showing up.
Mike
I followed the wiki page and got two of my pictures in the slide show. My pictures are copied to a different directory out side flickr. I am getting blck screens too. I think the reason may be that I just deleted all the images from flickr folder leaving all the database entries and probably that is causing the black screens and bright white fade-in and all that. I would like to find out exactly what is changing in the database while setting the attribute and would like to do it entirely in a SQL entirely outside the admin page.
Quote from: Stingly on October 08, 2007, 05:26:00 PM
Hmmmm... followed the instructions on the wiki page and added the file association etc to a few sample JPG images (all .JPG) in the flickr/2007/ folder via the web admin. Did a reload, and I now get a blank black screen that fades to white, pauses, and then back to black again. Its almost like it can't load the images at all? Am I doing something wrong? I've disabled the flickr.pl script and deleted all the sub folders and their images from the 2007 folder...
Well Darren's Wiki page worked for me... I renamed /usr/pluto/bin/flickr.pl to /usr/pluto/bin/flickr.pl.backup then I deleted the /home/flickr/2007 directory. I then added the new attribute to about 20 images I copied into the /home/public/data/pictures directory and did a reload... when the screensaver kicked next time my pics appeared :-)
I see that some folks are having their pictures show up. Great!
I am back at work; I did check where I put the photos ...I put the photos in /home/flickr/2007. I think that this is a symlink to /home/public/data/pictures.
Mike
To all those having problems with white images etc....
I have also had this problem on one of my MDs. The same pictures show correctly on all the other MDs.
This MD is a laptop using ATI drivers and UI2 with overlay (rather than alpha blend).
My other two MDs that are currently running are both using Nvidia drivers and are running UI2 with Alpha Blending.
So I assume that it is somehow related to either the driver OR the Alpha Blending (or both I guess). The other difference is that the other two are hooked up to TV resolutions (TV[PAL] and Projector[720p]) whereas the laptop is using its screen in a PC resolution[1024x768 from memory].
The laptop does have some of the pictures showing up however - this made me play around a bit and I resized one of the pictures to a smaller resolution and it then showed up. So it looks like it is a problem showing pictures of a certain resolution and greater.
I have not experimented enough to prove this 100% or to find the resolutions that cause the problem, but a workaround might be to create a copy of the picture you want to use and resize it for the screen saver. Bit of a pain I know.
The flickr.pl script does resize images if they are above a certain size - so it might be a known limitation (by the Pluto Developers) either that or they are just saving space.
wrt. deleting the flickr images - thhis should not be a problem as the code checks for file existence before adding it to the list of images to display.
HTH
Darren
Quote from: darrenmason on October 09, 2007, 12:40:35 AM
The laptop does have some of the pictures showing up however - this made me play around a bit and I resized one of the pictures to a smaller resolution and it then showed up. So it looks like it is a problem showing pictures of a certain resolution and greater.
I have not experimented enough to prove this 100% or to find the resolutions that cause the problem, but a workaround might be to create a copy of the picture you want to use and resize it for the screen saver. Bit of a pain I know.
Mate! You are a genius! Resizing my pictures to fit a 1024x1024 area worked perfectly! Nice one! ;D
Quote from: darrenmason on October 09, 2007, 12:40:35 AM
To all those having problems with white images etc....
I have also had this problem on one of my MDs. The same pictures show correctly on all the other MDs.
This MD is a laptop using ATI drivers and UI2 with overlay (rather than alpha blend).
My other two MDs that are currently running are both using Nvidia drivers and are running UI2 with Alpha Blending.
So I assume that it is somehow related to either the driver OR the Alpha Blending (or both I guess). The other difference is that the other two are hooked up to TV resolutions (TV[PAL] and Projector[720p]) whereas the laptop is using its screen in a PC resolution[1024x768 from memory].
The laptop does have some of the pictures showing up however - this made me play around a bit and I resized one of the pictures to a smaller resolution and it then showed up. So it looks like it is a problem showing pictures of a certain resolution and greater.
I have not experimented enough to prove this 100% or to find the resolutions that cause the problem, but a workaround might be to create a copy of the picture you want to use and resize it for the screen saver. Bit of a pain I know.
The flickr.pl script does resize images if they are above a certain size - so it might be a known limitation (by the Pluto Developers) either that or they are just saving space.
wrt. deleting the flickr images - thhis should not be a problem as the code checks for file existence before adding it to the list of images to display.
HTH
Darren
Yes its definitely the size of the image thats causing the problem. It just so happened that many of my test images were within the size limits for the ScreenSaver. I resized a number of much bigger images that were not displaying even though they had the correct attributes in the DB... and magically after a resize they appeared!
You can do the resize using the command line tool 'convert'. The following line will resize the image at /home/public/data/pictures/IMG_1023.JPG to 1024x683 and then write it back to /home/public/data/pictures/IMG_1023.JPG again;
sudo convert -sample 1024x683 /home/public/data/pictures/IMG_1023.JPG /home/public/data/pictures/IMG_1023.JPG
Andrew
PS One of the devs at Pluto just told me that the size limits for the ScreenSaver binary are based on the following formula;
image_width * image_height < 3,240,000
That's why I hacked the perl script - as that way the images are still resized.
Chris
Quote from: chrisbirkinshaw on October 11, 2007, 11:52:14 PM
That's why I hacked the perl script - as that way the images are still resized.
Chris
Yes I looked at your changes. Nice work.
I am writing a new script that uses inotifywait to watch the directory for files that are moved into it or are deleted. In fact its the same call that the UpdateMedia binary uses to watch for media files that are added to the lmce directory structure.
How do I create a file which lists names of all the images in folder, recursively? Basically what is the Linux eqvt of the following DOS command
dir /b /s c:\MyPics\*.jpg > filelist.txt?
TIA
An equivalent might be...
find /MyPics -name "*.jpg" > filelist.txt
the find command is very powerful and it also allows you to apply a command to all matches.
You might have to look at the man page to refine how it displays
HTH
Darren
Quote from: totallymaxed on October 12, 2007, 07:45:53 AM
Yes I looked at your changes. Nice work.
I am writing a new script that uses inotifywait to watch the directory for files that are moved into it or are deleted. In fact its the same call that the UpdateMedia binary uses to watch for media files that are added to the lmce directory structure.
Sounds like a good idea. The changes I made are a real bunch of hacks as I didn't know how to program perl so I'm sue there's lots of other areas for improvement. For example it just picks random photos from the folder so you could get duplicates.
Chris