Deleted_1-year-ago · 2022-08-28 17:52
I was trying to view images in emacs, and it works fine as expected. The problem came when I tried to view thumbnails with image-dired.
Whenever I try to use `M-x thumbs` I get `thumbs-call-convert: Searching for program: No such file or directory, /usr/X11R6/bin/convert`, whenever I try to use `image-dired` from whitin `dired` I get `image-diredx--invoke-process: Wrong type argument: processp, [nil 25355 43307 399593 nil image-dired-thumb-queue-run nil nil 110000]` and when I call `image-dired` alone I get `Error running timer ‘image-dired-thumb-queue-run’: (error "Executable image-dired-cmd-create-thumbnail-program not found")`
I scrolled through documentation in the wiki and I thought that I had a problem with Image magick, so I installed, but as you have read, It tries to read to executable from a release of Xorg that is 26 years old.
I'm a little lost here, I've scrolled through all the posts with "thumb" in various forums a good part of them mostly apply to compile time shenanigans (ruled out because I can see images with dired and pressing 'v' or Windows with the image magick support (and I'm on Debian). Thanks.
SOLVED!: I had problems with `image-dired+`, an unsupported package that is still in melpa for reasons... It may have installed as dependency with some other package or may have forgotten when I installed it (probably the later). Simply deleting the walking corpse of a package solved all my problems.
ieure · 2022-08-28 19:45
`thumbs-conversion-program` is what `thumbs-call-convert` uses, is that set to something wacky? Is `/usr/X11R6/bin` in your `$PATH`?
It doesn't do thumbnails, but you might consider my [Dired Image Slideshow](https://codeberg.org/emacs-weirdware/diss) (diss) package. I made it because I tried every other slideshow thing for Emacs and didn't think any of them were much good.
Deleted_1-year-ago · 2022-08-28 22:04
It is not, I know that Debian uses a ten year old kernel (at least :)), but there is not a single piece of code in my dependencies that requires that directory (except `thumbs`).
ivotade · 2022-08-28 23:59
I don't use this feature but I just tested and it works. I'm using current Debian stable with the packaged emacs. Digging in the source of `thumbs`, it uses a variable called `thumbs-conversion-program`, which is defined as `(or (executable-find "convert") "/usr/X11R6/bin/convert")`. I do have a `convert` program. It appears to come with the Debian package `imagemagick-6.q16`. Can you invoke the `convert` program in the terminal? If no, you might have to fix that. If yes, did you try to restart emacs after installing imagemagick?
Deleted_1-year-ago · 2022-08-29 00:33
I had installed imagemagick from the appimage, but with the packaged debian binary `thumbs` works perfectly, but `image-dired` still has the same errors.
ivotade · 2022-08-29 00:59
Thats weird. `image-dired-cmd-create-thumbnail-program` has the value defined as `convert`, so it should behave the same as `thumbs`. Are you sure its the same error?
> and when I call image-dired alone I get
> Error running timer ‘image-dired-thumb-queue-run’: (error Executable image-dired-cmd-create-thumbnail-program not found")
Deleted_1-year-ago · 2022-08-29 01:41
Rookie mistake, I copy and pasted in the wrong order, I actually got `image-diredx--invoke-process: Wrong type argument: processp, [nil 25356 6317 371427 nil image-dired-thumb-queue-run nil nil 637000]`
ivotade · 2022-08-29 03:53
It seems you are using an external package. Try to use `image-dired` without loading your init-file (`emacs -q`).
This `image-diredx--invoke-process` function appears to come from the `image-dired+` package. I'm only a beginner in elisp, but this line is very suspicious: https://github.com/mhayashi1120/Emacs-image-diredx/blob/b68094625d963056ad64e0e44af0e2266b2eadc7/image-dired%2B.el#L159
I can only guess that this worked before but emacs has since changed something and this no longer works. The package author no longer maintains this code.
Deleted_1-year-ago · 2022-08-29 22:49
And it works just fine, it was the `image-dired+` that was giving me trouble, I don't even remember installing it lol. I think that by installing, emacs linked it to `image-dired` proper, giving me all the headaches that software that requires necromancy to work always comes with.
Thanks for the help :^).