Flatten media files in uploads directory via linux terminal eliminating thumbnails?
I need to get the source files (the initial files I have uploaded) of my media library flattening the directory structure and getting rid of the smaller images created by wordpress using linux/mac terminal.
uploads/2017/12/some-image-150x150.jpg
uploads/2017/12/some-image-360x240.jpg
uploads/2017/12/some-image-720x900.jpg
uploads/2017/12/some-image.jpg
to this:
uploads/some-image.jpg