Changeset View
Changeset View
Standalone View
Standalone View
contributors_manual/optimising_images.rst
Show All 26 Lines | |||||
27 | 27 | | |||
28 | Windows | 28 | Windows | ||
29 | ~~~~~~~ | 29 | ~~~~~~~ | ||
30 | 30 | | |||
31 | Windows has a build-in screenshot tool. It is by default on the PrtSc key. On laptops you will sometimes need to use the fn key. | 31 | Windows has a build-in screenshot tool. It is by default on the PrtSc key. On laptops you will sometimes need to use the fn key. | ||
32 | 32 | | |||
33 | Linux | 33 | Linux | ||
34 | ~~~~~ | 34 | ~~~~~ | ||
35 | Both Gnome and KDE have decent screenshot tools showing up by default when using the PrtSc key, as well do other popular desktop enviroments. If, for whatever reason, you have no | 35 | Both Gnome and KDE have decent screenshot tools showing up by default when using the PrtSc key, as well do other popular desktop environments. If, for whatever reason, you have no | ||
36 | 36 | | |||
37 | ImageMagick | 37 | ImageMagick | ||
38 | With imagemagick, you can use the following command:: | 38 | With imagemagick, you can use the following command:: | ||
39 | 39 | | |||
40 | import -depth 8 -dither <filename.png> | 40 | import -depth 8 -dither <filename.png> | ||
41 | 41 | | |||
42 | While we should minimize the amount of gifs in the manual for a variety of accesibility reasons, you sometimes still need to make gifs and short videos. Furthermore, gifs are quite nice to show off features with release notes. | 42 | While we should minimize the amount of gifs in the manual for a variety of accessibility reasons, you sometimes still need to make gifs and short videos. Furthermore, gifs are quite nice to show off features with release notes. | ||
43 | 43 | | |||
44 | For making short gifs, you can use the following programs: | 44 | For making short gifs, you can use the following programs: | ||
45 | 45 | | |||
46 | * `Peek <https://github.com/phw/peek>`_ -- This one has an appimage and a very easy user-interface. Like many screenrecording programs it does show trouble on Wayland. | 46 | * `Peek <https://github.com/phw/peek>`_ -- This one has an appimage and a very easy user-interface. Like many screenrecording programs it does show trouble on Wayland. | ||
47 | 47 | | |||
48 | OS X | 48 | OS X | ||
49 | ~~~~ | 49 | ~~~~ | ||
50 | 50 | | |||
▲ Show 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | |||||
103 | `PNGCrush <https://pmt.sourceforge.io/pngcrush/>`_ | 103 | `PNGCrush <https://pmt.sourceforge.io/pngcrush/>`_ | ||
104 | A lossless PNG compressor. Usage:: | 104 | A lossless PNG compressor. Usage:: | ||
105 | 105 | | |||
106 | pngcrush image.png imageout.png | 106 | pngcrush image.png imageout.png | ||
107 | 107 | | |||
108 | This will try the most common methods. Add ``-brute`` to try out all methods. | 108 | This will try the most common methods. Add ``-brute`` to try out all methods. | ||
109 | 109 | | |||
110 | `Optipng <http://optipng.sourceforge.net/>`_ | 110 | `Optipng <http://optipng.sourceforge.net/>`_ | ||
111 | Another lossless PNG compressor which can be run after using PNGQuant, it is apparantly originally a fork of png crush. | 111 | Another lossless PNG compressor which can be run after using PNGQuant, it is apparently originally a fork of png crush. | ||
112 | Usage:: | 112 | Usage:: | ||
113 | 113 | | |||
114 | optipng image.png | 114 | optipng image.png | ||
115 | 115 | | |||
116 | where image is the filename. OptiPNG will then proceed to test several compression algorithms and **overwrite** the image.png file with the optimised version. You can avoid overwriting with the ``--out imageout.png`` command. | 116 | where image is the filename. OptiPNG will then proceed to test several compression algorithms and **overwrite** the image.png file with the optimised version. You can avoid overwriting with the ``--out imageout.png`` command. | ||
117 | 117 | | |||
118 | Optimising GIF | 118 | Optimising GIF | ||
119 | ^^^^^^^^^^^^^^ | 119 | ^^^^^^^^^^^^^^ | ||
▲ Show 20 Lines • Show All 149 Lines • Show Last 20 Lines |