Coder Social home page Coder Social logo

flozz / cover-thumbnailer Goto Github PK

View Code? Open in Web Editor NEW
79.0 10.0 19.0 2.07 MB

Generates folder thumbnails for various file browser on Linux to display music album covers, preview of pictures which are in a folder and more.

Home Page: https://blog.flozz.fr/2020/07/15/cover-thumbnailer-apres-plus-de-10-ans-cest-termine/

License: GNU General Public License v3.0

Python 81.95% Shell 18.05%
nautilus thunar caja gnome xfce thumbnailer thumbnail-generator

cover-thumbnailer's People

Contributors

alexislefebvre avatar dominicme avatar flozz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cover-thumbnailer's Issues

Does Cover Thumbnailer recognise $XDG_CONFIG_DIR?

Hi! The readme indicates that the config file is installed at ~/.cover-thumbnailer/cover-thumbnailer.conf. I was wondering if this was still accurate, and if it was possible to read config files from $XDG_CONFIG_DIR/cover-thumnailer/cover-thumbnailer.conf or other hardcoded locations like ~/.config/cover-thumbnailer/cover-thumbnailer.conf

I know you use XDG directories for finding the music and pictures folders, thought it might just be out-of-date documentation?

non squared thumbs for "other" folders (films etc..)

Hi,
I'm unable to generate non-squared thumbnails for other type of folders.
I tried changing the value crop=True by crop=False in the main file at line 518 but after that it does not generate anymore...
Thanks.

(I 'm on debian testing, Files version 3.38.2)

webp support

Currently it only works if you rename your files to .png

BTW thanks for this awesome project. It makes browsing your pictures such a breeze, no need to setup a bloated and broken image server... I can't live without it anymore!

wrong thumbnail image used for music folders

I recently updated to Fedora 27 and installed the latest version on cover-thumbnailer (0.8.4) from git repository.
nautilus = 3.26, nautilus-python = 1.1, python = 2.7.13 and 3.6.3, python-pillow = 4.3.0, PyGI = 3.26.0

When i access the music folder available in "list of folder" from config, only folder containing cover.png is show with thumbnail background and that too using "other_fg.png" instead of "music_bg.png"

It was working fine in Fedora 26.

Uninstall does not do full cleanup and causes graphical glitch

After installing and uninstalling cover-thunbnailer, several of the generated files (e.g. AlbumArtSmall.jpg) remained after the uninstallation. I removed the files, but I'm now getting some weird graphical glitches with certain folders such as Music and some subfolders. Attached a screenshot of what the affected folders look like. Any help to fix this would be appreciated - happy to provide more info.

image

Specs:

  • Fedora 36
  • GNOME 42.3.1
  • GNOME nautilus 42.2

Preview for folder not showing in nautilus

Hi, I just downloaded cover-thumbnailer because I wanted folder previews for images inside the folder. Unfortunately its only showing the default icon also if there are jpegs inside. Nautilus version is 3.26.4.

video support

Probably with ffmpegthumbnailer

BTW thanks for this awesome project. It makes browsing your pictures such a breeze, no need to setup a bloated and broken image server... I can't live without it anymore!

Validating source files with sha256sums ..FAILED

AUR installed version was cover-thumbnailer 0.10.0-2

Found cover-thumbnailer-0.10.1.tar.gz
==> Validating source files with sha256sums...
cover-thumbnailer-0.10.1.tar.gz ... FAILED
==> ERROR: One or more files did not pass the validity check!
-> error making: cover-thumbnailer-exit status 1
-> Failed to install the following packages. Manual intervention is required:
cover-thumbnailer - exit status 1

PPA doesn't work for Ubuntu 20.04 / focal

On Ubuntu 20.04, I try to use the PPA:

$ sudo add-apt-repository ppa:flozz/flozz
 This PPA contain ubuntu package of my softwares...
 More info: https://launchpad.net/~flozz/+archive/ubuntu/flozz
Press [ENTER] to continue or Ctrl-c to cancel adding it.

Hit:1 http://archive.canonical.com/ubuntu focal InRelease
Ign:2 http://ppa.launchpad.net/flozz/flozz/ubuntu focal InRelease
Hit:3 http://ppa.launchpad.net/nrbrtx/python2-stuff/ubuntu focal InRelease
Err:4 http://ppa.launchpad.net/flozz/flozz/ubuntu focal Release
  404  Not Found [IP: 2001:67c:[…] 80]
Get:5 http://ubuntu.mirrors.ovh.net/ubuntu focal InRelease [265 kB]
Get:6 http://ubuntu.mirrors.ovh.net/ubuntu focal-updates InRelease [107 kB]
Get:7 http://ubuntu.mirrors.ovh.net/ubuntu focal-security InRelease [107 kB]
Reading package lists... Done 
E: The repository 'http://ppa.launchpad.net/flozz/flozz/ubuntu focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

So the Release file is missing for focal.

Thumbnails are not generated on Ubuntu 20.04

I used cover-thumbnailer on Ubuntu 19.10 and it worked perfectly.

I upgraded to Ubuntu 20.04 and the package was removed. So I installed it through source, I was able to install but it doesn't work.

I think I found why by adding some debug code:

diff --git a/cover-thumbnailer.py b/cover-thumbnailer.py
index 5078307..8508d9d 100755
--- a/cover-thumbnailer.py
+++ b/cover-thumbnailer.py
@@ -693,8 +693,9 @@ if __name__ == "__main__":
             thumbnail.save_thumb(OUTPUT_FILE, "PNG")
 
     #Picture folders
-    elif CONF['pictures_enabled'] and match_path(INPUT_FOLDER, CONF['pictures_paths']):
+    elif CONF['pictures_enabled']:
         picture_list = search_cover(INPUT_FOLDER)
+        print(INPUT_FOLDER)
         if len(picture_list) == 0:
             picture_list = search_pictures(INPUT_FOLDER)
             if len(picture_list) == 0:

And when I clear thumbnails then launch nautilus from command line, it prints this:

/tmp/gnome-desktop-file-to-thumbnail

So it looks like INPUT_FOLDER doesn't contain the real input folder but /tmp/gnome-desktop-file-to-thumbnail instead, and this break folders detection.

help / advise wanted on repurpose

Hello I`m looking for a program to change folder icons of images containing textures for 3d to their thumbnail icon.
these thumbnail icons always have revieuw as a name.

I`m not the best programmer in the world and whould apreciate anny advise you have on where to go to repurpase this.

Thanks....

Just switch from Ubuntu to Fedora and had to reinstall your utility.

Works great. I love it.

Thanks for your work.

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.