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?

/Anders


------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to