• I had a bunch of images that I was replacing via FTP, and then needed to clean out some old images that had somehow gotten up there by mistake.

    This plugin really helps!

    ———–

    Though, one bug: It also copies files like .htaccess or any file it finds, so it’s a little unnerving to find .htaccess show up in your Media Library. This should be fixed, or users beware.

    Also, I suspect that the Media Library is generating thumbnails for images that have none, every time you load the Media Library list in the Dashboard. For example, TIEmediahelper found imageA.jpg as a loose file, and created a Media Library entry for it. When I went back to view the Media Library, then there was an auto-generated thumbnail for the imageA.jpg that I could see, and a file that was also created called imageA-480×270.jpg, and then another file called imageA-480×270-44×24.jpg. So the Media Library must have created the imageA-480×270.jpg, which was viewed as being an orphaned file, and so when I went to look at the list, Media Library created another thumbnail imageA-480×270-44×24.jpg. This could get recursive if you are looking at the Media Library WHILE the TIEmediahelper is running!

    (In my example, I have Media Settings for 480×270 and 44×24 for the WordPress auto-generated image sizes, hence those names.)

    https://www.ads-software.com/plugins/tiemediahelper/

Viewing 1 replies (of 1 total)
  • Plugin Author TIEro

    (@tiero)

    Thanks for the feedback.

    Firstly, yes – the plugin finds EVERY file in the uploads folders. If you have htaccess and other system files in there, it will find them and add them. The same goes for any images uploaded and used by themes, etc.

    I suppose it would be possible to build an exclusion list of files you don’t want added, but since most people will run the plugin once (or if more than once, rarely), it didn’t seem worth it.

    Secondly, the thumbnail files and stuff. Chances are that WP created those files when you initially uploaded the files. This is covered in the FAQ: WP creates a phenomenal number of different-sized images for every single file you upload. One for the thumb, one for medium, one for large, one for your best friend, one for the little boy who lives down the lane… the process is ridiculously complex and the files change every time you update your media settings, so it’s very hard to process. I went the lazy/easy route and just added all the versions individually.

    It doesn’t matter if you’re looking at the library when the plugin is runing: it reads direct from the database and from disk. It IS true that running it a second time will pick up all those odd-sized files (since it thinks they’re unlisted images).

    I guess a v2 is called for, though I’ll have a fair bit of research to do to figure out all the ins and outs.

    Again, thanks very much for the feedback. I’ll leave this open until I can figure out the necessary changes!

Viewing 1 replies (of 1 total)
  • The topic ‘Very handy!’ is closed to new replies.