girder_large_image.rest package
Submodules
girder_large_image.rest.item_meta module
girder_large_image.rest.large_image_resource module
- girder_large_image.rest.large_image_resource.createThumbnailsJobLog(job, info, prefix='', status=None)[source]
Log information about the create thumbnails job.
- Parameters:
job – the job object.
info – a dictionary with the number of thumbnails checked, created, and failed.
prefix – a string to place in front of the log message.
status – if not None, a new status for the job.
- girder_large_image.rest.large_image_resource.createThumbnailsJobTask(item, spec)[source]
For an individual item, check or create all of the appropriate thumbnails.
- Parameters:
item – the image item.
spec – a list of thumbnail specifications.
- Returns:
a dictionary with the total status of the thumbnail job.
- girder_large_image.rest.large_image_resource.createThumbnailsJobThread(job)[source]
Create thumbnails for all of the large image items.
The job object contains:
- spec: an array, each entry of which is the parameter dictionary for the model getThumbnail function. - logInterval: the time in seconds between log messages. This also controls the granularity of cancelling the job. - concurrent: the number of threads to use. 0 for the number of cpus.
- Parameters:
job – the job object including kwargs.