metanohi/site/projects/alart/images/index.org

436 B

alart images

#&summary Art from alart #&

#&fullpage

alart images

Click on the images to go to their SVG versions.

#++exec

  root = misc.macrog('pathdir')
  for f in os.listdir(root):
      if os.path.isfile(os.path.join(root, f)) and f.endswith('.png'):
          base = f[:-4]
          print("<a href='{base}.svg'><img src='{base}.png' alt='{base}' /></a>".format(base=base))