Remembers folders and subfolders and their names

I have many images within subfolders with their names. I cannot find a way to convert them all with the same folders and same names.