Nl:Hoe een flash plugin maken van een png-bestand

From Gramps
Revision as of 10:29, 10 July 2008 by Erikdr (talk | contribs)
Jump to: navigation, search


Dit is een gids om een familiestamboom aan te maken die bekeken kan worden in een web-browser en waar in en uitzoomen mogelijk is en alsook navigeren door de stamboom.

Hoe ?

Installeren van de nodige hulpmiddelen

  1. Installeer swftools: [1]
  2. Gebruik de Graphviz-plugin om een grafiek aan te maken (zie Nl:Hoe een relatiegrafiek opstellen)

Aanmaken van het Flash-bestand

Flash is een a gepatenteerd formaat, maar er zijn echter openbronimplementaties. U dient een flash player en een browser plugin te installeren om een flash-bestand in firefox, konqueror, ... te kunen bekijken.

U kan het flash-bestand als volgt aanmaken:

  • Als het beeldbestand "verslag.png" noemt, voer dan uit met opdrachtregel
png2swf -o verslag.swf verslag.png" 
  • Nu zou er een bestand aangemaakt moeten zijn met de naam verslag.swf. Dit bestand kan met gelijk welke browser met een flash-plugin bekeken worden.

U kunt inzoomen door rechtsklikken op het beeld en inzoomen via het menu en u kunt door het beeld navigeren door het beeld te verplaatsen met de cursor in het beeldvenster.

This has been done with the resulting family tree of Example 2 on Howto: Make a relationship chart/nl een relatiegrafiek maken. To see the result, open the file ancestorsAndDescedants.swf with a flash enabled browser, and test it out.

Verbeteringen

  • It is also possible to use javascript to add zooming by moving the mouse wheel, but he who did it does not remember how at the moment.
  • The .dot file generated in example 3 on Howto: Make a relationship chart/nl contains the web-page addresses to the personal pages of the "Narrative Webpage" report pages, and by generating a pdf with the relationship graph report and using pdf2swf, the resulting flash-file contains clickable links for each individual that should work if teh swf-file is placed in the same directory as the index.html file of a Narrative We Page report. The alternative way of generating from .dot file can also be used. One way to accomplish this is to run
dot -Tps2 report.dot > report.ps
ps2pdf report.ps
pdf2swf -o report.swf report.pdf

The resulting swf-file should now work as before, but with the addition of hyperlinks.