mirror of
https://github.com/immich-app/immich.git
synced 2025-01-07 00:50:23 -05:00
transcode live photos on upload (#3354)
This commit is contained in:
parent
1835fbae49
commit
6668964d92
1 changed files with 2 additions and 0 deletions
|
@ -172,6 +172,8 @@ export class JobService {
|
|||
if (asset) {
|
||||
if (asset.type === AssetType.VIDEO) {
|
||||
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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue