Thumbnails: Difference between revisions

Crazivik (talk | contribs)
No edit summary
Crazivik (talk | contribs)
Line 53: Line 53:
On minimal GNOME environments (for example ones with the option <code>services.gnome.core-utilities.enable</code> set to <code>false</code>, or ones without <code>pkgs.gnome.totem</code>), video thumbnails do not work by default. To fix this, you can use <code>ffmpegthumbnailer</code>:
On minimal GNOME environments (for example ones with the option <code>services.gnome.core-utilities.enable</code> set to <code>false</code>, or ones without <code>pkgs.gnome.totem</code>), video thumbnails do not work by default. To fix this, you can use <code>ffmpegthumbnailer</code>:


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix"># configuration.nix
# configuration.nix
{ pkgs, ... }:  
{ pkgs, ... }:  
{
{
Line 70: Line 69:
   ];
   ];


}
}</syntaxhighlight>
</syntaxhighlight>


=== HEIC thumbnailer ===
=== HEIC thumbnailer ===
On minimal GNOME environments as explained in the FFmpeg thumbnailer section above HEIC thumbnails do not work despite the  <code>libheif</code> package being installed. To fix this, you can use the following:
On minimal GNOME environments as explained in the 'FFmpeg thumbnailer' section above HEIC thumbnails do not work despite the  <code>libheif</code> package being installed. To fix this, you need  <code>libheif.out</code> . HEIF thumbnails should now work correctly if the symlinks to 'share/thumbnailers' are defined:


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">