User Tools

Site Tools


rescale_thumbs

Rescale thumbs by hand

↩ Unclassified Workflows

The following text describes how to create or rescale thumbnails by hand. You only need to do this, if you have replaced or deleted images that already have thumbnails or if the thumbnails and the images in the Dokuviewer or ECHO Viewer don't correspond.

You have two possibilities. In both cases you have to use the terminal.

Delete old thumbnails

  1. You have to log in at the foxridge as archive. You need an ssh-key for that. See here for more information about how to create an ssh-key.
  2. Go to /mpiwg/temp/online/scaled/thumb/permanent/<the path where the images are located on online/permanent>
    For example:
    The images you replaced have the path:
    foxridge/online/permanent/echo/XXX/images
    Then the thumbs have the path:
    /mpiwg/temp/online/scaled/thumb/permanent/echo/XXX/images
  3. Delete the thumbnail images.
  4. The next time the thumbnails are needed they will be created.

Use Scale-o-mat

  1. Log in to einst2 (you need administrator rights for that)
  2. Use the script /usr/local/scripts/scaleomat with the following parameters.

List of parameters (exemplary) :
If you use the script without any parameter, it will print you a list of its possible parameters.

Example: the original images are at foxridge/online/permanent/echo/XXX/images.

  • -src=/mpiwg/online/
  • -dest=/mpiwg/temp/online/scaled/thumb
  • -dir=permanent/echo/XXX
  • -scaleto=100

The Scale-o-mat takes the src and dir arguments to build the source path and the dest and dir argument to build the destination path.

The scaleto parameter defines the size of the resulting (thumbnail) images.

If you have changed images, use -replace. If you have deleted images use -sync. All existing thumbnails then will be deleted before the Scale-o-mat creates them.

For another use of the Scale-o-mat see here.

rescale_thumbs.txt · Last modified: 2020/10/10 14:13 by 127.0.0.1