Login About Gallery
Custom Shaped Photo Grids
COMMENT
Creates grids of images with different columns and rows. Written by https://reddit.com/u/keveridge
SCRIPTING
Ask
How many columns in your grid?
Input Type
Number
Default Answer
0
SCRIPTING
Ask
And how many rows in your grid?
Input Type
Number
Default Answer
0
NUMBER
VARIABLES
Set variable
grid_columns
to
Input
NUMBER
VARIABLES
Set variable
grid_rows
to
Input
MATHS
Number
×
grid_columns
Options Under Construction
PHOTOS
Find
All Photos
where
Sort by
Creation Date
Order
Latest First
Limit
VARIABLES
Set variable
photos
to
Input
SCRIPTING
Repeat with each item in
Input
VARIABLES
Get
Repeat Item
MEDIA
Get
Width
from
Image
MEDIA
Get
Height
from
Image
End Repeat
TEXT
Combine
Text List
with
New Lines
TEXT
Split
Text
by
New Lines
MATHS
Calculate the
Minimum
of
Input
VARIABLES
Get
photos
SCRIPTING
Repeat with each item in
Input
VARIABLES
Get
Repeat Item
MEDIA
Get
Width
from
Image
MEDIA
Get
Height
from
Image
SCRIPTING
If
Input
Condition
VARIABLES
Get
Repeat Item
MEDIA
Resize
Image
to
Auto Width
x
Minimum
Otherwise
VARIABLES
Get
Repeat Item
MEDIA
Resize
Image
to
Minimum
x
Auto Height
End If
MEDIA
Crop
Image
Position
Bottom Right
Width
Minimum
Height
Minimum
End Repeat
VARIABLES
Set variable
photos
to
Input
SCRIPTING
Repeat
grid_rows
VARIABLES
Get
Repeat Index
MATHS
Number
-
1
Options Under Construction
MATHS
Number
×
grid_columns
Options Under Construction
MATHS
Number
+
1
Options Under Construction
MATHS
Number
+
grid_columns
Options Under Construction
MATHS
Number
-
1
Options Under Construction
VARIABLES
Get
photos
SCRIPTING
Get
Items in Range
From Index
to
To Index
from
List
MEDIA
Combine
Images
Horizontally
Spacing
0
End Repeat
MEDIA
Combine
Images
Side-by-Side
Spacing
0
DOCUMENTS
Show
Input
in Quick Look

Showcuts

Magic Vars

Screenshot

Submitted Anonymously 10 days ago

This is an old shortcut, so some variables might be missing!

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0