Closed gingerbeardman closed 3 years ago
This is probably because imagemagick
is built using the --without-x
flag:
We build without X11 since [1]
Don’t build X11/XQuartz GUIs as they are a bad user experience on macOS.
[1] https://docs.brew.sh/Acceptable-Formulae#stuff-that-builds-a-gui-by-default-but-doesnt-have-to
Thanks, that would be it.
Your policy has
if the GUI is useful and would be widely used, also build the GUI.
Pros
&
Don’t build X11/XQuartz GUIs as they are a bad user experience on macOS.
Cons
As imagemagick display
has no alternative, and is very useful, my thoughts are that having a "bad user experience" is preferable to the user experience being unavailable.
It's not clear it would be widely used, though, and adding X11 support would pull in a large dependency tree.
It may be better for you to host a version of this formula with X11 support in your own tap. Here are some docs to help you get started:
https://docs.brew.sh/Taps https://docs.brew.sh/Interesting-Taps-and-Forks https://docs.brew.sh/How-to-Create-and-Maintain-a-Tap https://brew.sh/2020/11/18/homebrew-tap-with-bottles-uploaded-to-github-releases/
But is it clear that it wouldn't be widely used?
Anyway, thanks, I'll take a look at making a tap.
But is it clear that it wouldn't be widely used?
I actually think it's reasonably clear that it wouldn't be, given that the lack of X11 support doesn't come up too often. It does come up occasionally, though, but this is a drop in the bucket compared to its ~100,000 monthly installs.
It seems, however, that you don't need to maintain your own tap. Someone else is already doing that: https://github.com/tlk/homebrew-imagemagick-x11
You can install it with
brew install tlk/imagemagick-x11/imagemagick
That said, they really should be naming their formula something else (like, say, imagemagick-x11
) to avoid the name clash with the core formula.
Thanks again.
I also just saw see this: https://github.com/Homebrew/homebrew-core/pull/66421 ...so close!
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputbrew doctor
above contains no "Warning" lines.What were you trying to do (and why)?
display image.png
...to get imagemagick interactive interface for manipulating an image.
What happened (include all command output)?
error
full output:
What did you expect to happen?
display should open using X11 and show something like this:
Step-by-step reproduction instructions (by running
brew
commands)brew install --cask xquartz
brew imagemagick
display image.png
(specifying path to a valid and existing image)It seems imagemagick is building in a way that makes it not run correctly with X11/xquartz on Mojave.