1
0
mirror of https://github.com/privacyguides/i18n.git synced 2025-08-28 08:59:15 +00:00
Files
i18n/i18n/el/meta/uploading-images.md
2025-02-27 07:33:06 +00:00

3.3 KiB
Raw Blame History

title, description
title description
Uploading Images A guide for website contributors on uploading images in the proper format and location.

If you make changes to this website that involve adding new images or replacing existing ones, here are a couple of general recommendations:

Εικόνες

  • We prefer SVG images, but if those do not exist we can use PNG images. Additionally, for cover images, we prefer that they are obtained from Unsplash and are in the WebP format.

Company logos should be square if possible, and at least 200x200px if they are PNGs (non-vector images).

Βελτιστοποίηση

PNG

Use the OptiPNG tool to optimize PNG images:

optipng -o7 file.png

SVG

Inkscape

Scourαρε όλες τις SVG εικόνες.

Στο Inkscape:

  1. File > Save As...
  2. Set type to: Optimized SVG (*.svg)

Στην καρτέλα Options:

  • Number of significant digits for coordinates > 5
  • Ενεργοποιήστε Shorten color values
  • Ενεργοποιήστε Convert CSS attributes to XML attributes
  • Ενεργοποιήστε Collapse groups
  • Ενεργοποιήστε Create groups for similar attributes
  • Απενεργοποιήστε Keep editor data
  • Απενεργοποιήστε Keep unreferenced definitions
  • Ενεργοποιήστε Work around renderer bugs

Στην καρτέλα SVG Output στις επιλογές εγγράφου ****:

  • Απενεργοποιήστε Remove the XML declaration
  • Ενεργοποιήστε Remove metadata
  • Ενεργοποιήστε Remove comments
  • Turn on Embedded raster images
  • Ενεργοποιήστε Enable viewboxing

Στην καρτέλα SVG Output στις επιλογές εγγράφου Pretty-printing:

  • Απενεργοποίηση της επιλογής Format output with line-breaks and indentation
  • Indentation characters > Επιλέξτε Space
  • Depth of indentation > 1
  • Απενεργοποιήστε Strip the "xml:space" attribute from the root SVG element

Στην καρτέλα IDs:

  • Ενεργοποιήστε Remove unused IDs
  • Απενεργοποιήστε Shorten IDs
  • Prefix shortened IDs with > αφήστε το κενό
  • Ενεργοποιήστε Preserve manually created IDs not ending with digits
  • Preserve the following IDs > αφήστε το κενό
  • Preserve IDs starting with > αφήστε το κενό

CLI

Το ίδιο μπορεί να επιτευχθεί με την εντολή Scour:

scour --set-precision=5 \
      --create-groups \
      --renderer-workaround \
      --remove-descriptive-elements \
      --enable-comment-stripping \
      --enable-viewboxing \
      --indent=space \
      --nindent=1 \
      --no-line-breaks \
      --enable-id-stripping \
      --protect-ids-noninkscape \
      input.svg output.svg

WebP

Use the cwebp command to convert PNG or JPEG image files to WebP format:

cwebp -q 70 -m 6 input_file -o output.webp