فهرست منبع

Better image formats support docs

DarthSim 4 سال پیش
والد
کامیت
c2ac0a6827
4فایلهای تغییر یافته به همراه18 افزوده شده و 21 حذف شده
  1. 2 0
      docs/assets/style.css
  2. 1 5
      docs/generating_the_url_advanced.md
  3. 1 5
      docs/generating_the_url_basic.md
  4. 14 11
      docs/image_formats_support.md

+ 2 - 0
docs/assets/style.css

@@ -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 {

+ 1 - 5
docs/generating_the_url_advanced.md

@@ -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.
 

+ 1 - 5
docs/generating_the_url_basic.md

@@ -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.
 

+ 14 - 11
docs/image_formats_support.md

@@ -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