Skip to content

Commit 2eb24e2

Browse files
timgates42randy408
authored andcommitted
docs: Fix a few typos
There are small typos in: - docs/chunk.md - docs/migrate-libpng.md Fixes: - Should read `subsequent` rather than `subequent`. - Should read `physical` rather than `phyiscal`. - Should read `transforms` rather than `tranforms`.
1 parent a4b209f commit 2eb24e2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/chunk.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Get image histogram
135135
int spng_get_phys(spng_ctx *ctx, struct spng_phys *phys)
136136
```
137137

138-
Get phyiscal pixel dimensions
138+
Get physical pixel dimensions
139139

140140
# spng_get_splt()
141141
```c
@@ -319,7 +319,7 @@ Set image histogram
319319
int spng_set_phys(spng_ctx *ctx, struct spng_phys *phys)
320320
```
321321
322-
Set phyiscal pixel dimensions
322+
Set physical pixel dimensions
323323
324324
# spng_set_splt()
325325
```c

docs/migrate-libpng.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Contexts are decoders by default, to create an encoder use `SPNG_CTX_ENCODER` as
1313
# Error handling
1414

1515
All functions return zero on success and non-zero on error,
16-
decoding or encoding errors will invalidate the context and most subequent function calls will return
16+
decoding or encoding errors will invalidate the context and most subsequent function calls will return
1717
`SPNG_EBADSTATE` to signal this.
1818

1919
See also: [Decoder error handling](decode.md#error-handling)
@@ -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 tranforms which
181+
The `png_set_tRNS_to_alpha()` function applies a transforms 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)