Author |
Message |
Registered: March 14, 2007 | Posts: 52 |
| Posted: | | | | Hi, here is a small utility that will automate the tedious task of importing headshots into DVDProfiler. Download: http://www.caranthir.de/files/headsimport.zipYou can find a huge collection of headshots at Dougs DVD Profiler Resource CentreUsage: 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 |
|
Registered: March 14, 2007 | Posts: 52 |
| Posted: | | | | 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? |
|
Registered: March 13, 2007 | Reputation: | Posts: 17,334 |
| Posted: | | | | 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 |
|
Registered: March 14, 2007 | Posts: 52 |
| |
Registered: March 13, 2007 | Posts: 670 |
| Posted: | | | | 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) |
|
Registered: March 14, 2007 | Posts: 52 |
| Posted: | | | | The new version fixes that, just download again. |
|
Registered: March 13, 2007 | Posts: 27 |
| Posted: | | | | 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() |
|
Registered: March 14, 2007 | Posts: 52 |
| Posted: | | | | Interesting, how fast is this machine? |
|
Registered: March 13, 2007 | Posts: 27 |
| Posted: | | | | Pentium 4, 2.8 Ghz |
|
Registered: March 15, 2007 | Posts: 116 |
| Posted: | | | | 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 |
|
Registered: March 14, 2007 | Reputation: | Posts: 1,022 |
| Posted: | | | | 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 | | | |
|
Registered: March 14, 2007 | Posts: 52 |
| Posted: | | | | 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. |
|
Registered: March 13, 2007 | Reputation: | Posts: 3,436 |
| Posted: | | | | 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) |
|
Registered: March 13, 2007 | Posts: 2,692 |
| Posted: | | | | 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 |
|
Registered: March 13, 2007 | Posts: 27 |
| Posted: | | | | IF you have no last name and no first name (look in the log), then my fix could do the job. |
|
Registered: March 14, 2007 | Posts: 52 |
| Posted: | | | | 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? |
|