Creare un’immagine in primo piano per il Fedora Magazine
Ogni articolo nel Fedora Magazine deve avere un’immagine in primo piano. L’immagine dà all’articolo un’ulteriore attrattiva visiva. Appare anche nei link sui social media, per attirare più spettatori.
These images are created as SVG (scalable vector graphic) images. To work with these images, you should install a SVG capable application such as Inkscape. The GNU Image Manipulation Program (GIMP) is also useful for modifying images if necessary.
Guarda il video Creating Featured Images Workshop sul nostro canale YouTube per una dimostrazione visiva delle linee guida e delle istruzioni qui sotto, più alcuni consigli aggiuntivi su Inkscape.
| The video is from a previous era which indicates the use of a GIT image repository. This is NOT used at this time. However, the demostration of using Inkscape is very useful. The following time spans may be useful: Inkscape (3:30 - 38:56), installing the image in WP Engine (40:19 - 42:08), and a discussion of fonts (43:59: - 49:05). The current method to acquire the SVG template file is described later in these instructions as well as saving the SVG files for future use. |
Linee guida importanti
-
Usa il logo Fedora solo occasionalmente, ad esempio per annunci importanti o per indicare un’affinità con il progetto.
-
Non utilizzare loghi di altri progetti. La maggior parte richiede un permesso per l’utilizzo ed è difficile indicare un destinatario per il permesso in un progetto di proprietà del gruppo come il Magazine.
-
Usa solo immagini, foto o screenshot con una licenza accettabile o che hai fatto tu stesso e quindi puoi contribuire con tale licenza. (Più avanti su questo.)
Getting the image template
Open a Terminal. (You’ll type commands into the terminal for some of the following steps.)
Install Inkscape and GIMP if you don’t have them installed already:
$ sudo dnf install inkscape gimp
Download the template file from the WP Engine Media Library using the following command to place it directly in your Templates directory.
wget -P ~/Templates https://fedoramagazine.org/wp-content/uploads/2026/05/fedora-magazine-template.svg
Or, dowload it to a location of your choice.
Crea una nuova immagine utilizzando il modello
Open Inkscape, and choose File > Open… (or hit Ctrl+O). Navigate to your Templates folder and choose the fedora-magazine-template.svg file.
Save this as a new SVG file with a different name using the "File > Save As…" option. Typically images should be named after the article in some way to make it easier to identify later. For example "using-inkscape.svg" might be used for an article covering that topic. Not saving ahead of time risks the inadvertent over-writing of the template later on.
You can use the assets inside the template file to start with the right-sized document, with some pre-configured backgrounds. Feel free to look at other SVGs for guidance. If you don’t have experience with these images, try to stick with fonts and motifs that you see in recent banners. But also feel free to experiment! For instance, use photographs (freely licensed, such as CC-BY or CC-BY-SA) with a text overlay for a nice look. Unsplash.com has a large library of images in the public domain you can use to get started.
Riutilizza una vecchia immagine
Ha senso riutilizzare una vecchia immagine se c’è un collegamento tematico dall’articolo precedente a quello nuovo. Prova a variare qualcosa dell’immagine, come il testo. Se lo sfondo è astratto (non una foto), considera di riequilibrare il colore.
Quando riutilizzi una vecchia immagine, fai attenzione ad avere tutti i font corretti installati. Per vedere una lista, puoi eseguire questo comando:
grep font <IMAGE_FILE_NAME> | sed 's/^.*font-family:\([^;]*\).*$/\1/'
Puoi ignorare i nomi dei font "serif" e "sans-serif". Assicurati di installare tutti i font che non hai già sul tuo sistema, in modo che l’immagine sia renderizzata correttamente sia sul tuo schermo sia quando realizzi un JPG in seguito.
Immagini di sfondo
Puoi trovare immagini con licenza compatibile su Unsplash, o puoi provare altri motori di ricerca d’immagini. Assicurati di scegliere solo immagini con licenze CC0, CC-BY, o CC-BY-SA. (Gli usi commerciali e derivati devono essere consentiti).
Dimensioni
Before you import your background image to the SVG, scale and trim it using GIMP or another image editor to an 1890x800 size, and a JPG quality of about 75-80%. This keeps the SVG from being too large — it will reduce the size from many MB to just a few hundred KB.
Il modello SVG contiene delle linee guida per indicare quale porzione del bordo dell’immagine di copertina potrebbe essere tagliata quando l’articolo viene condiviso su vari siti di social media. La parte che potrebbe essere tagliata è circa il 10% dei lati destro e sinistro dell’immagine e circa il 13% della parte superiore e inferiore. Nel modello SVG, le linee guida forniscono margini di esattamente 183 pixel a sinistra e a destra nonché 107 pixel in alto e in basso per un’immagine che è dimensionata a 1890x800 pixel. Questo lascia una porzione interna di 1524x586 pixel all’interno della quale è sicuro inserire del testo senza preoccuparsi che venga tagliato quando l’articolo viene condiviso su altri siti di social media.
Fonts
Ci sono alcuni font che sono comunemente usati nelle immagini in primo piano. Sei incoraggiato ad utilizzare questi font nelle tue immagini per aiutare le immagini in primo piano ad inserirsi nel "tema" generale che le altre immagini seguono. Sono tutti liberamente disponibili ai link forniti. I font che usiamo comunemente sul Fedora Magazine sono elencati qui sotto.
-
Open Sans (specialmente la variante "Light")
-
Bungee (per una sensazione leggermente tecnica ma divertente)
-
Oswald (per una sensazione più tecnica)
-
Josefin Slab (friendly with serifs)
-
Zilla Slab (amichevole con le serif)
-
Grand Hotel (per una sensazione di fantasia da script)
-
Montserrat (amichevole e simile a Sans)
-
Roboto Slab (amichevole con le serif)
-
Molot (carattere più pesante, sembra tecnico)
Per utilizzare questi font sul tuo sistema Fedora, scarica il font e scompatta il file OTF o TTF (se richiesto) nella tua cartella ~/.fonts. Poi aggiorna la tua cache dei font:
$ fc-cache
o, se il font è pacchettizzato, installalo usando il gestore dei pacchetti
$ dnf install open-sans-fonts vernnobile-oswald-fonts mozilla-zilla-slab-fonts astigmatic-grand-hotel-fonts julietaula-montserrat-fonts google-roboto-slab-fonts typetype-molot-fonts
Dovrai chiudere e riaprire Inkscape, GIMP o altre applicazioni per sfruttare i nuovi font.
Getting your work prepared for review and use in WP Engine
The images used in WP Engine are JPG images. But, for reuse/editing it is more conveniently done on an SVG. For this reason, both are stored in the WP Engine Media library.
First locate/make a directory on your local system into which you can save your work.
Saving the SVG file is a simple matter of saving the image into your local directory. This assumes you have previously saved the template under a new name at the start. If not you can use the "File > Save As…" option in Inkscape.
To create the JPG image you will need to export your image into your local directory using the "File > Export…" option. First, select the "Page" tab in the export window and set the "Width (px)" to 1890 and the "Height (px)" to 800. Now set the destination to your local directory, and the file name extension and file type to JPEG. Finally, select "Export". You should now have both an SVG and a JPG file in your local directory with the same name.
When you are ready to post your work somewhere, use the JPG. This will typically be a smaller file. Now you can post your example image "using-inkscape.jpg" in the comments section of your article’s Discourse topic for review.
If the image is approved, and if it might be reused for later articles, then consider uploading both the JPG and SVG image to the WP Engine Media Library. If you feel it is a one-time-use image then only the JPG needs to be uploaded.
Use the JPG file as the Featured Image for your article, not the SVG.
Want to help? Learn how to contribute to Fedora Docs ›