Skip to content

Command to efficiently import elements from a large list of IIIF images

Valentin Rigal requested to merge import-images into master

Closes #927 (closed)

I went a bit overboard with this but it's now making as few DB queries as possible, while still capable of:

  • processing a large list of paths
  • supports gzipped and text files
  • works in 2 stages:
    1. read the file and build an in-memory graph of the required elements
    2. browse the graph and only create the required elements
  • create images in db (with size detection)
  • use specified page & folder types
  • will not create duplicates on restart as it detects pre-existing element with same name+type+parents (using a relatively efficient query without overlap nor contains on paths)
Edited by Bastien Abadie

Merge request reports

Loading