Author Topic: Thumbnails for PDF and MPG Files in LXDE  (Read 1662 times)

Offline bcat23

  • Jr. Member
  • **
  • Posts: 36
Thumbnails for PDF and MPG Files in LXDE
« on: October 24, 2010, 12:11:01 PM »
Is there a way to create thumbnails for pdf and mpg files in LXDE using either PCMan or Nautilus file managers? I figured out to change my file manager from PCMan to Nautilus (I like Nautilus better because PCMan seems to be a missing a menu entry/command to create a new folder). But in both file managers I do not see thumbnail previews for pdf or mpg files. This was a feature in Gnome and KDE that I liked a lot.

Do I need to install a plug-in? Is there a certain pdf viewer or media player that I need to use for the thumbnails to work?

Thanks.

Offline bcat23

  • Jr. Member
  • **
  • Posts: 36
Re: Thumbnails for PDF and MPG Files in LXDE
« Reply #1 on: October 24, 2010, 12:44:29 PM »
I just figured out how to get this to work in thunar. I had to install thunar along with a few plug-ins.  :)

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: Thumbnails for PDF and MPG Files in LXDE
« Reply #2 on: October 24, 2010, 01:46:09 PM »
Hi,

Create a new folder in PCManFM : right click in the middle of right part, first menu : New → Directory.

Get the thumbnails : display your images in any image viewer, go to the .thumbnails directory, browse there and see if the thumbnails stocked there fit your needs.

:-)

If not, you can use "convert" from the ImageMagick suite, with a command script such as:
Code: [Select]
#!/bin/sh
mkdir modif
for i in `ls *.*`;do convert $i -resize 48x48 modif/$i ; done

You change the value "48x48" with what suits you. This is in pixels.


I just figured out how to get this to work in thunar. I had to install thunar along with a few plug-ins.  :)

Which ones ? :)

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Thumbnails for PDF and MPG Files in LXDE
« Reply #3 on: October 24, 2010, 01:47:38 PM »
In PCManFM > Edit > Preferences > Display tab > Don not generate thumbnails for files exceeding this size = 2048kb (default). Change the size to something large enough to cover your largest file.

To create a new folder in PCManFM, right click in an empty part of the open directory and choose New > Folder. This is the first entry in the right click menu.


Offline bcat23

  • Jr. Member
  • **
  • Posts: 36
Re: Thumbnails for PDF and MPG Files in LXDE
« Reply #4 on: October 24, 2010, 04:39:58 PM »
Thanks for the info. I totally did not even think of trying to right click for the new folder command in PCMan. Increasing the file size for thumbnails in the PCMan preferences worked for the pdfs, but it looks like PCMan limits the file size for thumbnails to 32768 kb. So it does not generate thumbnails for my larger mpg files.  :(

For thunar, I installed several packages that start with the name "thunar-thumbnailers" in the repository. I think the main ones are "thunar-thumbnailers" and "thunar-thumbnailers-ffmpeg". There are also ones for grace thumbnails, raw thumbnails, and tex thumbnails. I installed them all to make sure it worked.  :)