description from jpeg
This commit is contained in:
@@ -9,7 +9,7 @@ from imagelist2.db import DB, sqlite_sqrt, sqlite_square
|
||||
from imagelist2.image import ImageMeasure, is_image_extension
|
||||
from tqdm import tqdm
|
||||
|
||||
__version__ = "0.0.2"
|
||||
__version__ = "0.0.3"
|
||||
SQLFILE = "image-list.sqlite"
|
||||
# IMGMATCH = re.compile("|".join([".*\." + x + "$" |.*\.jpeg$|.*\.png$|.*\.gif$|.*\.tif$", re.I)
|
||||
BADDIRS = ["_tn", "_med", ".tn", ".med"]
|
||||
@@ -124,13 +124,14 @@ class ImageList:
|
||||
continue
|
||||
image = ImageMeasure(filename)
|
||||
cursor.execute(
|
||||
"""INSERT INTO data(hash,portrait,width,height)
|
||||
VALUES(?,?,?,?)""",
|
||||
"""INSERT INTO data(hash,portrait,width,height,description)
|
||||
VALUES(?,?,?,?,?)""",
|
||||
(
|
||||
row[0],
|
||||
image.get_portrait(),
|
||||
image.get_width(),
|
||||
image.get_height(),
|
||||
image.get_description()
|
||||
),
|
||||
)
|
||||
if i % 50 == 0:
|
||||
|
||||
Reference in New Issue
Block a user