mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 09:57:43 +03:00 
			
		
		
		
	Added release notes for #8483
This commit is contained in:
		
							parent
							
								
									d008d12ba3
								
							
						
					
					
						commit
						cfe8379d90
					
				| 
						 | 
					@ -31,10 +31,26 @@ TODO
 | 
				
			||||||
API Changes
 | 
					API Changes
 | 
				
			||||||
===========
 | 
					===========
 | 
				
			||||||
 | 
					
 | 
				
			||||||
TODO
 | 
					Writing XMP bytes to JPEG and MPO
 | 
				
			||||||
^^^^
 | 
					^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 | 
				
			||||||
 | 
					
 | 
				
			||||||
TODO
 | 
					Pillow 11.0.0 added writing XMP data to JPEG and MPO images::
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    im.info["xmp"] = b"test"
 | 
				
			||||||
 | 
					    im.save("out.jpg")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					However, this meant that XMP data was automatically kept from an opened image,
 | 
				
			||||||
 | 
					which is inconsistent with the rest of Pillow's behaviour. This functionality
 | 
				
			||||||
 | 
					has been removed. To write XMP data, the ``xmp`` argument can still be used for
 | 
				
			||||||
 | 
					JPEG files::
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    im.save("out.jpg", xmp=b"test")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					To save XMP data to the second frame of an MPO image, ``encoderinfo`` can now
 | 
				
			||||||
 | 
					be used::
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    second_im.encoderinfo = {"xmp": b"test"}
 | 
				
			||||||
 | 
					    im.save("out.mpo", save_all=True, append_images=[second_im])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
API Additions
 | 
					API Additions
 | 
				
			||||||
=============
 | 
					=============
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user