Fix uploading higher-than-wide GIF profile picture with libvips enabled (#32911)
This commit is contained in:
		@@ -52,6 +52,7 @@ module Paperclip
 | 
			
		||||
        # implement. If cropping ever becomes necessary for other situations, this will
 | 
			
		||||
        # need to be expanded.
 | 
			
		||||
        crop_width = crop_height = [target_width, target_height].min if @target_geometry&.square?
 | 
			
		||||
        crop_width = crop_height = "'min(iw,ih)'" if crop_width == 'ih'
 | 
			
		||||
 | 
			
		||||
        filter = begin
 | 
			
		||||
          if @crop
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user