Images Actions

Table of contents

  1. GIFs
    1. Add To GIF
    2. Get Image Frames
    3. Make GIF
    4. Make Video From GIF
  2. Image Editing
    1. Combine Images
    2. Convert Image
    3. Convert to JPEG
    4. Crop Image
    5. Custom Image Mask
    6. Custom Image Overlay
    7. Extract Image Text
    8. Flip Image
    9. Get Image Detail
    10. Get Images
    11. Make Image from Rich Text
    12. Mask Image
    13. Overlay Image
    14. Remove Image Background
    15. Resize Image
    16. Resize Image By Longest Edge
    17. Resize Image By Percent
    18. Rotate Media
    19. Strip Image Metadata

To use actions in this category, use this include statement:

#include 'actions/images'

GIFs

Add To GIF

Add a frame to a GIF.

addToGIF(variable image, variable gif, text ?delay = "0.25", bool ?autoSize = true, text ?width, text ?height)

Get Image Frames

Get frames from a GIF.

getImageFrames(variable image)

Make GIF

makeGIF(variable input, text ?delay = "0.3", number ?loops, text ?width, text ?height)

Make Video From GIF

makeVideoFromGIF(variable gif, number ?loops = 1)

Image Editing

Combine Images

enum imageCombineMode {
    'Vertically',
    'In a Grid',
}

combineImages(variable images, imageCombineMode ?mode = "Vertically", number ?spacing = 1)

Convert Image

Convert image to another format, compression quality, and/or remove metadata.

enum convertImageFormats {
    'TIFF',
    'GIF',
    'PNG',
    'BMP',
    'PDF',
    'HEIF',
}

convertImage(variable image, convertImageFormats format, float ?quality, bool ?preserveMetadata = true)

Convert to JPEG

Convert image to a JPEG.

convertToJPEG(variable image, number ?compressionQuality, bool ?preserveMetadata = true)

Crop Image

enum cropImagePosition {
    'Center',
    'Top Left',
    'Top Right',
    'Bottom Left',
    'Bottom Right',
    'Custom',
}

cropImage(variable image, text ?width = "100", text ?height = "100", cropImagePosition ?position = "Center", text ?customPositionX, text ?customPositionY)

Custom Image Mask

Mask an image with a custom image mask.

customImageMask(variable image, variable customMaskImage)

Custom Image Overlay

Specify custom image overlay configuration.

enum customImageOverlayPosition {
    'Center',
    'Top Left',
    'Top Right',
    'Bottom Left',
    'Bottom Right',
    'Custom',
}

customImageOverlay(variable image, variable overlayImage, text ?width, text ?height, text ?rotation = "0", text ?opacity = "100", customImageOverlayPosition ?position = "Center", text ?customPositionX, text ?customPositionY)

Extract Image Text

extractImageText(variable image): text

Flip Image

enum flipImageDirection {
    'Horizontal',
    'Vertical',
}

flipImage(variable image, flipImageDirection direction)

Get Image Detail

Get a detail about an image.

enum imageDetail {
    'Album',
    'Width',
    'Height',
    'Date Taken',
    'Media Type',
    'Photo Type',
    'Is a Screenshot',
    'Is a Screen Recording',
    'Location',
    'Duration',
    'Frame Rate',
    'Orientation',
    'Camera Make',
    'Camera Model',
    'Metadata Dictionary',
    'Is Favorite',
    'File Size',
    'File Extension',
    'Creation Date',
    'File Path',
    'Last Modified Date',
    'Name',
}

getImageDetail(variable image, imageDetail detail)

Get Images

Detect images in input

getImages(variable input): array

Make Image from Rich Text

makeImageFromRichText(variable pdf, text width, text height)

Mask Image

Mask an image with another image.

enum maskImageType {
    'Rounded Rectangle',
    'Ellipse',
    'Icon',
}

maskImage(variable image, maskImageType type, text ?radius)

Overlay Image

Overlay an image on top of another image.

overlayImage(variable image, variable overlayImage)

Remove Image Background

removeBackground(variable image, bool ?crop = false)

Resize Image

resizeImage(variable image, text width, text ?height)

Resize Image By Longest Edge

resizeImageByLongestEdge(variable image, text length)

Resize Image By Percent

resizeImageByPercent(variable image, text percentage)

Rotate Media

Rotate an image or a video

rotateMedia(variable media, text degrees)

Strip Image Metadata

stripImageMetadata(variable image)

Copyright ©. Distributed under the GPL-2.0 License. Siri Shortcuts and Mac are registered trademarks of Apple Inc. Apple is not involved in this project in any way. Do not contact Apple Support unless you are having an issue with the Shortcuts app itself.