Jump to content

cliaz

Member
  • Posts

    1
  • Joined

  • Last visited

cliaz's Achievements

Helping Hand

Helping Hand (3/5)

0

Reputation

  1. Maybe a dumb question @vitor, but why is the following approach bad (or not recommended, as you suggested AppleScript)? Workflow: File Action: For testing I've only added public.heic . Drag other image formats in here as needed Script /bin/bash with input as argv for file in "${@}"; do output_filename="${file%%.*}.JPG" sips -s format jpeg "$file" -o "$output_filename" /usr/bin/osascript -e "display notification \"${file}\" with title \"Converted image to JPG\"" done This works for me, with single or multiple items. sips is an inbuilt mac tool, Scriptable Image Processing System. Can be used to resize or compress too: - resize to 1920 pixels, maintaining aspect ratio: -Z 1920 - compress maintaining 65% quality: -s formatOptions 65 eg: sips -Z 1920 -s formatOptions 65 -s format jpeg file.HEIC -o file.jpeg
×
×
  • Create New...