Introduction
There are numerous posts tagged with 1:1 that do not have a square aspect ratio. The following script would clean up many of these posts:
[if -ratio:1, -1:1]
Explanation
This script is designed to remove manually-added 1:1 tags when the aspect ratio of a post is not 1:1 as calculated automatically from the image’s pixel dimensions.
Limitations
ratio:1 returns posts whose aspect ratio rounds off to 1.0, so this script cannot find posts that are a couple pixels off from being square. Hence, this script is sound, but not complete (nearly-square posts are not affected).
Futre directions
This script could be used to cleanup other aspect ratio tags with minimal modifications, if desired. Note that portrait and landscape orientations use distinct aspect ratio tags (i.e., 16:9 and 9:16 are not aliased), so this script is indeed sound in general—though again, not complete.
Thank you!