Difference between revisions of "GPG guide/Graphics Howto"

From LibrePlanet
Jump to: navigation, search
Line 3: Line 3:
 
<br /><br />
 
<br /><br />
  
 +
<!-- J'ai bien envie de rajouter une colonne avec les miniatures
 +
Je rajoute une copie du tableau. Une sans les miniatures, une avec, pour basculer rapidement dans les preview. r0u -->
 +
<!-- {| border="1" style="border-collapse:collapse;"
 +
!SVG name !! PNG name !! PNG size <br /> &nbsp;(Width x Height)&nbsp;
 +
|- align="right"
 +
|  &nbsp;donate.svg &nbsp;
 +
|  &nbsp;donate.png &nbsp;
 +
|  align="left" style="padding-left:2.5em" | 160 x 45
 +
|- align="right"
 +
|  &nbsp;gnupg-infographic.svg &nbsp;
 +
|  &nbsp;full-infographic.png &nbsp;
 +
|  align="left" style="padding-left:2.5em" | 749 x 2933
 +
|- align="right"
 +
|  &nbsp;infographic.svg &nbsp;
 +
|  &nbsp;infographic-button.png &nbsp;
 +
|  align="left" style="padding-left:2.5em" | 253 x 300
 +
|- align="right"
 +
|  &nbsp;join.svg &nbsp;
 +
|  &nbsp;join.png &nbsp;
 +
|  align="left" style="padding-left:2.5em" | 160 x 49
 +
|- align="right"
 +
|  &nbsp;adele.svg &nbsp;
 +
|  &nbsp;section3-try-it-out.png &nbsp;
 +
|  align="left" style="padding-left:2.5em" | 600 x 425
 +
|- align="right"
 +
|  &nbsp;web-of-trust.svg &nbsp;
 +
|  &nbsp;section4-web-of-trust.png &nbsp;
 +
|  align="left" style="padding-left:2.5em" | 600 x 436
 +
|- align="right"
 +
|  &nbsp;identity.svg &nbsp;
 +
|  &nbsp;section5-01-use-it-well.png &nbsp;
 +
|  align="left" style="padding-left:2.5em" | 600 x 280
 +
|- align="right"
 +
|  &nbsp;section5-02-use-it-well.svg &nbsp;
 +
|  &nbsp;section5-02-use-it-well.png &nbsp;
 +
|  align="left" style="padding-left:2.5em" | 600 x 404
 +
|- align="right"
 +
|  &nbsp;elements.svg &nbsp;
 +
|  &nbsp;section6-next-steps.png &nbsp;
 +
|  align="left" style="padding-left:2.5em" | 600 x 365
 +
|- align="right"
 +
|  &nbsp;step1a-install-wizard.svg &nbsp;
 +
|  &nbsp;step1a-install-wizard.png &nbsp;
 +
|  align="left" style="padding-left:2.5em" | 600 x 438
 +
|- align="right"
 +
|  &nbsp;step1b-01-tools-addons.svg &nbsp;
 +
|  &nbsp;step1b-01-tools-addons.png &nbsp;
 +
|  align="left" style="padding-left:2.5em" | 600 x 438
 +
|- align="right"
 +
|  &nbsp;step1b-02-search.svg &nbsp;
 +
|  &nbsp;step1b-02-search.png &nbsp;
 +
|  align="left" style="padding-left:2.5em" | 844 x 575
 +
|- align="right"
 +
|  &nbsp;step1b-03-install.svg &nbsp;
 +
|  &nbsp;step1b-03-install.png &nbsp;
 +
|  align="left" style="padding-left:2.5em" | 844 x 575
 +
|- align="right"
 +
|  &nbsp;step2a-01-make-keypair.svg &nbsp;
 +
|  &nbsp;step2a-01-make-keypair.png &nbsp;
 +
|  align="left" style="padding-left:2.5em" | 600 x 457
 +
|}
 +
-->
 +
 +
 +
<!-- Tableau sans les miniatures -->
 
{| border="1" style="border-collapse:collapse;"
 
{| border="1" style="border-collapse:collapse;"
 
!SVG name !! PNG name !! PNG size <br /> &nbsp;(Width x Height)&nbsp;
 
!SVG name !! PNG name !! PNG size <br /> &nbsp;(Width x Height)&nbsp;

Revision as of 22:15, 26 July 2014

Graphics to translate

There are 14 pngs to localize:


SVG name PNG name PNG size
 (Width x Height) 
 donate.svg    donate.png   160 x 45
 gnupg-infographic.svg    full-infographic.png   749 x 2933
 infographic.svg    infographic-button.png   253 x 300
 join.svg    join.png   160 x 49
 adele.svg    section3-try-it-out.png   600 x 425
 web-of-trust.svg    section4-web-of-trust.png   600 x 436
 identity.svg    section5-01-use-it-well.png   600 x 280
 section5-02-use-it-well.svg    section5-02-use-it-well.png   600 x 404
 elements.svg    section6-next-steps.png   600 x 365
 step1a-install-wizard.svg    step1a-install-wizard.png   600 x 438
 step1b-01-tools-addons.svg    step1b-01-tools-addons.png   600 x 438
 step1b-02-search.svg    step1b-02-search.png   844 x 575
 step1b-03-install.svg    step1b-03-install.png   844 x 575
 step2a-01-make-keypair.svg    step2a-01-make-keypair.png   600 x 457


Fonts

You may need to install the following fonts for a proper rendering:

  • Dosis
  • Archivo Narrow
  • Roboto
  • PXL-2000-12-0

The fonts are in static.fsf.org/nosvn/enc-dev0/fonts/.

To edit an SVG and export it to PNG

Edit

  • Open the svg in Inkscape (program messages are from the English version).
  • Display/Zoom to a convenient size.
  • Select the text with the A tool (vertical toolbox) and edit it; adjust the font if needed (T menu, in the horizontal menu bar).
  • If the text area takes up too much space and you can't use a narrower font, you can adjust its size:
    • Select the text with the arrow tool at the top of the vertical toolbox (double-click to degroup the image if it is not selected right away).
    • Move the right horizontal scaling arrow (if there is no horizontal arrow on the right side of the text area, it means that you are in the rotation menu; to go back to the scaling menu, click a second time on the text area with the arrow selection tool).

Export to PNG

  • Choose menu File/Export Bitmap
    • Export Area: choose "drawing".
    • Bitmap Size: fill with width of the target png. The height of the target will be automatically calculated. If needed, you can change the Export Area Height to fit the desired target size.
    • Filename: the complete path to the target PNG (make sure that the directory is [...]/enc/static/img/[LANG]/).
Export-param.png


Pitfalls

elements.svg (section6-next-steps.png)

There is a small white arrow below the "PRIV" key in the svg. You must first ungroup the elements (select the drawing, then menu Object/Ungroup) before selecting and deleting these white arrow and then export.

infographic.svg (infographic-button.png)

It's a sub picture of gnupg-infographic.svg. To reveal it, open gnupg-infographic.svg with inkscape, go to menu Layer/Layers…. On the Layers panel, there is a layer named "botao para site". Make it visible.

Help

Feel free to edit the SVGs from the enc/svg/fr/ directory. This may prove useful for infographic.svg (the whole image is in SVG format, extracted from gnupg-infographic.png; the export size doesn't need to be adjusted), and donate.svg or join.svg (the circle can move, which makes it easier to place the text around it; the export size doesn't need to be adjusted).

Next step

Once you have exported the pngs in the right size, you are ready to add them to the static directory. Go back to Graphics Instructions section of the Translation Guide.