Coder Social home page Coder Social logo

imagemagick-pdf-thumbnailer's Introduction

PDF thumbnailer for GNOME

The normal PDF thumbnailer (evince-thumbnailer) does not work well on my system. Some issues are: not being able to create a thumbnail for PDFs (because of forms?), not being able to create a thumbnail and causing a CPU 100% spike.

Requirements

  • ImageMagick (convert -thumbnail) to create a thumbnail from a PDF. Install with: sudo apt install imagemagick

How to install

# 1. Copy the `imagemagick-pdf-thumbnailer` script to `/usr/bin/`.
sudo cp imagemagick-pdf-thumbnailer /usr/bin/
# 2. Make it executable.
sudo chmod +x /usr/bin/imagemagick-pdf-thumbnailer
# 3. Copy the `imagemagick-pdf.thumbnailer` to `/usr/share/thumbnailers/`.
sudo cp imagemagick-pdf.thumbnailer /usr/share/thumbnailers/

It is very likely you already have a PDF thumbnailer in /usr/share/thumbnailers/, e.g. evince.thumbnailer. Edit its file and remove application/pdf; from its list of handled mime types.

You may have to restart Nautilus first.

Then delete ~/.cache/thumbnails/fail/ so that all failed attempts to create a thumbnail are retried the next time the file is visible in the file viewer (probably Nautilus).

How to uninstall

Delete the files:

  • /usr/share/thumbnailers/imagemagick-pdf.thumbnailer
  • /usr/bin/imagemagick-pdf-thumbnailer

Restore the evince thumbnailer by doing the opposite from the step above โ€“ add back application/pdf to the mime type list.

Probably restart Nautilus.

Resources

License

MIT License. See LICENSE file for details.

imagemagick-pdf-thumbnailer's People

Contributors

sebadorn avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.