GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 

GenoPro Support Forum




Modified Beta 14b templates

Click to view RSS...
Author A revised version of the beta 14b Report Generator templates
Posted Friday, October 28, 2005 - Post #9024
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Customers
GenoPro version: 2.0.1.6

Last Login: Tuesday, November 10, 2015
Posts: 102, Visits: 499
GenoProSupport (10/28/2005)
The image format is .jpg which is not the right format for this type of image.  The best would be .png or .gif.

Dan, out of curiousity, why do you believe jpeg's are not the right format?

Posted Saturday, October 29, 2005 - Post #9029
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: 3 hours ago
Posts: 4,886, Visits: 22,776
rboshuis (10/29/2005)
Dan, out of curiousity, why do you believe jpeg's are not the right format?

The JPEG format does an outstanding job for pictures, however it performs very poorly for logos and anything with sharp edges such as text and/or screenshots.  Try to take a screenshot and save it to a .jpg, .gif or .png.  You will see the .png format produces the best result in both quality and smaller file size.  The .gif format may produce an identical result if your screenshot contains less than 256 colors.

Edited: Saturday, October 29, 2005 by GenoProSupport

Posted Friday, November 11, 2005 - Post #9230
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
GenoPro version: 3.0.0.7

Last Login: Sunday, November 26, 2023
Posts: 213, Visits: 4,464
Will the "default picture" feature be available in beta 15b? Even if it's just a temporary PNG file with the text: "No photo is available yet"?
Posted Sunday, November 13, 2005 - Post #9286
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
GenoPro version: 3.0.0.7

Last Login: Sunday, November 26, 2023
Posts: 213, Visits: 4,464
I'm not sure if it is a professional code to add a default photo,  when no photo of the individual is available (I'm not a programmer Smile  ) - But it works on my computer

1. First, I added 2 new images to the image folder: male.jpg and female.jpg,   like the samples which was sent to this topic a few days ago by Howard53

2. then,  I added this code in the individual.htm file after the line:

   WriteHtmlPicturesLarge i, "right", "" 

if (i.Pictures.count=0) then
      if (i.gender="Male") then
              ]%>
              <div style='clear:right;float:right;width:205;'>
              <img src='images/male.jpg' width='135' height='148' class='pic' style='margin:0px 36px 0px 21px;' onclick='viewPic(this.src)' alt='male'/></div>
              </div>
              <%[
      End if
      if (i.gender="Female") then
              ]%>
              <div style='clear:right;float:right;width:205;'>
              <img src='images/female.jpg' width='135' height='148' class='pic' style='margin:0px 36px 0px 21px;' onclick='viewPic(this.src)' alt='female'/></div>
              </div>
              <%[
      End if
End if

 

and it worked Smile

Edited: Monday, November 14, 2005 by beraha

Posted Sunday, November 13, 2005 - Post #9287
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: 3 hours ago
Posts: 4,886, Visits: 22,776
Just a few comments:
  1. You should use i.gender.id instead of i.gender.  The field i.gender may be translated to any language.
  2. Instead of repeating the code, you should write <img src='images/NoPicture_@[i.gender.id]@.jpg' ... />.  This will substitute the "NoPicture_M.jpg" or "NoPicture_F.jpg".
  3. Remove the onclick='viewPic(this.src)' since you do not want people to click on the default picture.

There are many issues having a default picture.

  1. Should the default picture be displayed everywhere, including the parents and children?  For instance, should a family of 5 children display the default picture 5 times if there are no picture at all.
  2. What about the size of this picture.  Some pictures are displayed at 100x100 while others are displayed at 248x248.  Shrinking the default picture will not look good.
  3. What about the aspect ratio of the picture.  From your code, you hardcoded the dimension of 135x148.  What if the user changes the picture to another size?

I have been thinking of a solution with a parameter like _DefaultPicture="NoPicture.jpg".  GenoPro would automatically load the file NoPicture.jpg during the initialization of the report and would supply this picture automatically to any collection of pictures.  In other words, the i.Pictures.Count would never return 0, so there would be no code to modify.  Having the picture loaded, it would possible to know the picture dimension while generating the report, thus solving the problem of the aspect ratio.  Additionally, there could be other parameters such as _DefaultPicture_M="NoPicture_M.jpg" and _DefaultPicture_F="NoPicture_F.jpg" to specify the default picture for each gender.  GenoPro would supply the proper picture depending on the gender.  There is the issue of hyperlinking to the default picture, but I think this can be solved too.

Edited: Sunday, November 13, 2005 by GenoProSupport

Posted Monday, November 14, 2005 - Post #9292
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
GenoPro version: 3.0.0.7

Last Login: Sunday, November 26, 2023
Posts: 213, Visits: 4,464
Thank you for your comments.

In my opinion, the best way is to put a default picture only on the primary pictures of the individual. And just maybe - also in the wife's/husband's pictures. There is no need to put default pictures on the children section.

Since it is possible to achieve this task from the "skin" itself, without changing any code inside genopro - maybe it is the best way to leave it that way. So - anyone can decide what they want to do in that matter.

There is no problem of the aspect ratio, because you use the same default photo all the time, and you can fix its size as a permanent size.

just don't cancel the option to get a result such as: if (i.pictures.count = 0 ) then, because it is the most important condition in that code.

 Whatever you decide to be the best approach in that matter, I'm sure your solution will be the best.Tongue

Edited: Monday, November 14, 2005 by GenoProSupport

Posted Monday, November 14, 2005 - Post #9297
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: 3 hours ago
Posts: 4,886, Visits: 22,776
beraha (11/14/2005)
just don't cancel the option to get a result such as: if (i.pictures.count = 0 ) then, because it is the most important condition in that code.

It is true the picture count would always be greater than zero, however it would be possible to determine if this is the default picture by having an empty collection of Dependents.

Set oPicture = i.Pictures.Primary
If (oPicture.Dependents.Count > 0) Then
  ' Regular picture
Else
  ' Default picture
End If
Posted Monday, November 14, 2005 - Post #9300
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.0.1.5

Last Login: Saturday, March 14, 2020
Posts: 365, Visits: 3,680
This is great news, but could I do this in the skin, and if so, where do I put the code?Ermm

Maybe Ron could have a go at this as he has shown a great talent for reworking the skins!?Wink

Posted Monday, November 14, 2005 - Post #9303
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
GenoPro version: 3.0.0.7

Last Login: Sunday, November 26, 2023
Posts: 213, Visits: 4,464
iaintait (11/14/2005)
This is great news, but could I do this in the skin, and if so, where do I put the code?Ermm

Maybe Ron could have a go at this as he has shown a great talent for reworking the skins!?Wink

 

Have you seen the code I have published?

I have changed only the Individual.htm, and it was very easy.

Here is a sample from my website:

Posted Monday, November 14, 2005 - Post #9306
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.0.1.5

Last Login: Saturday, March 14, 2020
Posts: 365, Visits: 3,680
Sorry, yes I have seen the code and tried it and of course it worked. Blush

I would now, however do the same thing with the family page if possible as the individual page is super.Wink



Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse
Active: 4 - 1 guest, 2 members, 0 anonymous.
Refresh