-def add_image_sizes(tree, gallery_path, gallery_url):
- widths = [360, 600, 1200, 1800]
- for ilustr in tree.findall('//ilustr'):
+def add_image_sizes(tree, gallery_path, gallery_url, base_url):
+ widths = [360, 600, 1200, 1800, 2400]
+ try:
+ os.makedirs(gallery_path)
+ except:
+ pass
+
+ for i, ilustr in enumerate(tree.findall('//ilustr')):