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 701 times)

tickmike

  • Kitizen
  • ****
  • Posts: 3464
  • Yes Another Penguin !. :)
    • Free Download from.
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 RECOMMEND TRYING PCLinuxOS (www.pclinuxos.com).
I have a set of 6 fixed IP's From my Kcom Business isp.
BT ADSL2 (G992.3) line>HG612 as a Modem, Bridge, WAN Not Bound to LAN1 or 2 >pfSense (Hardware Firewall and routing) > Ethernet LAN, DMZ,WiFI LAN and Spare LAN .
DSLstats LAN2 linked Ethernet

petef

  • Reg Member
  • ***
  • Posts: 120
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: 120
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: 3440
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:TalkTalk Connection:FTTC Cab:ECI Router:Netgear D6220

tickmike

  • Kitizen
  • ****
  • Posts: 3464
  • Yes Another Penguin !. :)
    • Free Download from.
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 RECOMMEND TRYING PCLinuxOS (www.pclinuxos.com).
I have a set of 6 fixed IP's From my Kcom Business isp.
BT ADSL2 (G992.3) line>HG612 as a Modem, Bridge, WAN Not Bound to LAN1 or 2 >pfSense (Hardware Firewall and routing) > Ethernet LAN, DMZ,WiFI LAN and Spare LAN .
DSLstats LAN2 linked Ethernet

broadstairs

  • Kitizen
  • ****
  • Posts: 3440
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:TalkTalk Connection:FTTC Cab:ECI Router:Netgear D6220

tickmike

  • Kitizen
  • ****
  • Posts: 3464
  • Yes Another Penguin !. :)
    • Free Download from.
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 RECOMMEND TRYING PCLinuxOS (www.pclinuxos.com).
I have a set of 6 fixed IP's From my Kcom Business isp.
BT ADSL2 (G992.3) line>HG612 as a Modem, Bridge, WAN Not Bound to LAN1 or 2 >pfSense (Hardware Firewall and routing) > Ethernet LAN, DMZ,WiFI LAN and Spare LAN .
DSLstats LAN2 linked Ethernet

broadstairs

  • Kitizen
  • ****
  • Posts: 3440
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:TalkTalk Connection:FTTC Cab:ECI Router:Netgear D6220

tickmike

  • Kitizen
  • ****
  • Posts: 3464
  • Yes Another Penguin !. :)
    • Free Download from.
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 RECOMMEND TRYING PCLinuxOS (www.pclinuxos.com).
I have a set of 6 fixed IP's From my Kcom Business isp.
BT ADSL2 (G992.3) line>HG612 as a Modem, Bridge, WAN Not Bound to LAN1 or 2 >pfSense (Hardware Firewall and routing) > Ethernet LAN, DMZ,WiFI LAN and Spare LAN .
DSLstats LAN2 linked Ethernet

broadstairs

  • Kitizen
  • ****
  • Posts: 3440
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:TalkTalk Connection:FTTC Cab:ECI Router:Netgear D6220

petef

  • Reg Member
  • ***
  • Posts: 120
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

  • Kitizen
  • ****
  • Posts: 2097
    • My Broadband History
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
INTAKE (ECI) Zen: Home Hub 5A OpenWrt Plusnet: VMG-3925-B10B Voxi 4G: Hauwei B535-232 Router: pfSense (i5-7200U) WiFi: Ubiquiti nanoHD
Thinkbroadband Quality Monitors & Zen Referral
Pages: 1 [2]
 

anything