Welcome to the Invelos forums. Please read the forum rules before posting.

Read access to our public forums is open to everyone. To post messages, a free registration is required.

If you have an Invelos account, sign in to post.

    Invelos Forums->DVD Profiler: Desktop Feature Requests Page: 1 2 3 ...8  Previous   Next
HeadsImport - for batch importing headshots
Author Message
DVD Profiler Unlimited RegistrantCaranthir
Registered: March 14, 2007
Germany Posts: 52
Posted:
PM this userDirect link to this postReply with quote
Hi,

here is a small utility that will automate the tedious task of importing headshots into DVDProfiler.

Download: http://www.caranthir.de/files/headsimport.zip



You can find a huge collection of headshots at Dougs DVD Profiler Resource Centre

Usage:

Quote:

Run DVDProfiler and make sure the display language is set to U.S.
English (Tools - Options - System).

Double click any Profile to bring up the "Edit Profile" dialog. Now
click on "Cast" or "Crew" to the left to display the list of cast/crew
names. Because there is no crosslinking between cast and crew in
Profiler, you'll have to run this utility twice, once for cast and once
for crew.

Now run HeadsImport.exe. Browse to the directory where your headshot
images are stored. The File Name of the images must match the cast/crew
member name in Profiler (case insensitive). Enter the image type
extension (default jpg) for your images. Check "Replace existing
images" to assign a new image to names that already have a headshot
assigned. "Start from Top" makes sure HeadsImport starts assigning
images from the top of the cast/crew list. Uncheck to start from the
currently highlighted name. "Image resize mode" is whether to crop or
expand the image if it doesn't fit Profilers preferred size (apparently
100x133 pixels). "Ask" pauses at each image and lets you select
manually. The "Delay operation" option slows down the script, default
is 50ms. Higher values may be necessary on very fast machines. Use a
higher value if you suspect that the script misses some images.

Please close all other programs (especially MS Paint) and don't touch
mouse or keyboard while HeadsImport is running. HeadsImport does its
job by simulating user input and programs popping up windows and
messages will likely make it fail.

Finally click "Go!" and leave your computer alone. You can cancel the
process by hitting Ctrl-Break on your keyboard (see tooltip from
HeadsImport tray icon).

The utility also creates a logfile, _HeadsImport.txt, in the headshot
directory you selected above. It contains a list of names the utility
was unable to find a headshot for.


Have fun!
 Last edited: by Caranthir
DVD Profiler Unlimited RegistrantCaranthir
Registered: March 14, 2007
Germany Posts: 52
Posted:
PM this userDirect link to this postReply with quote
I've uploaded a new version 0.2, download link see first post.


Enhancements:

- improved speed when "replace existing images" is off

Fixes:

- script would stop if the first name field is empty. Profiler throws an error in this case.

Is anyone using this thing at all?
DVD Profiler Unlimited RegistrantStar ContributorAddicted2DVD
Registered: March 13, 2007
Reputation: Highest Rating
United States Posts: 17,311
Posted:
PM this userEmail this userView this user's DVD collectionDirect link to this postReply with quote
I tested this lat night! Very nice! Thanks alot! I left it on all night long last night and it got as far as Carrie Fisher by the time I got up. I am thrilled that you put out a new version that improved speen because I keep Replace Existing Images off.

Thanks again for an awesome program!
Pete
DVD Profiler Unlimited RegistrantCaranthir
Registered: March 14, 2007
Germany Posts: 52
Posted:
PM this userDirect link to this postReply with quote
Cool :D
DVD Profiler Desktop and Mobile RegistrantStar ContributorRander
I hate mondays...
Registered: March 13, 2007
Denmark Posts: 668
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
I'm using it too, and started it last night, then sat down to watch a film. When it was done, DVDP had stopped with an empty firstname... So i turned off the PC and went to bed... 
The future is here. It's just not widely distributed yet. (William Gibson)
DVD Profiler Unlimited RegistrantCaranthir
Registered: March 14, 2007
Germany Posts: 52
Posted:
PM this userDirect link to this postReply with quote
The new version fixes that, just download again.
DVD Profiler Unlimited RegistrantStar Contributorstephane
Registered: March 13, 2007
Posts: 27
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
It works fine for me, but I had to adapt your script to add sleep statements (see  below). Otherwise, it would not always copy the names from the fields into the variables.

-Stephane

; Get name from edit boxes
ClipPut("")
Send("^c")
Sleep(20)
$FName = ""
$FName = ClipGet()
Send("{TAB}")
ClipPut("")
Send("^c")
Sleep(20)
$LName = ""
$LName = ClipGet()
Send("{TAB}")
ClipPut("")
Send("^c")
Sleep(20)
$MName = ""
$MName = ClipGet()
DVD Profiler Unlimited RegistrantCaranthir
Registered: March 14, 2007
Germany Posts: 52
Posted:
PM this userDirect link to this postReply with quote
Interesting, how fast is this machine?
DVD Profiler Unlimited RegistrantStar Contributorstephane
Registered: March 13, 2007
Posts: 27
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Pentium 4, 2.8 Ghz
DVD Profiler Desktop and Mobile RegistrantMarcCastermans
Registered: March 15, 2007
Posts: 116
Posted:
PM this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
I will test this right now. Thanks for the effort.

... several minutes later ...

Looks fine had to stop since it will indeed take a long time, something for tonight.
Greetz,
Marc Castermans

 Last edited: by MarcCastermans
DVD Profiler Unlimited RegistrantStar Contributorhayley taylor
Past Contributor
Registered: March 14, 2007
Reputation: High Rating
United Kingdom Posts: 1,022
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
Many thanks for working on this and sharing the tool, will give it a try when I can keep my hands off the keyboard for a few hours tonight 
DVD Profiler Unlimited RegistrantCaranthir
Registered: March 14, 2007
Germany Posts: 52
Posted:
PM this userDirect link to this postReply with quote
Forgot to mention, it creates a logfile (_HeadsImport.txt) in the image directory, lists the names it couldn't find an image for, could be useful.
DVD Profiler Unlimited Registrantnuoyaxin
prev. known as ya_shin
Registered: March 13, 2007
Reputation: High Rating
Taiwan, Province of China Posts: 3,432
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Thanks for the tool! I sure wasn't looking forward to populating the database manually...
Achim [諾亞信; Ya-Shin//Nuo], a German in Taiwan.
Registered: May 29, 2000 (at InterVocative)
DVD Profiler Desktop and Mobile Registrantpauls42
Reg: 31/01/2003
Registered: March 13, 2007
United Kingdom Posts: 2,692
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Quoting Caranthir:
Quote:
I've uploaded a new version 0.2, download link see first post.
Fixes:
- script would stop if the first name field is empty. Profiler throws an error in this case.

Is anyone using this thing at all?


I tried using this last night but it kept stopping - no last name..   

does your fix work for that as well?

cheers
Paul
Paul
DVD Profiler Unlimited RegistrantStar Contributorstephane
Registered: March 13, 2007
Posts: 27
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
IF you have no last name and no first name (look in the log), then my fix could do the job.
DVD Profiler Unlimited RegistrantCaranthir
Registered: March 14, 2007
Germany Posts: 52
Posted:
PM this userDirect link to this postReply with quote
Quoting pauls42:
Quote:

I tried using this last night but it kept stopping - no last name..   


Not sure I get this: the last name field was empty and it stopped with a DVD Profiler error message in the foreground?
    Invelos Forums->DVD Profiler: Desktop Feature Requests Page: 1 2 3 ...8  Previous   Next