Discussion Forums > Technology

Danbooru Image tagger/renamer << NEED HELP!!!

<< < (9/9)

ph4zr:
If I finish my exam early I can make one then. Otherwise I wouldn't be able to do it until my tomorrow evening (7PM+ GMT-4), since I'd have to plan it out. Someone else is obviously free to do so if they want.

/Heh, someone probably should do so if they don't want me managing the thread. -smirks-
<<control freak

!!! First post on new page. -scowl- Not if posts are sorted in descending order! /can no longer tell, though

Edit: Something came up, won't be making the thread right at planned time.
Deadline extension FTW! \o/
/thread created

Jorin:
Ph4zr, put up the thread whenever's convenient for you!

Relevant to this thread, I finally figured out a small Perl script to run Sheska automatically on all the .jpg files in a particular folder. Here it is:

(click to show/hide)
--- Code: ---
#!/usr/bin/perl

    use strict;
    use warnings;

    my @files = glob("*.jpg *.jpeg");

    foreach my $file (@files) {

    system("sheska.py $file\n");

    }

    exit 0;

--- End code ---

Obviously you need Perl installed as well as Python, and I put both the .pl file and .py file in a folder within my system path. Unfortunately it won't yet handle subfolders, so you have to run this one folder at a time in the command window. Otherwise it worked like a charm!

Navigation

[0] Message Index

[*] Previous page

Go to full version