Discussion Forums > Technology
Danbooru Image tagger/renamer << NEED HELP!!!
Xiong Chiamiov:
How are you calling the script? How did you install ExifTool?
I downloaded the Windows binary of ExifTool, renamed it to exiftool.exe, and placed it in C:\WINDOWS. I then ran the command "C:\path\to\sheska2.py bf23c60786ea0472eb8 0f001fa9451a3.jpg". I did have to rename the function back to 'write_taglist', because otherwise a call somewhere else failed (and it was easier to change that).
This was on a pretty fresh Windows XP vm.
* I didn't do anything with a dublincore module or whatever you did; exiftool takes care of that.
* I didn't do anything with ExifTool_config, because those config changes aren't necessary when using the subject attribute.
* Only the last tag remained at the end. That is, rather than appending tags to the subject, each one overwrote the previous. I'll look into this.
Kyrdua:
--- Quote from: Xiong Chiamiov on February 18, 2011, 11:40:32 PM ---How are you calling the script? How did you install ExifTool?
I downloaded the Windows binary of ExifTool, renamed it to exiftool.exe, and placed it in C:\WINDOWS. I then ran the command "C:\path\to\sheska2.py bf23c60786ea0472eb8 0f001fa9451a3.jpg". I did have to rename the function back to 'write_taglist', because otherwise a call somewhere else failed (and it was easier to change that).
This was on a pretty fresh Windows XP vm.
* I didn't do anything with a dublincore module or whatever you did; exiftool takes care of that.
* I didn't do anything with ExifTool_config, because those config changes aren't necessary when using the subject attribute.
* Only the last tag remained at the end. That is, rather than appending tags to the subject, each one overwrote the previous. I'll look into this.
--- End quote ---
i'll wait for the updated script before trying again, then.
zetskee:
--- Quote from: Kyrdua on February 11, 2011, 02:23:03 PM ---<bump, pls merge>
OTL that's it, i give up, here's the command line error message
(click to show/hide)
--- Code: ---
Processing 7ef45df1d0bf63e4525780fa54c2fb56.jpg
Checking for original hash...
Traceback (most recent call last):
File "sheska.py", line 61, in <module>
image = File(filename)
File "sheska.py", line 17, in __init__
unparsedTagLine = self.call('-xmp:md5sum')
File "sheska.py", line 41, in <lambda>
call = lambda self, arg: Popen(['exiftool', '-overwrite_original', arg, self
.filename], stdout=PIPE).communicate()[0]
File "C:\Python27\lib\subprocess.py", line 672, in __init__
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 882, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
--- End code ---
--- End quote ---
I had the exact same error, except I didn't edit any files. Just turns out that exiftool wasn't in my path.
@Xiong Chiamiov - Thank you for this awesome script. It worked for me in Linux. It makes my 4000 pictures much easier to search through.
Kyrdua:
oh shit, now that you mentioned it, does this work on live KDE CD's(e.g. opensuse/kubuntu)?
zetskee:
I don't think that kubuntu/opensuse come with exiftool. I also tested it on Windows and it worked fine for me there too. I think the default exiftool name was something like ExifTool(-k).exe or something, just rename it to exiftool.exe and put it in C:\Windows and everything should work.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version