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
imagemagick: not built with HEIF support #26444
Comments
It requires a library that Homebrew doesn't ship currently, and more problematically, a library that doesn't build using a recent version of If you want to play around with it, this should work as long as you build the dep with diff --git a/Formula/imagemagick.rb b/Formula/imagemagick.rb
index b65ef07a0c..f932b38381 100644
--- a/Formula/imagemagick.rb
+++ b/Formula/imagemagick.rb
@@ -17,6 +17,7 @@ class Imagemagick < Formula
option "with-fftw", "Compile with FFTW support"
option "with-hdri", "Compile with HDRI support"
+ option "with-libde265", "Compile with HEIC support"
option "with-opencl", "Compile with OpenCL support"
option "with-openmp", "Compile with OpenMP support"
option "with-perl", "Compile with PerlMagick"
@@ -42,6 +43,7 @@ class Imagemagick < Formula
depends_on "fontconfig" => :optional
depends_on "little-cms" => :optional
depends_on "little-cms2" => :optional
+ depends_on "libde265" => :optional
depends_on "libwmf" => :optional
depends_on "librsvg" => :optional
depends_on "liblqr" => :optional
diff --git a/Formula/libde265.rb b/Formula/libde265.rb
new file mode 100644
index 0000000000..b41b31be59
--- /dev/null
+++ b/Formula/libde265.rb
@@ -0,0 +1,32 @@
+class Libde265 < Formula
+ desc "Open h.265 video codec implementation"
+ homepage "https://github.com/strukturag/libde265"
+ url "https://github.com/strukturag/libde265/releases/download/v1.0.2/libde265-1.0.2.tar.gz"
+ sha256 "eaa0348839c2935dd90647d72c6dd4a043e36361cb3c33d2b04df10fbcebd3cb"
+
+ head do
+ url "https://github.com/strukturag/libde265.git"
+ depends_on "autoconf" => :build
+ depends_on "automake" => :build
+ depends_on "libtool" => :build
+ end
+
+ def install
+ system "autoreconf", "-fvi" if build.head?
+ system "./configure", "--disable-dependency-tracking",
+ "--disable-silent-rules",
+ "--disable-sherlock265",
+ "--disable-dec265",
+ "--prefix=#{prefix}"
+ system "make", "install"
+
+ # Install the test-related executables in libexec.
+ (libexec/"bin").install bin/"acceleration_speed",
+ bin/"block-rate-estim",
+ bin/"tests"
+ end
+
+ test do
+ system libexec/"bin/tests"
+ end
+end |
Closing, as @DomT4 explained: this will need to be built on stable released versions before we can integrate it into homebrew. |
Could we reopen it when the issue is solved or at least put a link to the PR’s for the next steps? It is not clear from this thread what the timelines for this are. iOS 11 is now the vast majority of Apple users and there is real scarcity of good encoders, but tons and tons of decoders. |
You can now
|
@ilovezfs Thank you! I've tried
Install log:
Some more info:
|
I think the latest version of |
Confirming this is still broken per the above - should the issue be reopened? In case it's useful to anyone else I was able to restore the working version with "brew switch imagemagick 7.0.7-28". |
It should be fixed again by the end of the week. |
Should be a simple |
This work for me on mac osx 10.13.4: brew install --with-libheif imagemagick
Install log:
|
brew install
(orupgrade
,reinstall
) a single, official formula (not cask)? If it's a generalbrew
problem please file this issue at Homebrew/brew: https://github.com/Homebrew/brew/issues/new. If it's abrew cask
problem please file this issue at https://github.com/caskroom/homebrew-cask/issues/new. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.brew update
and can still reproduce the problem?brew doctor
, fixed all issues and can still reproduce the problem?brew gist-logs <formula>
(where<formula>
is the name of the formula that failed) and included the output link?brew gist-logs
didn't work: ranbrew config
andbrew doctor
and included their output with your issue?doctor.txt
config.txt
To help us debug your issue please explain:
Support for HEIF was added to ImageMagick 7.0.7-22: ImageMagick/ImageMagick#507
However ImageMagick 7.0.7-28 as built with Homebrew does not include this support, and it does not appear as a buildable option under "brew info imagemagick".
As per the issue referenced above, ImageMagick should now support HEIF images.
brew install
commands)brew install imagemagick
The text was updated successfully, but these errors were encountered: