1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-03-17 20:17:48 +02:00

Better image formats support docs

This commit is contained in:
DarthSim 2020-09-01 19:57:44 +06:00
parent a1679e5e09
commit c2ac0a6827
4 changed files with 18 additions and 21 deletions

View File

@ -24,6 +24,8 @@
--sidebar-border-color: hsla(0,0%,100%,.4);
--copycode-background: var(--link-color);
--table-row-even-background: var(--base-background-color);
}
.app-name-link img {

View File

@ -538,11 +538,7 @@ When using encoded source URL, you can specify the [extension](#extension) after
### Extension
Extension specifies the format of the resulting image. At the moment, imgproxy supports only `jpg`, `png`, `webp`, `gif`, `ico`, and `tiff`, them being the most popular and useful image formats.
<img class="pro-badge" src="assets/pro.svg" alt="pro" /> Also you can use `mp4` extension to convert animated images to MP4.
**📝Note:** Read more about image formats support [here](image_formats_support.md).
Extension specifies the format of the resulting image. Read about image formats support [here](image_formats_support.md).
The extension part can be omitted. In this case, imgproxy will use source image format as resulting one. If source image format is not supported as resulting, imgproxy will use `jpg`. You also can [enable WebP support detection](configuration.md#webp-support-detection) to use it as default resulting format when possible.

View File

@ -87,11 +87,7 @@ When using encoded source URL, you can specify the [extension](#extension) after
### Extension
Extension specifies the format of the resulting image. At the moment, imgproxy supports only `jpg`, `png`, `webp`, `gif`, `ico`, and `tiff`, them being the most popular and useful image formats.
<img class="pro-badge" src="assets/pro.svg" alt="pro" /> Also you can use `mp4` extension to convert animated images to MP4.
**📝Note:** Read more about image formats support [here](image_formats_support.md).
Extension specifies the format of the resulting image. Read about image formats support [here](image_formats_support.md).
The extension part can be omitted. In this case, imgproxy will use source image format as resulting one. If source image format is not supported as resulting, imgproxy will use `jpg`. You also can [enable WebP support detection](configuration.md#webp-support-detection) to use it as default resulting format when possible.

View File

@ -2,17 +2,20 @@
At the moment, imgproxy supports only the most popular image formats:
* PNG;
* JPEG;
* WebP;
* GIF;
* ICO;
* SVG;
* MP4 <img class="pro-badge" src="assets/pro.svg" alt="pro" />;
* HEIC _(source only)_;
* BMP;
* TIFF;
* PDF _(source only)_ <img class="pro-badge" src="assets/pro.svg" alt="pro" />.
| Format | Extension | Source | Result |
| -------|-----------|--------|--------|
| PNG | `png` | Yes | Yes |
| JPEG | `jpg` | Yes | Yes |
| WebP | `webp` | Yes | Yes |
| GIF | `gif` | Yes | Yes |
| ICO | `ico` | Yes | Yes |
| SVG | `svg` | Yes | [See notes](#svg-support) |
| HEIC | `heic` | Yes | No |
| BMP | `bmp` | Yes | Yes |
| TIFF | `tiff` | Yes | Yes |
| PDF <img class="pro-badge" src="assets/pro.svg" alt="pro" /> | `pdf` | Yes | No |
| MP4 (h264) <img class="pro-badge" src="assets/pro.svg" alt="pro" /> | `mp4` | [See notes](#video-thumbnails-) | Yes |
| Other video formats <img class="pro-badge" src="assets/pro.svg" alt="pro" /> | | [See notes](#video-thumbnails-) | No |
## GIF support