Hi @slonkadonk, I think that those imported thumbnails would actually become duplicates. Because WordPress would treat them as original files, so it might generate thumbnails for those files as well (at some point when it becomes needed).
If you just want to regenerate thumbnails of original files, there are some other good plugins that can be used for that.
But if you really want to import thumbnails, you can put this filter hook somewhere in your template:
/**
* 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)
{
return false;
}
add_filter('media_sync_filter_is_scan_object_ignored', 'my_custom_media_sync_additional_file_skip', 10, 3);
UI might become a bit slow to process all of that and please try with one file first 🙂
@erolsk8
Thanks for the quick reply. To clarify, I have an old website that I downloaded all of the /upload files from and then uploaded all of those to the new website via FTP. The new website files appear fine (thanks to your plugin!) except for ones with dimensions in the filename. How do I get those to appear in the media library?
Thanks!
-
This reply was modified 5 years, 1 month ago by
slonkadonk.
@slonkadonk question is – why would you want to get those files to appear in the media library?
Because thumbnails shouldn’t even show up in the media library. I mean with or without this plugin. That’s just how WordPress works. Those thumbnails are just some files that WordPress generates automatically when it becomes needed.
If you want to “force” that re-generate, you can try this plugin: https://ww.wp.xz.cn/plugins/regenerate-thumbnails/
@erolsk8
It is just how the client is manually moving the old content over to the new website. The site uses page builder tools and they just want grab the old file via media library (the page builder module they’re using doesn’t let you set the URL of the file manually but rather you select it visually using the Media Library). So the files are all on the server but inaccessible in the Media Library and that’s what we’re hoping to fix.
Thank you!
So that page builder only finds thumbnails and not original files? If yes, you should try: https://ww.wp.xz.cn/plugins/regenerate-thumbnails/
I mean, you can try to normally upload some image in Media Library and you will NOT see thumbnails listed in Media Library, you will only see the original image.