Install imagemagick with libheif on linux debian machines
I can't get a straight answer to the following simple questions:
- GENERAL CASE: how do you install an application via apt-get compiled with an optional library?
- SPECIFIC CASE: I want to install imagemagick with the
libheif
option so that I can use it to convert.heic
files to e.g..jpg
. What is the exact apt-get syntax to achieve this please? With homebrew you just add--with-libheif
, but I don't know what the debian convention is.
(I'm working on Raspbian GNU/Linux 9 (stretch)).
apt imagemagick
New contributor
add a comment |
I can't get a straight answer to the following simple questions:
- GENERAL CASE: how do you install an application via apt-get compiled with an optional library?
- SPECIFIC CASE: I want to install imagemagick with the
libheif
option so that I can use it to convert.heic
files to e.g..jpg
. What is the exact apt-get syntax to achieve this please? With homebrew you just add--with-libheif
, but I don't know what the debian convention is.
(I'm working on Raspbian GNU/Linux 9 (stretch)).
apt imagemagick
New contributor
add a comment |
I can't get a straight answer to the following simple questions:
- GENERAL CASE: how do you install an application via apt-get compiled with an optional library?
- SPECIFIC CASE: I want to install imagemagick with the
libheif
option so that I can use it to convert.heic
files to e.g..jpg
. What is the exact apt-get syntax to achieve this please? With homebrew you just add--with-libheif
, but I don't know what the debian convention is.
(I'm working on Raspbian GNU/Linux 9 (stretch)).
apt imagemagick
New contributor
I can't get a straight answer to the following simple questions:
- GENERAL CASE: how do you install an application via apt-get compiled with an optional library?
- SPECIFIC CASE: I want to install imagemagick with the
libheif
option so that I can use it to convert.heic
files to e.g..jpg
. What is the exact apt-get syntax to achieve this please? With homebrew you just add--with-libheif
, but I don't know what the debian convention is.
(I'm working on Raspbian GNU/Linux 9 (stretch)).
apt imagemagick
apt imagemagick
New contributor
New contributor
edited 2 days ago
Anastasius Vivaldus
New contributor
asked 2 days ago
Anastasius VivaldusAnastasius Vivaldus
204
204
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
The libheif
and libheif-dev
packages are not available for Debian Stretch. They are available for Buster but they are still in testing and not officially supported. As a result of this, installing imagemagick
via apt
will not provide conversion of heic files.
If you want to convert .heic
files to another format such as .jpeg
then you will need to compile imagemagick
from source. First, get the code for libheic
from here and compile it with the standard options:
https://github.com/strukturag/libheif/archive/v1.3.2.tar.gz
You can get Imagemagick here:
https://github.com/ImageMagick/ImageMagick/archive/7.0.8-23.tar.gz
To get it to compile properly, I had to set the following variables:
export CFLAGS=-I/path/to/libheif/1.3.2/include
export LDFLAGS=-L/path/to/libheif/1.3.2/lib
export PKG_CONFIG_PATH=/path/to/libheif/1.3.2/lib/pkgconfig
I also previously added the bin
and lib
directores of libheif
to my respective PATH
and LD_LIBRARY_PATH
although it didn't work which is why I did the above.
I then ran configure with these options:
./configure --prefix=/path/to/imagemagick --with-heic=yes
Imagemagick will then compile with heic
support. I was able to convert a .heic image to .jpeg afterwards with no issues.
Thanks for the thorough answer. To the general question; if those packages had been available for debian stretch, what would have been the syntax to install a build of imagemagick that incorporates those packages?
– Anastasius Vivaldus
2 days ago
@Anastasius Vivaldus That would depend on how the package was built. The libraries for heic might have already been included or it might have been necessary to install them via apt separately. Either way, the functionality for the Imagemagick package from the Debian reops to recognize and convert would be available so it and the libheif package(if necessary) would just be installed viaapt
.
– Nasir Riley
2 days ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Anastasius Vivaldus is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f492741%2finstall-imagemagick-with-libheif-on-linux-debian-machines%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The libheif
and libheif-dev
packages are not available for Debian Stretch. They are available for Buster but they are still in testing and not officially supported. As a result of this, installing imagemagick
via apt
will not provide conversion of heic files.
If you want to convert .heic
files to another format such as .jpeg
then you will need to compile imagemagick
from source. First, get the code for libheic
from here and compile it with the standard options:
https://github.com/strukturag/libheif/archive/v1.3.2.tar.gz
You can get Imagemagick here:
https://github.com/ImageMagick/ImageMagick/archive/7.0.8-23.tar.gz
To get it to compile properly, I had to set the following variables:
export CFLAGS=-I/path/to/libheif/1.3.2/include
export LDFLAGS=-L/path/to/libheif/1.3.2/lib
export PKG_CONFIG_PATH=/path/to/libheif/1.3.2/lib/pkgconfig
I also previously added the bin
and lib
directores of libheif
to my respective PATH
and LD_LIBRARY_PATH
although it didn't work which is why I did the above.
I then ran configure with these options:
./configure --prefix=/path/to/imagemagick --with-heic=yes
Imagemagick will then compile with heic
support. I was able to convert a .heic image to .jpeg afterwards with no issues.
Thanks for the thorough answer. To the general question; if those packages had been available for debian stretch, what would have been the syntax to install a build of imagemagick that incorporates those packages?
– Anastasius Vivaldus
2 days ago
@Anastasius Vivaldus That would depend on how the package was built. The libraries for heic might have already been included or it might have been necessary to install them via apt separately. Either way, the functionality for the Imagemagick package from the Debian reops to recognize and convert would be available so it and the libheif package(if necessary) would just be installed viaapt
.
– Nasir Riley
2 days ago
add a comment |
The libheif
and libheif-dev
packages are not available for Debian Stretch. They are available for Buster but they are still in testing and not officially supported. As a result of this, installing imagemagick
via apt
will not provide conversion of heic files.
If you want to convert .heic
files to another format such as .jpeg
then you will need to compile imagemagick
from source. First, get the code for libheic
from here and compile it with the standard options:
https://github.com/strukturag/libheif/archive/v1.3.2.tar.gz
You can get Imagemagick here:
https://github.com/ImageMagick/ImageMagick/archive/7.0.8-23.tar.gz
To get it to compile properly, I had to set the following variables:
export CFLAGS=-I/path/to/libheif/1.3.2/include
export LDFLAGS=-L/path/to/libheif/1.3.2/lib
export PKG_CONFIG_PATH=/path/to/libheif/1.3.2/lib/pkgconfig
I also previously added the bin
and lib
directores of libheif
to my respective PATH
and LD_LIBRARY_PATH
although it didn't work which is why I did the above.
I then ran configure with these options:
./configure --prefix=/path/to/imagemagick --with-heic=yes
Imagemagick will then compile with heic
support. I was able to convert a .heic image to .jpeg afterwards with no issues.
Thanks for the thorough answer. To the general question; if those packages had been available for debian stretch, what would have been the syntax to install a build of imagemagick that incorporates those packages?
– Anastasius Vivaldus
2 days ago
@Anastasius Vivaldus That would depend on how the package was built. The libraries for heic might have already been included or it might have been necessary to install them via apt separately. Either way, the functionality for the Imagemagick package from the Debian reops to recognize and convert would be available so it and the libheif package(if necessary) would just be installed viaapt
.
– Nasir Riley
2 days ago
add a comment |
The libheif
and libheif-dev
packages are not available for Debian Stretch. They are available for Buster but they are still in testing and not officially supported. As a result of this, installing imagemagick
via apt
will not provide conversion of heic files.
If you want to convert .heic
files to another format such as .jpeg
then you will need to compile imagemagick
from source. First, get the code for libheic
from here and compile it with the standard options:
https://github.com/strukturag/libheif/archive/v1.3.2.tar.gz
You can get Imagemagick here:
https://github.com/ImageMagick/ImageMagick/archive/7.0.8-23.tar.gz
To get it to compile properly, I had to set the following variables:
export CFLAGS=-I/path/to/libheif/1.3.2/include
export LDFLAGS=-L/path/to/libheif/1.3.2/lib
export PKG_CONFIG_PATH=/path/to/libheif/1.3.2/lib/pkgconfig
I also previously added the bin
and lib
directores of libheif
to my respective PATH
and LD_LIBRARY_PATH
although it didn't work which is why I did the above.
I then ran configure with these options:
./configure --prefix=/path/to/imagemagick --with-heic=yes
Imagemagick will then compile with heic
support. I was able to convert a .heic image to .jpeg afterwards with no issues.
The libheif
and libheif-dev
packages are not available for Debian Stretch. They are available for Buster but they are still in testing and not officially supported. As a result of this, installing imagemagick
via apt
will not provide conversion of heic files.
If you want to convert .heic
files to another format such as .jpeg
then you will need to compile imagemagick
from source. First, get the code for libheic
from here and compile it with the standard options:
https://github.com/strukturag/libheif/archive/v1.3.2.tar.gz
You can get Imagemagick here:
https://github.com/ImageMagick/ImageMagick/archive/7.0.8-23.tar.gz
To get it to compile properly, I had to set the following variables:
export CFLAGS=-I/path/to/libheif/1.3.2/include
export LDFLAGS=-L/path/to/libheif/1.3.2/lib
export PKG_CONFIG_PATH=/path/to/libheif/1.3.2/lib/pkgconfig
I also previously added the bin
and lib
directores of libheif
to my respective PATH
and LD_LIBRARY_PATH
although it didn't work which is why I did the above.
I then ran configure with these options:
./configure --prefix=/path/to/imagemagick --with-heic=yes
Imagemagick will then compile with heic
support. I was able to convert a .heic image to .jpeg afterwards with no issues.
edited 2 days ago
answered 2 days ago
Nasir RileyNasir Riley
2,406239
2,406239
Thanks for the thorough answer. To the general question; if those packages had been available for debian stretch, what would have been the syntax to install a build of imagemagick that incorporates those packages?
– Anastasius Vivaldus
2 days ago
@Anastasius Vivaldus That would depend on how the package was built. The libraries for heic might have already been included or it might have been necessary to install them via apt separately. Either way, the functionality for the Imagemagick package from the Debian reops to recognize and convert would be available so it and the libheif package(if necessary) would just be installed viaapt
.
– Nasir Riley
2 days ago
add a comment |
Thanks for the thorough answer. To the general question; if those packages had been available for debian stretch, what would have been the syntax to install a build of imagemagick that incorporates those packages?
– Anastasius Vivaldus
2 days ago
@Anastasius Vivaldus That would depend on how the package was built. The libraries for heic might have already been included or it might have been necessary to install them via apt separately. Either way, the functionality for the Imagemagick package from the Debian reops to recognize and convert would be available so it and the libheif package(if necessary) would just be installed viaapt
.
– Nasir Riley
2 days ago
Thanks for the thorough answer. To the general question; if those packages had been available for debian stretch, what would have been the syntax to install a build of imagemagick that incorporates those packages?
– Anastasius Vivaldus
2 days ago
Thanks for the thorough answer. To the general question; if those packages had been available for debian stretch, what would have been the syntax to install a build of imagemagick that incorporates those packages?
– Anastasius Vivaldus
2 days ago
@Anastasius Vivaldus That would depend on how the package was built. The libraries for heic might have already been included or it might have been necessary to install them via apt separately. Either way, the functionality for the Imagemagick package from the Debian reops to recognize and convert would be available so it and the libheif package(if necessary) would just be installed via
apt
.– Nasir Riley
2 days ago
@Anastasius Vivaldus That would depend on how the package was built. The libraries for heic might have already been included or it might have been necessary to install them via apt separately. Either way, the functionality for the Imagemagick package from the Debian reops to recognize and convert would be available so it and the libheif package(if necessary) would just be installed via
apt
.– Nasir Riley
2 days ago
add a comment |
Anastasius Vivaldus is a new contributor. Be nice, and check out our Code of Conduct.
Anastasius Vivaldus is a new contributor. Be nice, and check out our Code of Conduct.
Anastasius Vivaldus is a new contributor. Be nice, and check out our Code of Conduct.
Anastasius Vivaldus is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f492741%2finstall-imagemagick-with-libheif-on-linux-debian-machines%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown