Commits

Viliam Segeda committed b369cb4

directly generate thumbnail

  • Participants
  • Parent commits 44a0496

Comments (0)

Files changed (1)

File reports/tasks.py

     """ generate thumbnail if source path exists """
     thumbnailer = get_thumbnailer(path)
     if thumbnailer.source_storage.exists(path):
-        if high_resolution:
-            options['HIGH_RESOLUTION'] = high_resolution
-        thumbnailer.get_thumbnail(options, generate=True)
+        thumbnailer.generate_thumbnail(options, high_resolution=high_resolution)
     else:
         #TODO: announce missing file
         pass