Automator Script to change colour profile of HEIC image(s)
Automator provides a simple way to apply a ColorSync profile to one or multiple image files. The script below applies the SRGB profile to HEIC images:
Select a single image folder
on run {input, parameters}
if input is {} then -- nothing dropped
return (choose folder with prompt "Select the image folder" default location alias (path to pictures folder))
else
if (count of items in input) = 1 then
tell application "System Events"
set theFolder to path of (item 1 of input)
end tell
else
error "Can only process a single folder"
end if
return alias (theFolder)
end if
end run
Choose HEIC images to modify
on run {input, parameters}
set theFolder to POSIX path of item 1 of input as text
set theseImageFiles to ¬
(choose file of type "public.heic" with prompt ¬
"Select the HEIC image file(s) to import:" default location ¬
theFolder with multiple selections allowed)
return theseImageFiles
end run
Apply ColorSync Profile to Images (Automator action)
- Pie Lover
Mac mini (M2, 2023)