mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-12-16 16:21:40 +00:00
minor changes... (picking up the project from a long stand-still)
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
e9480e0d52
commit
97753ea0e0
6
gid.py
6
gid.py
@ -1,7 +1,7 @@
|
||||
#=======================================================================
|
||||
|
||||
__version__ = '''0.0.01'''
|
||||
__sub_version__ = '''20120317005456'''
|
||||
__sub_version__ = '''20130319145754'''
|
||||
__copyright__ = '''(c) Alex A. Naanou 2011'''
|
||||
|
||||
|
||||
@ -32,7 +32,7 @@ def image_gid(path, date=None,
|
||||
use_ctime=False,
|
||||
hash_func=sha.sha):
|
||||
'''
|
||||
Calgulate image GID.
|
||||
Calculate image GID.
|
||||
|
||||
Main gid criteria:
|
||||
- unique
|
||||
@ -45,7 +45,7 @@ def image_gid(path, date=None,
|
||||
Example:
|
||||
Alex_A.Naanou-20110627-195706-DSC_1234
|
||||
|
||||
If hash_func is not None, then the function will be used to henerate
|
||||
If hash_func is not None, then the function will be used to generate
|
||||
a hex hash from the above string.
|
||||
|
||||
Supported fields:
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#=======================================================================
|
||||
|
||||
__version__ = '''0.0.01'''
|
||||
__sub_version__ = '''20120320010842'''
|
||||
__sub_version__ = '''20130319002125'''
|
||||
__copyright__ = '''(c) Alex A. Naanou 2011'''
|
||||
|
||||
|
||||
@ -24,6 +24,7 @@ from pprint import pprint
|
||||
from itertools import izip, izip_longest
|
||||
|
||||
import pyexiv2 as metadata
|
||||
import couchdb
|
||||
|
||||
from pli.logictypes import ANY, OR
|
||||
|
||||
@ -270,7 +271,7 @@ if __name__ == '__main__':
|
||||
|
||||
INDEX_PATH = config.get('INDEX_ROOT', os.path.join('test', 'index2'))
|
||||
|
||||
FILE_LIST = os.path.join('test', 'flatfilelist-P7000.json')
|
||||
FILE_LIST = os.path.join('test', 'flatfilelist-P7000-new.json')
|
||||
## FILE_LIST = os.path.join('test', 'flatfilelist-120kfiles.json')
|
||||
## FILE_LIST = os.path.join('test', 'flatfilelist.json')
|
||||
BUILD_FILE_LIST = False if os.path.exists(FILE_LIST) else True
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#=======================================================================
|
||||
|
||||
__version__ = '''0.0.01'''
|
||||
__sub_version__ = '''20121212171440'''
|
||||
__sub_version__ = '''20130319144110'''
|
||||
__copyright__ = '''(c) Alex A. Naanou 2012'''
|
||||
|
||||
|
||||
@ -123,6 +123,16 @@ def build_cache_dirs(path, config=config):
|
||||
os.makedirs(p)
|
||||
|
||||
|
||||
# image format:
|
||||
# {
|
||||
# 'id': <image-id>,
|
||||
# 'preview': {
|
||||
# <resolution>: <cache-path>,
|
||||
# ...
|
||||
# },
|
||||
# 'path': <image-path>
|
||||
# }
|
||||
#
|
||||
def build_index(path, images=None, count=None):
|
||||
'''
|
||||
'''
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user