- Open Automator
- Create a new document
- Select Quick Action
- Set “Service receives selected” to
files or foldersinany application - Add a
Run Shell Scriptaction- your default shell should already be selected, otherwise use
/bin/zshfor macOS 10.15 (”Catalina”) or later - older versions of macOS use
/bin/bash
- your default shell should already be selected, otherwise use
- if you're using something else, you probably know what to do 😉
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Inline XMP data | |
| inline_xmp='<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.1.0-jc003"> | |
| <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> | |
| <rdf:Description rdf:about="" | |
| xmlns:GCamera="http://ns.google.com/photos/1.0/camera/" | |
| xmlns:Container="http://ns.google.com/photos/1.0/container/" | |
| xmlns:Item="http://ns.google.com/photos/1.0/container/item/" | |
| xmlns:xmpNote="http://ns.adobe.com/xmp/note/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from PIL import Image | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| import time | |
| from colour.plotting import * | |
| def plot_xy_coordinates_with_color(xy_and_rgb_np, output_png_path): | |
| start_time = time.time() | |
| xy = xy_and_rgb_np[:, :2] |