So I worked out what I was looking for. It seems that all images, when edited or uploaded, have something passed through wp_update_attachment_metadata and so I can hook into that to get the info I need.
Related Posts:
- How to make programmatic image upload generate thumbnail and sizes?
- Is it possible to change image size used for preview thumnail in Add Media popup
- Why WordPress suddenly changed sizes of thumbnails?
- unsharp thumbnails after uploading image
- WP is showing wrong image dimensions
- Delete all thumbnails & regenerate them?
- Restricting users to view only media library items they have uploaded?
- Prevent WordPress from generating medium_large 768px size of image uploads?
- Upload images to remote server
- Set default image link target in Gutenberg image block
- Is there a hook which fires after all thumbnails are generated?
- Using Images in WordPress – Best Practices
- Media Upload Folder – how to manage
- How to set the default embed image size
- get_the_post_thumbnail_url with an unregistered size
- Cropped featured image replaces original image in gallery
- Settings in ‘Media > Settings’ is ignored when inserting images
- How do I delete all generated images from my server except those currently used in posts
- Filter Media Library by author or post_parent
- Use Media Library to manage galleries like Nextgen (with folders, albums, collections, tags, categories, terms…)
- How do i upload an image and return the image id?
- Insert Images at Master Uniform Height
- Alter media caption/description conflict in WordPress?
- Restrict the number of images to upload per post
- Upload images using FTP and show them in media
- No srcset for hard-cropped thumbnails
- Cannot access the thumbnails of attachment images… Cannot find the reason
- Media sizes aren’t being created – server config?
- Add visual editor to Media Edit Screen
- Removing Title Tag from Thumbnails
- custom image size with New Media Manager in wordpress 3.5
- How to store media files in subdomain
- How to add a media with PHP
- Disable wordpress image sizes generation
- Can’t access ‘Store uploads in this folder’
- How to add qtranslate multi language support for media?
- WP 3.4 has missing photo data
- Best way to strip character entities (%20 etc)
- What’s the best “insert all images” plugin?
- Different upload path per file type
- 3.5 media.editor: what is the event listener for choosing an image?
- Display latest 12 images from media library
- Getting alt text of featured image
- Image Quality Thumbnail Compression in WordPress?
- Get image alt attribute just by image URL
- Is there a way to get attachment data?
- Rename media files generated during upload
- Thumbnails are bigger in size than the original image
- Link to full size image or attachment page in photo theme
- HTTP Error when uploading files above 7mb unless using GD Image Editor
- How Do I Delete All The Images from WordPress
- Lazyload post thumbnails
- Show full image thumbnail
- Get thumbnail url of custom meta image?
- Change WordPress Media Manager
- Image thumbnails not available post migration, but still accessible via direct URL – DB issue
- Site migration – some images not displaying in Media Library
- Bulk edit of EXIF data for jpeg images uploaded in the media library?
- image in my post disappeared after I upload website to remote server
- Handling image uploads without thickbox
- Pull images from the gallery
- How can I create more upload paths, like a post corresponding to a post title folder used to store images of the same product
- WordPress automatically downscaled images larger that original
- How to open default wp image editor screen dynamically?
- How to stop thumbnail generation from some images and different size thumbnail generate
- Update old Post image metadata to ‘thumbnail’ wp_attached_file
- How to stop wordpress always displaying full-res images
- How to change image atributes right before an image to be saved?
- Is it possible to change ‘Link to’ in all images in all articles?
- add media button is not working
- Searching for any images in media library displays “no media found”
- Ho to add “Create Slider” option to default “Add Media” popup?
- How to filter the image embed code based on link type
- Why it doesn’t show media urls on rest Api? (WordPress)
- How to get file URL from media library
- Edit image results in copies of file being created
- Fixing image names for a site being restored
- force feed readers to pick atom version
- Images uploaded to the media library has strange colors. However, in the edit screen the color is ok
- Change wp-content/uploads to uploads/%postname%/%image%
- Blank upload.php page
- Post and featured image have the same name, why is the attachment (image) is showing and not the post?
- How to make thumbnails of uploaded animated gifs NOT animated
- Export xml use/import images from theme directory
- Upload box media size not working
- Force image crop size in media editor
- Gallery with thumbnail carousel
- Moving media library to the media library of completely different site
- Filter for post_thumbnail: link to small src and add data-attribute [duplicate]
- Why does WP allow to view and media item as a page
- Upload media only to DB
- Function to remove all classes on images inserted into posts?
- Dynamic image crop in WP 3.0+?
- Get images attached to a specific page
- How do I get a smaller size of an avatar image
- Is there a way in WordPress to convert images to WebP without a plugin?
- Automatically Insert alt attribute above image has h2
- Stop WordPress compressing images? – Quality is terrible
- Rebuild thumbnails via WP Cli – how?
- Auto delete pictures in media library by age