If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
|
Thread Tools | Rate Thread | Display Modes |
#16
|
|||
|
|||
rename photo by random size
Mayayana posted:
I tried that script. It works fine. So it looks to me like your problem is solved. The script works to randomize the names. That means those files are fed to another program in random named order. That's all I wanted since all the image files are copies anyway. What is really strange are the results of a test of renaming to human readable names like "myimage001", "myimage002", "myimage003." I used Irfanview to rename the randomly named files to "myimage###". What happened when I did that, was I LOST the randomness! How? When I renamed with the script, the names were random. When I fed THOSE randomly renamed files to Irvanview, Irvanview somehow undid the randomness of the file names! I was so surprised that Irvanview somehow undid the random naming that I ran the random naming script over and over again. When I fed those files into Irvanview, it UNDID most of the randomness. How does Irfanview UNDO the random naming is something I don't understand. As long as I DON'T ever use Irfanview to clean up the random names, the ramdomizer script works great to randomly name files. I am amazed that Irfanview knows something original about the file though. |
Ads |
#17
|
|||
|
|||
rename photo by random size
"Jean Fredette" wrote
| | I used Irfanview to rename the randomly named files to "myimage###". | What happened when I did that, was I LOST the randomness! | I'm not sure what you mean. Naming them image1, image2, etc is random in the sense that the names bear no relation to the originals. But then they'll show in Explorer based on your settings. (Usually alphabetical, top down.) How they get returned programmatically is a third issue. I'm not sure how that works. It may be based on date or it may just be based on how the system has stored the file data. In other words, if you use a system API to enumerate files in a folder, it won't necessarily find them in any notable order. You never explained what you want, so I don't know what kind of "randomness" you're looking for. If you want to do something like show numerous images in random order then you don't really need to change file names. Just enumerate the files and then shuffle the names. |
#18
|
|||
|
|||
rename photo by random size
Mayayana posted:
I'm not sure what you mean. Naming them image1, image2, etc is random in the sense that the names bear no relation to the originals. But then they'll show in Explorer based on your settings. (Usually alphabetical, top down.) How they get returned programmatically is a third issue. I'm not sure how that works. It may be based on date or it may just be based on how the system has stored the file data. In other words, if you use a system API to enumerate files in a folder, it won't necessarily find them in any notable order. You never explained what you want, so I don't know what kind of "randomness" you're looking for. If you want to do something like show numerous images in random order then you don't really need to change file names. Just enumerate the files and then shuffle the names. Let's give up because I have what I want as long as I do not use IV. I am feeding copies of photos and images to a program that shows them on the screen in the order that the operating system gives them to that program. It's not more complicated than that. I just want the files to not clump in similar types and dates. By nature of how the images were obtained, they "clump" up, where, as I explained, the "cows" tend to be clumped together, and the "cats" are clumped together, where this is only a tendency, not an iron clad rule. I don't know exactly what clumps the files together but it could partly be the name, partly be the modification date, partly the original date, and partly the file types or sizes. I don't know since there are thousands of them. All I want is to even out that obvious clumping, which the randomizer.zip script does by renaming the files numerically, which means those files are fed numerically by the operating system into the program that displays them. The only strange thing was when I used Irfanview to rename for a second time the previous randomized files to simpler names, instead of being numerical, to alphanumeric of the format "image001" "image002" "image003" and so on. For whatever reason, IV is clumping the subjects back up again. I suspect Irvanview is using as its input order something OTHER than the numeric file name which is causing that clumping to return even after the file names were randomized numerically. As long as I keep Irfanview out of the name changing sequence, the clumping is destroyed. I don't really need to talk about it more where I found a good solution which works as long as I don't use Irfanview in that solution. |
|
Thread Tools | |
Display Modes | Rate This Thread |
|
|