Page 1 of 1

.heic images conversion debugging requested

Posted: 01 Nov 2023, 21:11
by francois
I get .heic format images from my android phone. I want a simple way to transform them into a more democratic format, that is .jpeg. I have tried to install the plugin to gimp with no result as an alternative.
https://superuser.com/questions/1252004 ... s-on-linux
proposes libheif library which is already on our porteus system according to gslapt or getmod:

Code: Select all

root@porteus:/home/guest# getmod -m libheif-1.12.0-x86_64-2salix15.0
Reading Package Lists...Done
The following packages will be upgraded:
  libheif 
1 upgraded, 0 reinstalled, 0 newly installed, 0 to remove, 0 not upgraded.
Need to get 231.0kB of archives.
Do you want to continue? [y/N] 
I have tried with no success transforming heic to jpeg with the following:

Code: Select all

root@porteus:/home/guest# cd /home/guest/Downloads/detruire/aquarium/
root@porteus:/home/guest/Downloads/detruire/aquarium# ls
20231031_181558.heic  20231031_181611.heic  20231031_181637.heic
20231031_181607.heic  20231031_181618.heic
20231031_181610.heic  20231031_181635.heic
root@porteus:/home/guest/Downloads/detruire/aquarium# ./heif-convert 20231031_181558.heic20231031_181558.jpeg
bash: ./heif-convert: No such file or directory
root@porteus:/home/guest/Downloads/detruire/aquarium# ./heif-convert 20231031_181558.heic 20231031_181558.jpeg
bash: ./heif-convert: No such file or directory
root@porteus:/home/guest/Downloads/detruire/aquarium# heif-convert 20231031_181558.heic 20231031_181558.jpeg
heif-convert: error while loading shared libraries: libx265.so.192: cannot open shared object file: No such file or directory
root@porteus:/home/guest/Downloads/detruire/aquarium# exit
exit
guest@porteus:~$ 
Will be missing:
libx265.so.192
root@porteus:/home/guest# ln -s /usr/lib64/libx265.so /usr/lib64/libx265.so.192
librav1e.so.0
not available for slackware

What is your way of transforming heic to jpeg?

.heic images conversion debugging requested

Posted: 03 Nov 2023, 06:06
by Rava
francois wrote:
01 Nov 2023, 21:11
What is your way of transforming heic to jpeg?
I never heard of heic. Seems having an outdated Android smartphone can have its unexpected perks. :D
But as for libx265.so.192 … as long as it works for the GLIBC your system has, you can try a different Linux distribution. (I would try that first)
Or try it via a .SlackBuild. (I would try that second)

Sorry to be of no more help than that. :(

Or… try an App for Android that converts your heic images on the smartphone, not on your Linux system?

.heic images conversion debugging requested

Posted: 04 Nov 2023, 07:49
by francois
Finally, there are applications for android phones that will do that. You have to endure the publicity. And hope that they do not hack your phone or your information. :(

.heic images conversion debugging requested

Posted: 04 Nov 2023, 09:38
by M. Eerie
francois wrote:
01 Nov 2023, 21:11
What is your way of transforming heic to jpeg?
You can grab the latest ImageMagick AppImage build, which is often updated, then:

Code: Select all

for magickCMD in magick animate compare composite conjure convert display identify import mogrify montage stream; do ln -nsf /path/to/your/ImageMagick-whatever-.Appimage /usr/local/bin/$magickCMD 2>/dev/null; done
And then, as stated here, you can simply:

Code: Select all

mogrify -format jpg *.HEIC
For the record, HEIC is the extension used for the High Efficiency Image File Format, where HEVC is the analogous video solution, most commonly known as .x265 or h265. Hence, the need for libx265 codec library.

.heic images conversion debugging requested

Posted: 04 Nov 2023, 09:51
by Rava
M. Eerie wrote:
04 Nov 2023, 09:38
For the record, HEIC is the extension used for the High Efficiency Image File Format, where HEVC is the analogue video solution, most commonly known as .x265 or h265. Hence, the need for libx265 codec library.
Thanks for the heads up, amazingly helpful like always. :)

.heic images conversion debugging requested

Posted: 04 Nov 2023, 16:50
by francois
M. Eerie;
Thanks a lot.