Looking at this further I actually think its a coincidence and that the real issue is that the image is just a little too small and media sync is not picking it up.
The extension or size of the image shouldn’t matter. But are these images maybe ending with names that are used by WordPress to specify they are just copies of original files – for example ending with -scaled
or 100x100
?
Can you maybe share the name (and maybe a full path) of one file that you see on the server but not in this plugin?
Hi
The images were ending in a dimension but it’s quite big, not a thumbnail. These are original file names not Wordress resizes.
Here is one: https://serene-chaplygin.92-205-104-234.plesk.page/wp-content/uploads/2019/05/18A-1008×1344.jpeg
I’ve now imported them with an alternative plugin, but it was a couple of days of head scratching as to why the images weren’t there.
Hey @paulcreedy, yes, that makes sense, then it was intentionally ignored. Thank you for the details, I just realized that this plugin should ignore only thumbnail sizes that are currently configured in WP instead of ignoring all thumbnails.
I know you already solved it, but if anyone has a similar issue – there is a hook that can customize which files are ignored:
/**
* 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)
{
// Custom logic here
return $is_ignored;
}
add_filter('media_sync_filter_is_scan_object_ignored', 'my_custom_media_sync_additional_file_skip', 10, 3);
But I’ll try to make it customizable through UI at some point.
Hey @lesandles, your message is gone, but I see an email. This plugin is only on the official WordPress plugin / SVN repository, so I’m not sure how a merge request would work. I’m a bit worried about it – since it’s not git. But feel free to just open a new topic here and paste the code there and I’ll try it out and see if I can add it. It shouldn’t be a big change.
Thanks
Hi @erolsk8 , that’s strange, I didn’t delete my comment.
Thanks for your answer, I’ll open a new thread then when I have something to share. I’m sure I’ll use the plugin again in the future, would be nice if I can help improving it too.
I just activated this plugin for the first time. Thanks!
I have hundreds of -000×000 compressed images to match thumbnails. I came here looking for that hook because it’s not in the plugin summary info. On next update, perhaps it would be good to add it?
Thanks.
Hello everyone, there will be a pro version of this plugin soon. Which among other things – allows you to completely customize how filtering works from the UI. So I’m wondering if someone is interested in trying it out and ideally – providing short feedback (before it gets released to everyone). I can send a few coupons to try it out for some time. Feel free to contact me at: support@mediasyncplugin.com (just refer to this topic and I’ll know what’s it about).
And don’t worry current version will stay free, as it is 🙂