mirror of
				https://github.com/Instadapp/trustwallet-assets.git
				synced 2024-07-29 22:37:31 +00:00 
			
		
		
		
	Resize images
This commit is contained in:
		
							parent
							
								
									60482b57a5
								
							
						
					
					
						commit
						9c506a636e
					
				
										
											Binary file not shown.
										
									
								
							| 
		 Before Width: | Height: | Size: 370 KiB After Width: | Height: | Size: 88 KiB  | 
| 
						 | 
				
			
			@ -94,6 +94,7 @@ async function resize(srcWidth: number, srcHeight: number, path: string) {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
export async function compressTinyPNG(path: string) {
 | 
			
		||||
    console.log(`Compressing image via tinypng at path ${path}`)
 | 
			
		||||
    const source = await tinify.fromFile(path);
 | 
			
		||||
    await source.toFile(path);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user