Kitz ADSL Broadband Information
adsl spacer  
Support this site
Home Broadband ISPs Tech Routers Wiki Forum
 
     
   Compare ISP   Rate your ISP
   Glossary   Glossary
 
Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: 1 [2]

Author Topic: High Efficiency Image File Format (HEIC)  (Read 8037 times)

tickmike

  • Kitizen
  • ****
  • Posts: 3640
  • Yes Another Penguin !. :)
Re: High Efficiency Image File Format (HEIC)
« Reply #15 on: February 16, 2021, 02:35:32 PM »

I have openSUSE Tumbleweed

So PCLinux is some way behind. Even Leap 15.2 has V7.

Stuart
Yes but they are working on it, it seems to be all the linked packages that goes with imagemagick.
Logged
I have a set of 6 fixed IP's From  Eclipse  isp.BT ADSL2(G992.3) line>HG612 as a Modem, Bridge, WAN Not Bound to LAN1 or 2 + Also have FTTP (G.984) No One isp Fixed IP >Dual WAN pfSense (Hardware Firewall and routing).> Two WAN's, Ethernet LAN, DMZ LAN, Zyxel GS1100-24 Switch.

petef

  • Reg Member
  • ***
  • Posts: 135
Re: High Efficiency Image File Format (HEIC)
« Reply #16 on: February 16, 2021, 03:47:19 PM »

I have openSUSE Tumbleweed and it has

Code: [Select]
convert --version
Version: ImageMagick 7.0.10-59 Q16 x86_64 2021-01-24 https://imagemagick.org
Copyright: (C) 1999-2021 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules
Delegates (built-in): bzlib cairo djvu fftw fontconfig freetype heic jbig jng jp2 jpeg lcms lqr ltdl lzma openexr pangocairo png rsvg tiff webp wmf x xml zlib

So PCLinux is some way behind. Even Leap 15.2 has V7.

Stuart

It might not be the version of ImageMagick perhaps it depends on other third party libraries being installed.
Logged

petef

  • Reg Member
  • ***
  • Posts: 135
Re: High Efficiency Image File Format (HEIC)
« Reply #17 on: February 16, 2021, 11:29:58 PM »

It might not be the version of ImageMagick perhaps it depends on other third party libraries being installed.

Indeed my ImageMagick was only able to identify the HEIC file not to convert it.

I added the codecs from the Packman repository and now the convert works.I don't know my way around the PCLinuxOS package ecosystem to recommend a direct answer for the OP. A batch conversion program other than ImageMagick may be the easier approach.
Logged

broadstairs

  • Kitizen
  • ****
  • Posts: 3697
Re: High Efficiency Image File Format (HEIC)
« Reply #18 on: February 17, 2021, 09:51:04 AM »

I always add packman to my installation. I do not have any HEIC format images available to test.

Stuart

Update:
I just downloaded a sample heic image and converted it to jpg using the batch process in digikam, so this does work in openSUSE Tumbleweed with packman stuff installed. The batch process allows multiple files to be selected and processed in a single run.
« Last Edit: February 17, 2021, 09:58:04 AM by broadstairs »
Logged
ISP:Vodafone Router:Vodafone Wi-Fi hub FTTP

tickmike

  • Kitizen
  • ****
  • Posts: 3640
  • Yes Another Penguin !. :)
Re: High Efficiency Image File Format (HEIC)
« Reply #19 on: February 17, 2021, 12:23:46 PM »

Found out we have a Lib file "heif-convert" in pclinuxos

So I wondered if I change the script above.

#!/bin/bash
for f in *.heic; do heif-convert "$f" "${f%.heic}.jpg"; done

I then opened 'konsole' in my test directory and run the script.

Much to my surprise it converted each of the photo's   :)  :thumbs:


Can any of the 'Script' experts have a look at what I have done above please and let me know if it needs to be adjusted at all before I send it to my daughter who has hundreds of these 'heic' photo files.
Thanks to all who have helped.


Logged
I have a set of 6 fixed IP's From  Eclipse  isp.BT ADSL2(G992.3) line>HG612 as a Modem, Bridge, WAN Not Bound to LAN1 or 2 + Also have FTTP (G.984) No One isp Fixed IP >Dual WAN pfSense (Hardware Firewall and routing).> Two WAN's, Ethernet LAN, DMZ LAN, Zyxel GS1100-24 Switch.

broadstairs

  • Kitizen
  • ****
  • Posts: 3697
Re: High Efficiency Image File Format (HEIC)
« Reply #20 on: February 17, 2021, 02:09:04 PM »

On my system the usage is

Code: [Select]
USAGE: heif-convert [-q quality 0..100] <filename> <output>

So all I would do is perhaps add the quality to the command as I have no idea what the default might be. Can you view the jpeg OK?

Stuart
Logged
ISP:Vodafone Router:Vodafone Wi-Fi hub FTTP

tickmike

  • Kitizen
  • ****
  • Posts: 3640
  • Yes Another Penguin !. :)
Re: High Efficiency Image File Format (HEIC)
« Reply #21 on: February 17, 2021, 02:16:29 PM »

Hi Stuart,
 
I did leave that in but it did not seem to like it so I removed it, can you try on that one heic photo you have please.

I will look tonight at the photos as it was past my bed time last night when i got it to work last night.
Just going to do some gardening while the suns out at 12c :)
Logged
I have a set of 6 fixed IP's From  Eclipse  isp.BT ADSL2(G992.3) line>HG612 as a Modem, Bridge, WAN Not Bound to LAN1 or 2 + Also have FTTP (G.984) No One isp Fixed IP >Dual WAN pfSense (Hardware Firewall and routing).> Two WAN's, Ethernet LAN, DMZ LAN, Zyxel GS1100-24 Switch.

broadstairs

  • Kitizen
  • ****
  • Posts: 3697
Re: High Efficiency Image File Format (HEIC)
« Reply #22 on: February 17, 2021, 03:14:12 PM »

I just issued

Code: [Select]
heif-convert -q 100 sample.heic sample.jpg

Stuart
Logged
ISP:Vodafone Router:Vodafone Wi-Fi hub FTTP

tickmike

  • Kitizen
  • ****
  • Posts: 3640
  • Yes Another Penguin !. :)
Re: High Efficiency Image File Format (HEIC)
« Reply #23 on: February 17, 2021, 08:50:08 PM »

So this works quite well  :)

#!/bin/bash
for f in *.heic; do heif-convert "$f" -q 100 "${f%.heic}.jpg"; done

Edit..

How do I remove the .heic files in the containing directory only ?

If I open a terminal in the test directory and run

rm *.heic

I have to answer 'y' to each file it's removing.

How Do I 'Batch' remove .heic files ?.
« Last Edit: February 17, 2021, 09:15:07 PM by tickmike »
Logged
I have a set of 6 fixed IP's From  Eclipse  isp.BT ADSL2(G992.3) line>HG612 as a Modem, Bridge, WAN Not Bound to LAN1 or 2 + Also have FTTP (G.984) No One isp Fixed IP >Dual WAN pfSense (Hardware Firewall and routing).> Two WAN's, Ethernet LAN, DMZ LAN, Zyxel GS1100-24 Switch.

broadstairs

  • Kitizen
  • ****
  • Posts: 3697
Re: High Efficiency Image File Format (HEIC)
« Reply #24 on: February 17, 2021, 10:06:21 PM »

It's easier using a file manager like dolphin (in KDE) where you can select all the files and just delete them. Using rm try rm --help to see usage. Be careful with rm though it can remove more than you might wish. Normally when converting files to a new format I keep the originals just in case.

Stuart
Logged
ISP:Vodafone Router:Vodafone Wi-Fi hub FTTP

petef

  • Reg Member
  • ***
  • Posts: 135
Re: High Efficiency Image File Format (HEIC)
« Reply #25 on: February 17, 2021, 11:41:56 PM »

So this works quite well  :)

#!/bin/bash
for f in *.heic; do heif-convert "$f" -q 100 "${f%.heic}.jpg"; done

Edit..

How do I remove the .heic files in the containing directory only ?

If I open a terminal in the test directory and run

rm *.heic

I have to answer 'y' to each file it's removing.

How Do I 'Batch' remove .heic files ?.

The standard rm command does not ask. However it is common practice to have an alias. That can be demonstrated

Code: [Select]
type rm
rm is aliased to `rm -i'

One way to avoid the alias is to stick in a backslash.

Code: [Select]
r\m *.heic
Logged

Alex Atkin UK

  • Addicted Kitizen
  • *****
  • Posts: 5260
    • Thinkbroadband Quality Monitors
Re: High Efficiency Image File Format (HEIC)
« Reply #26 on: February 18, 2021, 01:24:59 AM »

I believe it asks if you send it a list of files such as * but not for individual files.

I'd just use rm -f *.heif.
Logged
Broadband: Zen Full Fibre 900 + Three 5G Routers: pfSense (Intel N100) + Huawei CPE Pro 2 H122-373 WiFi: Zyxel NWA210AX
Switches: Netgear MS510TXUP, Netgear MS510TXPP, Netgear GS110EMX My Broadband History & Ping Monitors
Pages: 1 [2]
 

anything