Thumbnails: Difference between revisions
Stackcoder (talk | contribs) m Fix escapes |
Stackcoder (talk | contribs) m Use same MimeType |
||
| Line 97: | Line 97: | ||
gdk-pixbuf can be used to generate thumbnails for RAW camera image formats by reading the embedded jpeg. This embedded jpeg is typically generated in the camera or overwritten by your RAW editing software, and may not match what the photo looks like when opened in a viewer or editor. | gdk-pixbuf can be used to generate thumbnails for RAW camera image formats by reading the embedded jpeg. This embedded jpeg is typically generated in the camera or overwritten by your RAW editing software, and may not match what the photo looks like when opened in a viewer or editor. | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"># configuration.nix | ||
# configuration.nix | |||
{ pkgs, ... }: | { pkgs, ... }: | ||
| Line 156: | Line 155: | ||
TryExec=exiv2-thumbnailer | TryExec=exiv2-thumbnailer | ||
Exec=exiv2-thumbnailer %i %o | Exec=exiv2-thumbnailer %i %o | ||
MimeType=image/x- | MimeType=image/x-canon-crw;image/x-canon-cr2;image/x-canon-cr3;image/x-adobe-dng;image/x-dng; | ||
''; | ''; | ||
}) | }) | ||