Skip to content

Commit 191a1a1

Browse files
authored
Merge pull request godotengine#7550 from skyace65/ImageGuideCompression
2 parents 6d71eee + df73737 commit 191a1a1

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

contributing/documentation/docs_image_guidelines.rst

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ While some Linux programs will support saving screenshots in this format, macOS
4141
and the Snip & Sketch program on Windows do not. For images that don't need
4242
editing, such as precise cropping or adding outlines, Squoosh can be used.
4343
`Squoosh <https://squoosh.app/>`_ is a converter developed by Google, is open
44-
source, and doesn't give Google any image rights by using it.
44+
source, and doesn't give Google any image rights by using it. When choosing
45+
compression if you can get an image that's under 300KB in size use lossless
46+
compression. If it's over 300KB use just enough lossy compression to get it
47+
under that size. If this results in noticable compression artifacts using less
48+
compression is fine, even if the file size is bigger.
4549

4650
If you already have an image editor such as GIMP, Krita or Photoshop installed
4751
it may have the ability to open an image then save it as a WebP file.
@@ -101,6 +105,11 @@ To save an image as webp if it isn't already one, Go to **File > Save As**. Sele
101105
will popup with webp options. Make sure **Losses** is checked and **Quality** is set to 100%. This
102106
means the image will not lose detail and will be as small as possible.
103107

108+
If the image is over 300KB in size try compressing it losslessly using `Squoosh <https://squoosh.app/>`_.
109+
If it's still over 300KB change to lossy compression and slowly increase the compression until it's under
110+
300KB. If this results in noticable compression artifacts using less compression is fine, even if the file
111+
size is bigger.
112+
104113
Outlines arrows and text
105114
------------------------
106115

0 commit comments

Comments
 (0)