mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	Remove thumbnail generation on mobile app (#292)
* Remove thumbnail generation on mobile * Remove tconditions for missing thumbnail on the backend * Remove console.log * Refactor queue systems * Convert queue and processor name to constant * Added corresponding interface to job queue
This commit is contained in:
		| @@ -69,21 +69,6 @@ class BackupService { | ||||
|             ), | ||||
|           ); | ||||
|  | ||||
|           // Build thumbnail multipart data | ||||
|           var thumbnailData = await entity | ||||
|               .thumbnailDataWithSize(const ThumbnailSize(1440, 2560)); | ||||
|           if (thumbnailData != null) { | ||||
|             thumbnailUploadData = http.MultipartFile.fromBytes( | ||||
|               "thumbnailData", | ||||
|               List.from(thumbnailData), | ||||
|               filename: fileNameWithoutPath, | ||||
|               contentType: MediaType( | ||||
|                 "image", | ||||
|                 "jpeg", | ||||
|               ), | ||||
|             ); | ||||
|           } | ||||
|  | ||||
|           var box = Hive.box(userInfoBox); | ||||
|  | ||||
|           var req = MultipartRequest( | ||||
| @@ -101,9 +86,6 @@ class BackupService { | ||||
|           req.fields['fileExtension'] = fileExtension; | ||||
|           req.fields['duration'] = entity.videoDuration.toString(); | ||||
|  | ||||
|           if (thumbnailUploadData != null) { | ||||
|             req.files.add(thumbnailUploadData); | ||||
|           } | ||||
|           req.files.add(assetRawUploadData); | ||||
|  | ||||
|           var res = await req.send(cancellationToken: cancelToken); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user