|
|
@ -618,9 +618,11 @@ def make_gallery(args):
|
|
|
|
for line in sys.stdin:
|
|
|
|
for line in sys.stdin:
|
|
|
|
line = line.rstrip()
|
|
|
|
line = line.rstrip()
|
|
|
|
if line and not line.startswith("#"):
|
|
|
|
if line and not line.startswith("#"):
|
|
|
|
|
|
|
|
try:
|
|
|
|
item = json.loads(line)
|
|
|
|
item = json.loads(line)
|
|
|
|
items.append(item)
|
|
|
|
items.append(item)
|
|
|
|
|
|
|
|
except ValueError as e:
|
|
|
|
|
|
|
|
print (u"Error reading line {0}, {1}".format(line, e).encode("utf-8"), file=sys.stderr)
|
|
|
|
# Ensure / Generate tiles per image
|
|
|
|
# Ensure / Generate tiles per image
|
|
|
|
# items.sort(key=lambda x: x['url'])
|
|
|
|
# items.sort(key=lambda x: x['url'])
|
|
|
|
tiles = []
|
|
|
|
tiles = []
|
|
|
|