versatileimagefield/utils.py
def get_resized_path(path_to_image, width, height,
                     filename_key, storage):
    """
    Return a `path_to_image` location on `storage` as dictated by `width`, `height`
    and `filename_key`
    """
    containing_folder, filename = os.path.split(path_to_image)

    resized_filename = get_resized_filename(
        filename,
        width,
        height,
        filename_key
    )

    joined_path = os.path.join(*[
        VERSATILEIMAGEFIELD_SIZED_DIRNAME,
        containing_folder,
        resized_filename
    ]).replace(' ', '')  # Removing spaces so this path is memcached friendly

    return joined_path
def get_resized_path(path_to_image, width, height,
                     filename_key, storage):
    containing_folder, filename = os.path.split(path_to_image)

    resized_filename = get_resized_filename(
        filename,
        width,
        height,
        filename_key
    )

    joined_path = os.path.join(*[
        VERSATILEIMAGEFIELD_SIZED_DIRNAME,
        containing_folder,
        resized_filename
    ]).replace(' ', '')  # Removing spaces so this path is memcached friendly

    return joined_path
def get_resized_path ( path_to_image , width , height , filename_key , storage ) : containing_folder , filename = os . path . split ( path_to_image ) resized_filename = get_resized_filename ( filename , width , height , filename_key ) joined_path = os . path . join ( * [ VERSATILEIMAGEFIELD_SIZED_DIRNAME , containing_folder , resized_filename ] ) . replace ( ' ' , '' ) # Removing spaces so this path is memcached friendly return joined_path
Return a `path_to_image` location on `storage` as dictated by `width`, `height`
    and `filename_key`
Return a path_to_image location on storage as dictated by width height and filename_key