Skip to content

Instantly share code, notes, and snippets.

@h4cc
Last active November 28, 2022 12:53

Revisions

  1. h4cc revised this gist Feb 23, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion howto.md
    Original file line number Diff line number Diff line change
    @@ -25,6 +25,6 @@ Check if the mime type of your RAW images in in the `MimeType` list.

    After that, stop nautlius and clear the thumbnail caches:
    ```
    nautlius -q
    nautilus -q
    rm -rf .cache/thumbnails/* .thumbnails/*
    ```
  2. h4cc created this gist Aug 10, 2014.
    30 changes: 30 additions & 0 deletions howto.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@
    # Howto

    ## Install these programms
    ```
    sudo apt-get install gnome-raw-thumbnailer ufraw-batch
    ```

    Try now if everything works, and your thumbnails show up. If not, try the following part.


    ## Fixing missing mime types

    In case the default config does not work for you, try this:

    Edit the file `/usr/share/thumbnailers/raw.thumbnailer` as __root__ and insert the following content:

    ```
    [Thumbnailer Entry]
    TryExec=ufraw-batch
    Exec=ufraw-batch --silent --size %s --out-type=png --noexif --output=%o --overwrite --embedded-image %i
    MimeType=image/x-canon-cr2;image/x-canon-crw;image/x-minolta-mrw;image/x-nikon-nef;image/x-pentax-pef;image/x-panasonic-raw2;image/x-samsung-srw;image/x-olympus-orf;
    ```

    Check if the mime type of your RAW images in in the `MimeType` list.

    After that, stop nautlius and clear the thumbnail caches:
    ```
    nautlius -q
    rm -rf .cache/thumbnails/* .thumbnails/*
    ```