![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: May 2006
Posts: 4,665
|
Batch rename photos from a text file?
Is there a prog or app that can do this.
I have a folder of say 400 pics with default file names DSCF0001.jpg - DSCF0400.jpg. I need to rename them and don't want to do each one individually so wondered if a prog was the best way to go. I figured it was quicker cutting and pasting the new file names into one text file or excel document and have the prog or app do it. Ideally, if I can pull in the datestamp from the exif data into the filename also then great. Associated file names are sporadic and don't really follow a sequence. DSCF0001.jpg - boat1.jpg DSCF0002.jpg - house1.jpg DSCF0003.jpg - car1.jpg DSCF0004.jpg - house3.jpg DSCF0005.jpg - hotel1.jpg DSCF0006.jpg - boat2.jpg |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
♥♥♥ Likes Hugs ♥♥♥
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
|
This can be easily done in any scripting language. PHP would be easiest.
http://www.php.net/manual/en/functio...-read-data.php
__________________
I like pie. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
|
are they on your windows machine?
If so, select all, right click, rename - windows will rename them all [yourname]1.jpg [yourname]2.jpg etc. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
Confirmed User
Industry Role:
Join Date: May 2006
Posts: 4,665
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: May 2006
Posts: 4,665
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Industry Role:
Join Date: Aug 2009
Posts: 2,346
|
ACDSee might be able to do that for you
__________________
![]() ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Apr 2006
Location: SoFla
Posts: 248
|
separate them by the titles you want that then you can use a free program like xnview. Then all you have to do is rename them like this house# and it will number them accordingly.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Confirmed User
Industry Role:
Join Date: May 2006
Posts: 4,665
|
Quote:
It is that part that I essentially need. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Join Date: Apr 2008
Location: Twistys HQ
Posts: 1,923
|
On my Mac I use a program called File List -- drag the list in, tell it what you want, and press rename.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Join Date: Apr 2003
Location: Texas / London
Posts: 2,204
|
there are lots of programs out their for windows. I am on the mac so use Name Mangler which works great.
__________________
$ CLICKMEMEDIA.COM $ CONVERTING ETHNIC TRAFFIC SINCE 1998 ~ $30+PPS
BLACK-X.COM - NEW BLACK EX-GF SITE CLICKMEMEDIA.COM ~ ICQ - 8788771 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Industry Role:
Join Date: Aug 2003
Location: Vegas and Los Angeles
Posts: 2,122
|
ACDSee will do that for you.
![]()
__________________
The Only Time When Success Comes Before Work Is In A Dictionary. Did you ever notice: When you put the 2 words 'The' and 'IRS' together it spells 'Theirs.' |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
►SouthOfHeaven
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
|
php.. heres what you want to do
make a new folder on your server called temp, upload all images to temp, upload the list of new names in a file called newlist.txt filenames should be on a new line example name1.jpg name2.jpg name3.jpg save this is index.php Code:
<?php // open list $list = file_get_contents("newlist.txt"); // split list into array $listarray = explode("\n",$list); // where to start list from , 0 = top $count = "0"; // do something for each jpg in the folder starting with the first one foreach (glob("*.jpg") as $filename) { //rename the image to the corresponding name in the newlist.txt rename($filename, "$listarray[$count]"); // show browser its done echo "Renamed $filename -to- $listarray[$count]\n<br>"; $count = $count + 1; } ?> chmod folder 777 run the index in your browser
__________________
hatisblack at yahoo.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Confirmed User
Industry Role:
Join Date: May 2006
Posts: 4,665
|
Thanks all. Looks like Smokey's is the best option for me. Thanks Smokey.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
Registered User
Join Date: Jan 2008
Location: wenatchee WA
Posts: 75
|
af5 its free its easy and has lots of different items for you to use
__________________
You can contact me via the following: AIM - playazdb0y ICQ - 459454282 Email - [email protected] |
![]() |
![]() ![]() ![]() ![]() ![]() |