mirror of
				https://github.com/cloudreve/cloudreve.git
				synced 2025-11-01 00:57:15 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			386 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			386 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package filesystem
 | |
| 
 | |
| import (
 | |
| 	"context"
 | |
| 	model "github.com/HFO4/cloudreve/models"
 | |
| )
 | |
| 
 | |
| /* ===============
 | |
| 	图像处理相关
 | |
|    ===============
 | |
| */
 | |
| 
 | |
| // HandledExtension 可以生成缩略图的文件扩展名
 | |
| var HandledExtension = []string{}
 | |
| 
 | |
| // GenerateThumbnail 尝试为文件生成缩略图
 | |
| func (fs *FileSystem) GenerateThumbnail(ctx context.Context, file *model.File) {
 | |
| 	// TODO
 | |
| }
 | 
