Topic: Script Request: Remove Incorrect “1:1“ Tags

Posted under Tag/Wiki Projects and Questions

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!

alphamule

Privileged

perihelia said:

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!

Pop9Pup should be keeping a list ones it didn't add? An alternative is to process the DB export, yourself, and filter out the 1:1-tagged posts and import them into MS Excel/Libre Calc. Create a column for ratio, and sort by it, and the offenders should be near the top and bottom.

  • 1