mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-31 07:57:27 +03:00 
			
		
		
		
	final set of special cases
This commit is contained in:
		
							parent
							
								
									e6c305511e
								
							
						
					
					
						commit
						fba833e1f4
					
				|  | @ -1846,7 +1846,11 @@ _reduce(ImagingObject* self, PyObject* args) | |||
|         return ImagingError_ValueError("scale must be > 0"); | ||||
|     } | ||||
| 
 | ||||
|     imOut = ImagingReduce(imIn, xscale, yscale); | ||||
|     if (xscale == 1 && yscale == 1) { | ||||
|         imOut = ImagingCopy(imIn); | ||||
|     } else { | ||||
|         imOut = ImagingReduce(imIn, xscale, yscale); | ||||
|     } | ||||
| 
 | ||||
|     return PyImagingNew(imOut); | ||||
| } | ||||
|  |  | |||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Loading…
	
		Reference in New Issue
	
	Block a user