Skip to content

Commit 2fdc6a7

Browse files
committed
chore: update code style for md files
1 parent 70ba5fc commit 2fdc6a7

File tree

3 files changed

+31
-31
lines changed

3 files changed

+31
-31
lines changed

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ All notable changes to this project will be documented in this file. See [standa
77

88
### Features
99

10-
* throw error 400 on image download error ([f9af9c0](https://github.com/MobileTeleSystems/image-optimize/commit/f9af9c04879573dbbf1301e1323ddc7d2059ddd8))
11-
* update packages versions ([11e314e](https://github.com/MobileTeleSystems/image-optimize/commit/11e314ec7a68b3981a37399b621cabac26333a90))
10+
* throw error 400 on image download error ([f9af9c0](https://github.com/MobileTeleSystems/image-optimize/commit/f9af9c04879573dbbf1301e1323ddc7d2059ddd8))
11+
* update packages versions ([11e314e](https://github.com/MobileTeleSystems/image-optimize/commit/11e314ec7a68b3981a37399b621cabac26333a90))
1212

1313

1414
### Bug Fixes
1515

16-
* throw error 404 if image src return 404 ([dc4bf2a](https://github.com/MobileTeleSystems/image-optimize/commit/dc4bf2aea308f88a18b8427004ff0281e55ce0c5))
16+
* throw error 404 if image src return 404 ([dc4bf2a](https://github.com/MobileTeleSystems/image-optimize/commit/dc4bf2aea308f88a18b8427004ff0281e55ce0c5))

CODE_OF_CONDUCT.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,24 @@ diverse, inclusive, and healthy community.
1717
Examples of behavior that contributes to a positive environment for our
1818
community include:
1919

20-
* Demonstrating empathy and kindness toward other people
21-
* Being respectful of differing opinions, viewpoints, and experiences
22-
* Giving and gracefully accepting constructive feedback
23-
* Accepting responsibility and apologizing to those affected by our mistakes,
24-
and learning from the experience
25-
* Focusing on what is best not just for us as individuals, but for the overall
26-
community
20+
* Demonstrating empathy and kindness toward other people
21+
* Being respectful of differing opinions, viewpoints, and experiences
22+
* Giving and gracefully accepting constructive feedback
23+
* Accepting responsibility and apologizing to those affected by our mistakes,
24+
and learning from the experience
25+
* Focusing on what is best not just for us as individuals, but for the overall
26+
community
2727

2828
Examples of unacceptable behavior include:
2929

30-
* The use of sexualized language or imagery, and sexual attention or advances of
31-
any kind
32-
* Trolling, insulting or derogatory comments, and personal or political attacks
33-
* Public or private harassment
34-
* Publishing others' private information, such as a physical or email address,
35-
without their explicit permission
36-
* Other conduct which could reasonably be considered inappropriate in a
37-
professional setting
30+
* The use of sexualized language or imagery, and sexual attention or advances of
31+
any kind
32+
* Trolling, insulting or derogatory comments, and personal or political attacks
33+
* Public or private harassment
34+
* Publishing others' private information, such as a physical or email address,
35+
without their explicit permission
36+
* Other conduct which could reasonably be considered inappropriate in a
37+
professional setting
3838

3939
## Enforcement Responsibilities
4040

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
Optimizing images helps reduce image weight and increases website loading speed, which is very important for both users and search engines. For these purposes, we have created a microservice that perfectly copes with this task.
99

1010
Features:
11-
- Resize images for the user's screen size,
12-
- Image compressions to reduce traffic,
13-
- Converting images to modern formats such as webp and avif,
14-
- Works with dynamically content, compression occurs on the fly,
15-
- High compression speed, an average picture is processed in just 200 ms,
16-
- Includes exporter of metrics for Prometheus,
17-
- Supports basic authorization for multiple domains and endpoints,
18-
- Supports security restrictions for allowed addresses.
11+
- Resize images for the user's screen size,
12+
- Image compressions to reduce traffic,
13+
- Converting images to modern formats such as webp and avif,
14+
- Works with dynamically content, compression occurs on the fly,
15+
- High compression speed, an average picture is processed in just 200 ms,
16+
- Includes exporter of metrics for Prometheus,
17+
- Supports basic authorization for multiple domains and endpoints,
18+
- Supports security restrictions for allowed addresses.
1919

2020
### Try
2121
To try the microservice features, run the container with the command:
@@ -37,11 +37,11 @@ docker run -d --restart always -p 3000:3000 mtsrus/image-optimize
3737
```
3838

3939
### Container parameters
40-
- `-e PORT=3000` - the port on which the microservice will be launched, default 3000.
41-
- `-e ALLOW_SIZES="100,200,1024-1920"` - an array of allowed sizes for the resulting images, default 100-1920. Use specific values to prevent heavy loads on the server.
42-
- `-e ALLOW_SOURCES="https%3A%2F%2Ftb.mts.ru%2F"` - url array of allowed addresses for image sources, default * (any). Use comma as separator. It is recommended to apply encodeURIComponent to url.
43-
- `-e BASIC_AUTHS="https%3A%2F%2Ftb.mts.ru%2F"` - an array of endpoints with basic authorization parameters, default empty. Has format encodeURIComponent("url"):encodeURIComponent("login"):encodeURIComponent("password"). Use comma as separator.
44-
- `-e SHARP_CONCURRENCY=0` - number of threads libvips' should create to process each image, default 0 (will reset to the number of CPU cores).
40+
- `-e PORT=3000` - the port on which the microservice will be launched, default 3000.
41+
- `-e ALLOW_SIZES="100,200,1024-1920"` - an array of allowed sizes for the resulting images, default 100-1920. Use specific values to prevent heavy loads on the server.
42+
- `-e ALLOW_SOURCES="https%3A%2F%2Ftb.mts.ru%2F"` - url array of allowed addresses for image sources, default * (any). Use comma as separator. It is recommended to apply encodeURIComponent to url.
43+
- `-e BASIC_AUTHS="https%3A%2F%2Ftb.mts.ru%2F"` - an array of endpoints with basic authorization parameters, default empty. Has format encodeURIComponent("url"):encodeURIComponent("login"):encodeURIComponent("password"). Use comma as separator.
44+
- `-e SHARP_CONCURRENCY=0` - number of threads libvips' should create to process each image, default 0 (will reset to the number of CPU cores).
4545

4646
### Components for web
4747
To optimize images in the browser, there is a component for React. You can find it [by following the link](https://github.com/MobileTeleSystems/image-optimize-react). The component itself determines the most suitable image parameters and requests it from this microservice.

0 commit comments

Comments
 (0)