Hi @dkalcock, I’m not sure what is “rotated” image version. Could you please let me know the names of those image files or maybe show some screenshots of:
– actual folder with those images on the server (if you have access), and/or
– media sync plugin (with expanded folder to see which images it finds).
By the way, this plugin does not create any [actual] images. But maybe you have that “rotated” version as a duplicate of the original image, and then it’s just an image like any other. But if there is some standard naming for those images, I might be able to prepare you a piece of code that you can add to your site (e.g. theme) that will skip/ignore those images.
Or if you want to try it out and ignore all files containing the text “-rotated”, you can this (in functions.php file of your template for example):
/**
* Overwrite Media Sync plugin rules for skipping scanned files or folders.
*
* Should return bool value.
*
* @param boolean $is_ignored Default rules for this file/folder (skipping thumbnails, index.php, hidden files, etc.)
* @param string $full_path Each scanned file/folder absolute path
* @param string $file_name Each scanned file/folder name
* @return boolean
*/
function my_custom_media_sync_additional_file_skip($is_ignored, $full_path, $file_name)
{
// Ignore any file containing "-rotated"
$is_ignored_custom = strpos($file_name, '-rotated') !== false;
return !!($is_ignored || $is_ignored_custom);
}
add_filter('media_sync_filter_is_scan_object_ignored', 'my_custom_media_sync_additional_file_skip', 10, 3);
`
You can of course edit that $is_ignored_custom to match which files you want to ignore.
Hope it makes sense ??