I want to resize multiple images that are stored in multiple sub folders in a directory. And I want to replace those images with resized ones by deleting the original ones
Why?
I’ve folder icons for a lot of content in a separate partition. Some of these images are around a megabyte and are 500x500 which is in my opinion overkill for folder icons on 1080p display and I think it’s also reducing performance of nautilus and taking up some valuable space
How is the folder structure?
├── [4.0K] Zombieland (2009) H
│ ├── [664K] .folder.png
│ └── [606M] Zombieland (2009) H.mkv
└── [4.0K] Zootopia (2016)
├── [203K] .folder.png
├── [2.7G] Zootopia (2016).mkv
└── [119K] Zootopia (2016).srt
I want those .folder.png
‘s resized to 160x160. Answer should work on Deep directories.
Other data
- Images are generally
.png
but also.icns
,.ico
- Images can be stored in really deep directories
- all the images have 1:1 aspect ratio
- all the images are named
.folder.extension
- There is an answer here but I think it only works on one image
I'll be glad to provide more information