mirror of
				https://github.com/Wan-Video/Wan2.1.git
				synced 2025-11-04 06:15:17 +00:00 
			
		
		
		
	fix for rgb alpha bug ?
This commit is contained in:
		
							parent
							
								
									d82fa9a8d6
								
							
						
					
					
						commit
						e97599635d
					
				
							
								
								
									
										2
									
								
								wgp.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								wgp.py
									
									
									
									
									
								
							@ -2150,7 +2150,7 @@ def convert_image(image):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    from PIL import ImageOps
 | 
					    from PIL import ImageOps
 | 
				
			||||||
    from typing import cast
 | 
					    from typing import cast
 | 
				
			||||||
 | 
					    image = image.convert('RGB')
 | 
				
			||||||
    return cast(Image, ImageOps.exif_transpose(image))
 | 
					    return cast(Image, ImageOps.exif_transpose(image))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def get_resampled_video(video_in, start_frame, max_frames):
 | 
					def get_resampled_video(video_in, start_frame, max_frames):
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user