forked from Public/pics
		
	Crop editor: interpret 'cs' as centre-sliced crop.
At some point, I started using 'cs' instead of 'cc'. Let's just support both.
This commit is contained in:
		
							parent
							
								
									8147e2b97d
								
							
						
					
					
						commit
						5344378333
					
				@ -100,7 +100,7 @@ class CropEditor {
 | 
				
			|||||||
		let sourceAspectRatio = source.naturalWidth / source.naturalHeight;
 | 
							let sourceAspectRatio = source.naturalWidth / source.naturalHeight;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		// Cropping from the centre?
 | 
							// Cropping from the centre?
 | 
				
			||||||
		if (cropMethod === "c") {
 | 
							if (cropMethod === "c" || cropMethod === "s") {
 | 
				
			||||||
			// Crop vertically from the centre, using the entire width.
 | 
								// Crop vertically from the centre, using the entire width.
 | 
				
			||||||
			if (sourceAspectRatio <= cropAspectRatio) {
 | 
								if (sourceAspectRatio <= cropAspectRatio) {
 | 
				
			||||||
				this.crop_width.value = source.naturalWidth;
 | 
									this.crop_width.value = source.naturalWidth;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user