mirror of
				https://github.com/imgproxy/imgproxy.git
				synced 2025-10-30 23:08:02 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			334 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			334 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package processing
 | |
| 
 | |
| import (
 | |
| 	"github.com/imgproxy/imgproxy/v3/imath"
 | |
| 	"github.com/imgproxy/imgproxy/v3/options"
 | |
| )
 | |
| 
 | |
| func resultSize(po *options.ProcessingOptions) (int, int) {
 | |
| 	resultWidth := imath.Scale(po.Width, po.Dpr*po.ZoomWidth)
 | |
| 	resultHeight := imath.Scale(po.Height, po.Dpr*po.ZoomHeight)
 | |
| 
 | |
| 	return resultWidth, resultHeight
 | |
| }
 |