From 07e4a2dafe248280b5610f8c7d09b0f30b530f54 Mon Sep 17 00:00:00 2001 From: Bradley Taunt Date: Mon, 10 Jun 2024 09:41:25 -0400 Subject: Initial modifications to rebuilt only changed files based on mod date, performance updates --- build/posts/heif/index.html | 73 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 build/posts/heif/index.html (limited to 'build/posts/heif') diff --git a/build/posts/heif/index.html b/build/posts/heif/index.html new file mode 100644 index 0000000..49d63e9 --- /dev/null +++ b/build/posts/heif/index.html @@ -0,0 +1,73 @@ + + + + + + + + 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