-
-
Notifications
You must be signed in to change notification settings - Fork 15k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emacs: providing ImageMagick support #70631
Comments
I probably just wanted to analyze myself and hear the thoughts on this. Probably I would just transform this issue into Emacs linkage issue. Probably the right thing is to grow the Emacs closure if |
@matthewbauer Please say a word. Should I include I made a diff between nix-store closures. In common they would deduplicate:
And list of what is new to Emacs closure from ImageMagic:
(also why is It seems like it would add ~50-150 MB. What you would say, powerful by default (include in |
About GCC in ImageMagic created a report: #70647, it would be solved in time. |
@jwiegley Good day, John. Sorry to bother you, you are the maintainer that was last active regarding Emacs. What do you think about the two messages above: #70631 (comment) |
I would like to see ImageMagick support included. And on both Darwin (which does not use X) and Linux. |
So I suspect the issue is that "shrink-rpath" is removing imagemagick from the RPATH. A quick fix is to add "dontPatchELF" to the Emacs derivation. PatchELF should skip anything that has the DT_NEEDED flag set. Something must be off with ImageMagick that it doesn't get that flag. One trick you can do to add imagemagick without recompiling is by setting |
Ok. I decided that raising |
@jwiegley @matthewbauer I'm doing Mainly I just want to be able to message people without waking them up. But that it is in Emacs is a bonus. |
It looks like this can be closed safely, there's pkgs.emacs.override { imagemagick = pkgs.imagemagickBig; } which adds imagemagick support (at least it works for telega). @Anton-Latukha, can you try it? |
@cab404 this works for me. I was using home manager and set To easily check if this worked the following elisp should return (image-type-available-p 'imagemagick) |
You mentioned, "at least it works for telega". 'cuz I tried some time ago,
AFAIR that is not the only hardcode place. Upstream things are so upstream. Is it working for you on NixOS and how you achieved it? |
https://gitlab.com/cab404/nixos-config/-/blob/a7eaa0990fa9f1cda1e383ef2d01403a2b2aaf26/home.nix telega changes: 13, 61, 260 |
Aha. Thanks. |
So, that worked? |
Kind of... Telega starts to intialize. But fails with error code:
I'm sitting on the current So it seems state in the link you provided needs additionally an old TDLib. I would try up-to-date ... Yep, it works. |
This issue is also affecting emacs when using EXWM. I added a PR that fixes this and am happy for contributions (@exwm-people) |
@moritzschaefer Does that actually solve the problem for you? I use EXWM (but not through the module) and haven't been able to get my Emacs to reliably build with ImageMagick support at all. |
I marked this as stale due to inactivity. → More info |
How is this affecting exwm in any way? |
@adisbladis When working with image-buffer (e.g. zooming). |
Since it's disabled by default upstream and |
Describe the bug
For support of
imagemagick
, which is allows a lot of picture and even gif abilities, picture previews, in Emacs - pretty handy stuff - it is needed to overload Emacs closure and as so - compile it only for enabling that.To Reproduce
Install Emacs.
Run any
imagemagic
related feature.Observe that there is no support of it.
Observed behavior
Metadata
The text was updated successfully, but these errors were encountered: