|  | @ -5,19 +5,36 @@ import javax.imageio.ImageIO; | 
			
		
	
		
		
			
				
					|  |  | import java.awt.image.BufferedImage; |  |  | import java.awt.image.BufferedImage; | 
			
		
	
		
		
			
				
					|  |  | import java.io.File; |  |  | import java.io.File; | 
			
		
	
		
		
			
				
					|  |  | import java.io.IOException; |  |  | import java.io.IOException; | 
			
		
	
		
		
			
				
					|  |  |  |  |  | import java.util.ArrayList; | 
			
		
	
		
		
			
				
					|  |  |  |  |  | import java.util.List; | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | import org.junit.jupiter.api.Test; |  |  | import org.junit.jupiter.api.Test; | 
			
		
	
		
		
			
				
					|  |  |  |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
			
		
	
		
		
			
				
					|  |  | import org.springframework.boot.test.context.SpringBootTest; |  |  | import org.springframework.boot.test.context.SpringBootTest; | 
			
		
	
		
		
			
				
					|  |  |  |  |  | import com.userinformation.backend.controller.ImageController; | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | @SpringBootTest |  |  | @SpringBootTest | 
			
		
	
		
		
			
				
					|  |  | class UserInformationApplicationTests { |  |  | class UserInformationApplicationTests { | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     @Autowired | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     private ImageController imageController; | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |     @Test |  |  |     @Test | 
			
		
	
		
		
			
				
					|  |  |     void contextLoads() throws IOException { |  |  |     void contextLoads() throws IOException { | 
			
		
	
		
		
			
				
					
					|  |  |         File inputFile = new File("C:\\Users\\xiaowuler\\Desktop\\images\\decision-support\\plan-advice\\control-experiment\\TFLD_Q2.tif"); |  |  | 
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |         File outputFile = new File("C:\\Users\\xiaowuler\\Desktop\\output.png"); |  |  |         List<String> files = new ArrayList<>(){{ | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |         BufferedImage image = ImageIO.read(inputFile); |  |  |             add("C:\\Users\\xiaowuler\\Desktop\\images (2)\\TFLD_RAIN.png"); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |         ImageIO.write(image, "png", outputFile); |  |  |             add("C:\\Users\\xiaowuler\\Desktop\\images (2)\\TFLD_Q2.png"); | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					|  |  |  |  |  |             add("C:\\Users\\xiaowuler\\Desktop\\images (2)\\TFLD_T2.png"); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             add("C:\\Users\\xiaowuler\\Desktop\\images (2)\\TFLD_TN.png"); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             add("C:\\Users\\xiaowuler\\Desktop\\images (2)\\TFLD_TX.png"); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         }}; | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         imageController.createGif(files); | 
			
		
	
		
		
			
				
					|  |  |  |  |  | //        File inputFile = new File("C:\\Users\\xiaowuler\\Desktop\\images\\decision-support\\plan-advice\\control-experiment\\TFLD_Q2.tif");
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | //        File outputFile = new File("C:\\Users\\xiaowuler\\Desktop\\output.png");
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | //        BufferedImage image = ImageIO.read(inputFile);
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | //        ImageIO.write(image, "png", outputFile);
 | 
			
		
	
		
		
			
				
					|  |  |     } |  |  |     } | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | } |  |  | } | 
			
		
	
	
		
		
			
				
					|  | 
 |