mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-31 16:07:30 +03:00 
			
		
		
		
	Updated wording
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									d55208709a
								
							
						
					
					
						commit
						79f7339b18
					
				|  | @ -27,15 +27,15 @@ Fully supported formats | ||||||
| AVIF | AVIF | ||||||
| ^^^^ | ^^^^ | ||||||
| 
 | 
 | ||||||
| Pillow reads and writes AVIF files, including AVIF sequence images. Currently, | Pillow reads and writes AVIF files, including AVIF sequence images. | ||||||
| it is only possible to save 8-bit AVIF images, and all AVIF images are decoded | It is only possible to save 8-bit AVIF images, and all AVIF images are decoded | ||||||
| as 8-bit RGB(A). | as 8-bit RGB(A). | ||||||
| 
 | 
 | ||||||
| The :py:meth:`~PIL.Image.Image.save` method supports the following options: | The :py:meth:`~PIL.Image.Image.save` method supports the following options: | ||||||
| 
 | 
 | ||||||
| **quality** | **quality** | ||||||
|     Integer, 0-100, defaults to 75. 0 gives the smallest size and poorest |     Integer, 0-100, defaults to 75. 0 gives the smallest size and poorest | ||||||
|     quality, 100 the largest and best quality. |     quality, 100 the largest size and best quality. | ||||||
| 
 | 
 | ||||||
| **subsampling** | **subsampling** | ||||||
|     If present, sets the subsampling for the encoder. Defaults to ``4:2:0``. |     If present, sets the subsampling for the encoder. Defaults to ``4:2:0``. | ||||||
|  | @ -47,14 +47,14 @@ The :py:meth:`~PIL.Image.Image.save` method supports the following options: | ||||||
|     * ``4:4:4`` |     * ``4:4:4`` | ||||||
| 
 | 
 | ||||||
| **speed** | **speed** | ||||||
|     Quality/speed trade-off (0=slower-better, 10=fastest). Defaults to 6. |     Quality/speed trade-off (0=slower/better, 10=fastest). Defaults to 6. | ||||||
| 
 | 
 | ||||||
| **max_threads** | **max_threads** | ||||||
|     Limit the number of active threads used. By default, there is no limit. If the aom |     Limit the number of active threads used. By default, there is no limit. If the aom | ||||||
|     codec is used, there is a maximum of 64. |     codec is used, there is a maximum of 64. | ||||||
| 
 | 
 | ||||||
| **range** | **range** | ||||||
|     YUV range, either "full" or "limited". Defaults to "full" |     YUV range, either "full" or "limited". Defaults to "full". | ||||||
| 
 | 
 | ||||||
| **codec** | **codec** | ||||||
|     AV1 codec to use for encoding. Specific values are "aom", "rav1e", and |     AV1 codec to use for encoding. Specific values are "aom", "rav1e", and | ||||||
|  | @ -315,7 +315,7 @@ following options are available:: | ||||||
| **append_images** | **append_images** | ||||||
|     A list of images to append as additional frames. Each of the |     A list of images to append as additional frames. Each of the | ||||||
|     images in the list can be single or multiframe images. |     images in the list can be single or multiframe images. | ||||||
|     This is currently supported for AVIF, GIF, PDF, PNG, TIFF and WebP. |     This is supported for AVIF, GIF, PDF, PNG, TIFF and WebP. | ||||||
| 
 | 
 | ||||||
|     It is also supported for ICO and ICNS. If images are passed in of relevant |     It is also supported for ICO and ICNS. If images are passed in of relevant | ||||||
|     sizes, they will be used instead of scaling down the main image. |     sizes, they will be used instead of scaling down the main image. | ||||||
|  |  | ||||||
|  | @ -230,7 +230,7 @@ def _save( | ||||||
|     is_single_frame = total == 1 |     is_single_frame = total == 1 | ||||||
|     try: |     try: | ||||||
|         for ims in [im] + append_images: |         for ims in [im] + append_images: | ||||||
|             # Get # of frames in this image |             # Get number of frames in this image | ||||||
|             nfr = getattr(ims, "n_frames", 1) |             nfr = getattr(ims, "n_frames", 1) | ||||||
| 
 | 
 | ||||||
|             for idx in range(nfr): |             for idx in range(nfr): | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user