mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	transcode live photos on upload (#3354)
This commit is contained in:
		| @@ -172,6 +172,8 @@ export class JobService { | |||||||
|         if (asset) { |         if (asset) { | ||||||
|           if (asset.type === AssetType.VIDEO) { |           if (asset.type === AssetType.VIDEO) { | ||||||
|             await this.jobRepository.queue({ name: JobName.VIDEO_CONVERSION, data: item.data }); |             await this.jobRepository.queue({ name: JobName.VIDEO_CONVERSION, data: item.data }); | ||||||
|  |           } else if (asset.livePhotoVideoId) { | ||||||
|  |             await this.jobRepository.queue({ name: JobName.VIDEO_CONVERSION, data: { id: asset.livePhotoVideoId } }); | ||||||
|           } |           } | ||||||
|           this.communicationRepository.send(CommunicationEvent.UPLOAD_SUCCESS, asset.ownerId, mapAsset(asset)); |           this.communicationRepository.send(CommunicationEvent.UPLOAD_SUCCESS, asset.ownerId, mapAsset(asset)); | ||||||
|         } |         } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user