From 3f6a9546ec13063d0d5bdf21d30a93d3e8aa6050 Mon Sep 17 00:00:00 2001 From: Bradley Taunt Date: Tue, 2 Jul 2024 14:22:21 -0400 Subject: Rebuild changes based off latest barf --- build/heif/index.html | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 build/heif/index.html (limited to 'build/heif') diff --git a/build/heif/index.html b/build/heif/index.html new file mode 100644 index 0000000..5335559 --- /dev/null +++ b/build/heif/index.html @@ -0,0 +1,74 @@ + + + + + + + + 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

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

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 "$@"
+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.

+

Simple as that. Happy converting!

+

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

+ + \ No newline at end of file -- cgit v1.2.3-54-g00ecf