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  Previous   Next
Tool to extract headshots
Author Message
DVD Profiler Desktop and Mobile RegistrantStar ContributorDJ Doena
Registered: May 1, 2002
Registered: March 14, 2007
Reputation: Highest Rating
Germany Posts: 6,744
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Quoting FredLooks:
Quote:
No BY?



target = person.LastName + "_" + person.FirstName + "_" + person.MiddleName;
if(String.IsNullOrEmpty(person.BirthYear) == false)
{
    target += "_" + person.BirthYear;
}
target = CleanupFilename(target); //remove invalid filename characters
source.CopyTo(Program.RootPath + @"\Images\DVD Profiler\" + target + source.Extension, true);
Karsten
DVD Collectors Online

DVD Profiler Unlimited RegistrantStar ContributorAce_of_Sevens
Registered: December 10, 2007
Reputation: High Rating
Posts: 3,004
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
headshots can be extracted using forceps and retractors.
DVD Profiler Desktop and Mobile RegistrantStar ContributorTheMadMartian
Alien with an attitude
Registered: March 13, 2007
Reputation: Highest Rating
United States Posts: 13,202
Posted:
PM this userEmail this userView this user's DVD collectionDirect link to this postReply with quote
Quoting FredLooks:
Quote:
No BY?

I don't have any with BYs attached, so I am not sure where the BY goes in the file name.  A few that I have are:

Downey, Jr._Robert_.jpg
Park_Grace_.jpg
Jovovich_Milla_.jpg

I will try to add one with a BY and get back to you.
No dictator, no invader can hold an imprisoned population by force of arms forever.
There is no greater power in the universe than the need for freedom.
Against this power, governments and tyrants and armies cannot stand.
The Centauri learned this lesson once.
We will teach it to them again.
Though it take a thousand years, we will be free.
- Citizen G'Kar
 Last edited: by TheMadMartian
DVD Profiler Desktop and Mobile RegistrantStar ContributorTheMadMartian
Alien with an attitude
Registered: March 13, 2007
Reputation: Highest Rating
United States Posts: 13,202
Posted:
PM this userEmail this userView this user's DVD collectionDirect link to this postReply with quote
So I just checked, using Bill Butler (1931) as my test subject, but it would not recognize anything other than Butler_Bill_.jpg. 
No dictator, no invader can hold an imprisoned population by force of arms forever.
There is no greater power in the universe than the need for freedom.
Against this power, governments and tyrants and armies cannot stand.
The Centauri learned this lesson once.
We will teach it to them again.
Though it take a thousand years, we will be free.
- Citizen G'Kar
DVD Profiler Desktop and Mobile RegistrantStar ContributorDJ Doena
Registered: May 1, 2002
Registered: March 14, 2007
Reputation: Highest Rating
Germany Posts: 6,744
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Quoting TheMadMartian:
Quote:
So I just checked, using Bill Butler (1931) as my test subject, but it would not recognize anything other than Butler_Bill_.jpg. 


He has no middle name, thus Butler_Bill__1931.jpg. If he had it'd be Butler_Bill_Sixpack_1931.jpg
Karsten
DVD Collectors Online

DVD Profiler Desktop and Mobile Registrantmediadogg
Aim high. Ride the wind.
Registered: March 18, 2007
Reputation: Highest Rating
United States Posts: 6,463
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
Quoting TheMadMartian:
Quote:
So I just checked, using Bill Butler (1931) as my test subject, but it would not recognize anything other than Butler_Bill_.jpg. 

I'm like totally confused. What is "it"? Seems like you are talking about a tool that exists - but this thread is asking for one ... 
Thanks for your support.
Free Plugins available here.
Advanced plugins available here.
Hey, new product!!! BDPFrog.
DVD Profiler Unlimited RegistrantStar Contributorsurfeur51
Since July 3, 2003
Registered: March 29, 2007
Reputation: Great Rating
France Posts: 4,479
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Quoting mediadogg:
Quote:

I'm like totally confused. What is "it"? Seems like you are talking about a tool that exists - but this thread is asking for one ... 


I think I understand what Martian means. He does not use the "normal" system (compressed file) for his headshots, only the custom headshots system (images under Creditphotos). So he can see his headshots with a browser as ACDSee. The problem is that this method takes much more time than the click on the empty photo to build a large headshots collection.
Images from movies
 Last edited: by surfeur51
DVD Profiler Desktop and Mobile RegistrantStar ContributorTheMadMartian
Alien with an attitude
Registered: March 13, 2007
Reputation: Highest Rating
United States Posts: 13,202
Posted:
PM this userEmail this userView this user's DVD collectionDirect link to this postReply with quote
Quoting DJ Doena:
Quote:
Quoting TheMadMartian:
Quote:
So I just checked, using Bill Butler (1931) as my test subject, but it would not recognize anything other than Butler_Bill_.jpg. 


He has no middle name, thus Butler_Bill__1931.jpg. If he had it'd be Butler_Bill_Sixpack_1931.jpg

That works.  Didn't think to use the double underscore, so, thanks.
No dictator, no invader can hold an imprisoned population by force of arms forever.
There is no greater power in the universe than the need for freedom.
Against this power, governments and tyrants and armies cannot stand.
The Centauri learned this lesson once.
We will teach it to them again.
Though it take a thousand years, we will be free.
- Citizen G'Kar
DVD Profiler Desktop and Mobile RegistrantStar ContributorTheMadMartian
Alien with an attitude
Registered: March 13, 2007
Reputation: Highest Rating
United States Posts: 13,202
Posted:
PM this userEmail this userView this user's DVD collectionDirect link to this postReply with quote
Quoting mediadogg:
Quote:
Quoting TheMadMartian:
Quote:
So I just checked, using Bill Butler (1931) as my test subject, but it would not recognize anything other than Butler_Bill_.jpg. 

I'm like totally confused. What is "it"? Seems like you are talking about a tool that exists - but this thread is asking for one ... 

Sorry for the confusion.  "It" is Profiler.  In this post, hallo-marvin was talking about how the file extracted would be named...he suggested 1/2/3 BY.jpg.  I was just pointing out what the format Profiler recognizes actuall is.
No dictator, no invader can hold an imprisoned population by force of arms forever.
There is no greater power in the universe than the need for freedom.
Against this power, governments and tyrants and armies cannot stand.
The Centauri learned this lesson once.
We will teach it to them again.
Though it take a thousand years, we will be free.
- Citizen G'Kar
DVD Profiler Desktop and Mobile Registrantmediadogg
Aim high. Ride the wind.
Registered: March 18, 2007
Reputation: Highest Rating
United States Posts: 6,463
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
Heh heh ... 

Thanks guys for your patience with the old Dogg. Brain reset. Cobwebs cleared. 
Thanks for your support.
Free Plugins available here.
Advanced plugins available here.
Hey, new product!!! BDPFrog.
DVD Profiler Desktop and Mobile Registrantmediadogg
Aim high. Ride the wind.
Registered: March 18, 2007
Reputation: Highest Rating
United States Posts: 6,463
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
I'm updating my stuff to take advantage of these ideas. In terms of DJ's sample, here is what I am using (although my actual code is slightly different, since I am using API data, not XML):
...
target = person.LastName + "_" + person.FirstName + "_" + person.MiddleName + String.IsNullOrEmpty(person.MiddleName) ? "" : "_";
if(String.IsNullOrEmpty(person.BirthYear) == false)
{
    target += person.BirthYear + "_";
}
...

I think this fits better the pattern that Ken uses in CreditPhotos. Any comments? (Edit: Later confirmed the correctness of DJ's orginal version. I just have to use the API version of the code because BY is an integer, not a string. Simlpe change.)
Thanks for your support.
Free Plugins available here.
Advanced plugins available here.
Hey, new product!!! BDPFrog.
 Last edited: by mediadogg
DVD Profiler Unlimited RegistrantFredLooks
phpDVDProfilerDude D5/7/2
Registered: March 13, 2007
Canada Posts: 350
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
I tested my observations by creating 6 names:
Firstname
Firstname 1968
Firstname Lastname
Firstname Lastname 1968
Firstname Middlename Lastname
Firstname Middlename Lastname 1968

Then I save a photo using the Paste Custom menu choice, and observed the filenames, which were:
Lastname_Firstname_.jpg
Lastname_Firstname_Middlename.jpg
Lastname_Firstname_Middlename_1968.jpg
Lastname_Firstname__1968.jpg
_Firstname_.jpg
_Firstname__1968.jpg

Quoting mediadogg:
Quote:
I'm updating my stuff to take advantage of these ideas. In terms of DJ's sample, here is what I am using (although my actual code is slightly different, since I am using API data, not XML):
...
target = person.LastName + "_" + person.FirstName + "_" + person.MiddleName + String.IsNullOrEmpty(person.MiddleName) ? "" : "_";
if(String.IsNullOrEmpty(person.BirthYear) == false)
{
    target += person.BirthYear + "_";
}
...

I think this fits better the pattern that Ken uses in CreditPhotos. Any comments?


I think that that code would incorrectly put a terminal "_" on names with birthyears. I think a more correct bit of code would be:

...
target = person.LastName + "_" + person.FirstName + "_" + person.MiddleName;
if(String.IsNullOrEmpty(person.BirthYear) == false)
{
    target += "_" + person.BirthYear;
}
...
-fred
DVD Profiler Desktop and Mobile Registrantmediadogg
Aim high. Ride the wind.
Registered: March 18, 2007
Reputation: Highest Rating
United States Posts: 6,463
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
@FredLooks: Ok,I will do my own tests to confirm. I'm also not sure about the double "_". My code converts them to single "_". But thanks for your input. I'll get back and confirm that I either agree or disagree.

Ok, I'm confirming everything but the BY examples. Are you actually observing those? I don't see them. In my case, the BY examples simply use the already pasted images that do not include the BY extension. Also, I disagree with your examples showing the double "_" (i.e., "__"). Actually the code you posted does prevent that.

Please confirm that have actually observed those examples. I don't want to say I don't believe you - just that I haven't got those results. I will write my code to what I observe, but also add the BY extension, without the trailing "_" as you have proposed. Thanks again for your collaboration. It helps a lot to have another perspective.
Thanks for your support.
Free Plugins available here.
Advanced plugins available here.
Hey, new product!!! BDPFrog.
 Last edited: by mediadogg
DVD Profiler Unlimited RegistrantFredLooks
phpDVDProfilerDude D5/7/2
Registered: March 13, 2007
Canada Posts: 350
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
I also noted that an actor of F//L/BY will pick up an image of F//L, but I think that is a bug. What I was testing was what DVDP would write as the filename for each of the examples.

I copy-n-pasted the results directly from a CMD prompt. If a middle doesn't exist and a BY does, then DVDP writes two _ side-by-each

It seems to me that the program is more lax in what it decides to display than in what it writes ...
-fred
DVD Profiler Desktop and Mobile Registrantmediadogg
Aim high. Ride the wind.
Registered: March 18, 2007
Reputation: Highest Rating
United States Posts: 6,463
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
Quoting FredLooks:
Quote:
I also noted that an actor of F//L/BY will pick up an image of F//L, but I think that is a bug. What I was testing was what DVDP would write as the filename for each of the examples.

I copy-n-pasted the results directly from a CMD prompt. If a middle doesn't exist and a BY does, then DVDP writes two _ side-by-each

It seems to me that the program is more lax in what it decides to display than in what it writes ...

Ok, I have now confirmed all your results. My problem was that Paste Special did not actually create the BY examples (I was using a manual profile for testing). But when I synthesized the names, using your rules, DVDP recognized them. Ok, all on same page - march! (updating my code now). Thanks again.

Also, in terms of cleaning up filenames, the standard windows reserved characters are well known, but DVDP is even more restrictive. For example, "comma" is allowed in a filename, but not in DVDP credit photo filenames. Anybody know the full list of DVDP disallowed characters?
Thanks for your support.
Free Plugins available here.
Advanced plugins available here.
Hey, new product!!! BDPFrog.
 Last edited: by mediadogg
DVD Profiler Unlimited RegistrantFredLooks
phpDVDProfilerDude D5/7/2
Registered: March 13, 2007
Canada Posts: 350
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
I'll note in passing that custom images appears to confuse the heck out of the code that does the little head "headshot available" icons. I find that switching from my test profile to another and then back results in an almost random (well, apparently random, I'm sure it's deterministic) display of which actor has headshots, although selecting them gives the expected results.
-fred
    Invelos Forums->DVD Profiler: Desktop Feature Requests Page: 1 2 3  Previous   Next