From dcfb172704f3afb68a30425029ec834be2883274 Mon Sep 17 00:00:00 2001 From: bt Date: Sat, 8 Jun 2024 13:22:19 -0400 Subject: More content porting, on-going markdown changes for lowdown support --- build/heif/index.html | 64 +++++++++++++++++++++++++++++++-------------------- 1 file changed, 39 insertions(+), 25 deletions(-) (limited to 'build/heif') diff --git a/build/heif/index.html b/build/heif/index.html index 4f07bf3..112398c 100644 --- a/build/heif/index.html +++ b/build/heif/index.html @@ -1,49 +1,63 @@ - + Converting HEIF Images with macOS Automator - - + + +
-

Converting HEIF Images with macOS Automator

+

Converting HEIF Images with macOS Automator

+

2023-07-21

+

Often times when you save or export photos from iOS to iCloud they often render themselves into heif or heic formats. Both macOS and iOS have no problem working with these formats, but a lot of software programs will not even recognize these filetypes. The obvious step would just be to convert them via an application or online service, right?

-

Not so fast! Wouldn't it be much cleaner if we could simply right-click our heif or heic files and convert them directly in Finder? Well, I've got some good news for you...

-

Basic Requirements

+ +

Not so fast! Wouldn’t it be much cleaner if we could simply right-click our heif or heic files and convert them directly in Finder? Well, I’ve got some good news for you…

+ +

Basic Requirements

+
  1. You will need to have Homebrew installed
  2. You will need to install the libheif package through Homebrew: brew install libheif
-

Creating our custom Automator script

-

For this example script we are going to convert the image to JPG format. You can freely change this to whatever format you wish (PNG, TIFF, etc.). We're just keeping things basic for this tutorial. Don't worry if you've never worked with Automator before because setting things up is incredibly simple.

+ +

Creating our custom Automator script

+ +

For this example script we are going to convert the image to JPG format. You can freely change this to whatever format you wish (PNG, TIFF, etc.). We’re just keeping things basic for this tutorial. Don’t worry if you’ve never worked with Automator before because setting things up is incredibly simple.

+
    -
  1. Open the macOS Automator from the Applications folder
  2. -
  3. Select Quick Option from the first prompt
  4. -
  5. Set "Workflow receives current" to image files
  6. -
  7. Set the label "in" to Finder
  8. -
  9. From the left pane, select "Library > Utilities"
  10. -
  11. From the presented choices in the next pane, drag and drop Run Shell Script into the far right pane
  12. -
  13. Set the area "Pass input" to as arguments
  14. -
  15. Enter the following code below as your script and type ⌘-S to save (name it something like "Convert HEIC/HEIF to JPG")
  16. -
-
for f in "$@"
+
  • Open the macOS Automator from the Applications folder

  • +
  • Select Quick Option from the first prompt

  • +
  • Set “Workflow receives current” to image files

  • +
  • Set the label “in” to Finder

  • +
  • From the left pane, select “Library > Utilities”

  • +
  • From the presented choices in the next pane, drag and drop Run Shell Script into the far right pane

  • +
  • Set the area “Pass input” to as arguments

  • +
  • Enter the following code below as your script and type ⌘-S to save (name it something like “Convert HEIC/HEIF to JPG”)

    + +

    for f in “$@” do -/opt/homebrew/bin/heif-convert "$f" "${f%.*}.jpg" -done -

  • -

    Making Edits

    -

    If you ever have the need to edit this script (for example, changing the default format to png), you will need to navigate to your ~/Library/Services folder and open your custom heif Quick Action in the Automator application.

    +/opt/homebrew/bin/heif-convert “$f” “${f%.*}.jpg” +done

    + + +

    Making Edits

    + +

    If you ever have the need to edit this script (for example, changing the default format to png), you will need to navigate to your ~/Library/Services folder and open your custom heif Quick Action in the Automator application.

    +

    Simple as that. Happy converting!

    -

    If you're interested, I also have some other Automator scripts available:

    + +

    If you’re interested, I also have some other Automator scripts available:

    +