I downloaded a bunch on images using wget, and unfortunately, there was a huge drawback…
The downloaded images had the same name! So, the script automatically appended .1, .2 , …etc. at the end:
Accept-Male-User-icon.png
Accept-Male-User-icon.png.1
Accept-Male-User-icon.png.2
...
So, am looking for a script that would take these files and rename them according to their size, given that their size could be one of the following:
(256×256, 128×128, 64×64, 48×48, 32×32, 16×16)
So I end up with something like this:
Accept-Male-User-icon256.png
Accept-Male-User-icon128.png
Accept-Male-User-icon64.png
...
Thanks!!
If you have ImageMagick installed, you can try:
Test it and if it works, remove the
-iswitch aftermv.