On 03/12/2009 16:25, Anders Eriksson said the following: > > Using freevo 1.9.0, I can't get cached www-thumbnails to be in the > OVERLAY_DIR. > > > > > fre...@tv ~ $ freevo cache -- --help > Usage: > > Freevo Cache helper to delete unused cache entries and to cache all files in > your data directories. > > If the --rebuild option is given, Freevo will delete the cache first to > rebuild > the cache from start. Caches from discs won't be affected > > --www-thumbs [ --recursive ] [ --directory=DIR ] will generate image > thumbnails > > --video-thumbs [ --recursive ] [ --directory=DIR ] will generate video > thumbnails > > --cropdetect [ --recursive ] [ --directory=DIR ] will generate mplayer crop > options > > The directory option can be specified more than once, one per directory of > file. > > WARNING: > > Caching needs a lot free space in OVERLAY_DIR. The space is also needed when > Freevo generates the files during run time. Image caching is the worst. So > make > sure you have several hundred MB free! > OVERLAY_DIR is set to /home/freevo/cache/vfs > > ^^^^^^^^^^^^^^^^^^^^^^They should go to /home/frevo/cache/vfs !!! > > > fre...@tv ~ $ freevo cache --www-thumbs --rebuild --recursive > checking web-server thumbnails.............................. > 403 files > 1/403 /media/images/foo/keb15.png > Made image '/media/images/foo/.thumbs/keb15.png' @ 256 -> (256, 182) > > ... but end up as in-tree subdirectories. > > > Looking at the source, it seems to boil down to this function: > > > def www_image_path(filename, subdir='.thumbs'): > """ > returns the path to the thumbnail image for a given filename > """ > dirname = os.path.dirname(filename) > file_base, file_extn = os.path.splitext(filename) > file_extn = file_extn.lower() > if file_extn == ".gif": > file_extn = ".jpg" > # the filename extension needs to be lowercase for imlib2 but we need to > # keep the original filename for cache to be able to clean the files > imagename = os.path.basename(file_base).lower() + file_extn > #imagepath = vfs.getwwwoverlay(imagename) > imagepath = os.path.join(dirname, subdir, imagename) > return imagepath > > > which has the overlay related stuff commented out. Is this a typo, or > made deliberately because it's known to be broken somehow?
It was done deliberately for the mkimagemrss helper. This allows cooliris to work with freevo. Duncan ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users