diff --git a/HDF5_Thumbnails.md b/HDF5_Thumbnails.md index 5d08b7b..6a54a29 100644 --- a/HDF5_Thumbnails.md +++ b/HDF5_Thumbnails.md @@ -1 +1,18 @@ -Welcome to the Wiki. \ No newline at end of file +# Overview + +Most people are familiar with thumbnail images for JPEG images that are presented by a file browser. The same system can be used for HDF5 files to help users sort and locate their data files. HDF5 files + + +# Pixelator + +Pixelator typically adds thumbnails to HDF5 data files after a scan has finished. This is implemented in the `insertXMP.py` script that is called from the `endOfScan` script. This is not enabled by default but is easy to set up. +1. Copy `~/pixelator/work/stxm/PixelatorController/config/PolLux/scripts/insertXMP.py` to your `config/scripts` directory +2. Edit your `endOfScan` script to include a call to the `insertXMP.py` script, e.g." +``` +filename=$2 +python3 ../../PixelatorController/config/PolLux/scripts/insertXMP.py $filename +``` +3. Edit your `settings.json` file (that is given as an argument to the Pixelator binary call) to ensure that the `endOfScanScript` parameter points to the script file above. + + +# File Browser \ No newline at end of file