University of Glasgow · MVLS

MVLS Virtual Microscopy Catalogue

Search, review and prepare teaching slides from the virtual microscopy archive.


Maintenance Jobs

One-off maintenance tasks that don't fit anywhere else - run from here instead of the command line. Visible to system administrators only.

Sync manual thumbnails

Converts every PNG waiting in manual_thumbnails/ (created by hand in QuPath for slides automated generation couldn't handle) into the three real thumbnail sizes. The previous thumbnail for any slide being replaced is backed up first, and each source PNG is removed once converted successfully.

Sync comparison flags from stain dictionary

Sets the CMP badge (slide_metadata.is_comparison_slide) for every slide whose stain matches a stain dictionary entry marked Comparison slide, wherever it isn't already set - see Review Metadata for what that means. Additive only: never unmarks a slide that's already CMP. Run this after curating a new comparison entry, or after a bulk import, to catch anything the live per-correction check didn't.

Clean up old backups

Deletes full-database backups under catalogue/backups/database/full/, keeping only the most recent 3. Only ever touches this deployment's own timestamped backup files - nothing else in that folder. There is still no restore or browse/download facility anywhere in the web app - this only ever deletes old backups, never lists, reads, or restores one.