Hi Chris,
for me it’s still not working a 100%, with the gallery. An option in the gallery shortcode defines, which image version is being displayed:
—
size
specify the image size to use for the thumbnail display. Valid values include “thumbnail”, “medium”, “large”, “full” and any other additional image size that was registered with add_image_size(). The default value is “thumbnail”. The size of the images for “thumbnail”, “medium” and “large” can be configured in WordPress admin panel under Settings > Media. For example, to display a gallery of medium sized images: [gallery size="medium"]
—
So, for your plugin to know, if for example a thumbnail image is used, it would have to check first, if that image is displayed in a gallery, and to what value the size-parameter is set.
Correct me, if I’m mistaken!
Best regards,
Raffi