Skip to content

Commit 6cc9564

Browse files
committed
docs: fix more typos [skip-ci]
1 parent 2eb24e2 commit 6cc9564

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/migrate-libpng.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ Some decode flags may affect the final image but never the size or the layout of
169169

170170
## Adding transparency
171171

172-
This can be achieved by specifiying an output format with an alpha channel such as `SPNG_FMT_RGBA8` and the `SPNG_DECODE_TRNS` decode flag.
172+
This can be achieved by specifying an output format with an alpha channel such as `SPNG_FMT_RGBA8` and the `SPNG_DECODE_TRNS` decode flag.
173173

174174
```c
175175
ret = spng_decode_image(ctx, out, len, SPNG_FMT_RGBA8, SPNG_DECODE_TRNS);
@@ -178,7 +178,7 @@ ret = spng_decode_image(ctx, out, len, SPNG_FMT_RGBA8, SPNG_DECODE_TRNS);
178178
Note that using `SPNG_DECODE_TRNS` does not result in an error if the image does not have a tRNS chunk or
179179
is not applicable for the PNG format/output format combination, in those cases the flag is ignored.
180180

181-
The `png_set_tRNS_to_alpha()` function applies a transforms which
181+
The `png_set_tRNS_to_alpha()` function applies a transform which
182182
adds an alpha channel of the same bit depth if a tRNS chunk is present.
183183
It also implicitly converts indexed color images to 8-bit RGB,
184184
1/2/4-bit grayscale images to 8-bit grayscale and also adds an alpha channel

0 commit comments

Comments
 (0)