mirror of
https://github.com/ente-io/ente.git
synced 2025-08-12 17:20:37 +00:00
not async
This commit is contained in:
parent
9c6bfaa460
commit
d50391ea13
@ -314,7 +314,7 @@ const enqueueUpdates = async (file: EnteFile) => {
|
|||||||
await livePhotoSourceURLs.image(),
|
await livePhotoSourceURLs.image(),
|
||||||
);
|
);
|
||||||
const originalImageBlob =
|
const originalImageBlob =
|
||||||
(await livePhotoSourceURLs.originalImageBlob())!;
|
livePhotoSourceURLs.originalImageBlob()!;
|
||||||
const imageData = {
|
const imageData = {
|
||||||
...(await withDimensions(imageURL)),
|
...(await withDimensions(imageURL)),
|
||||||
imageURL,
|
imageURL,
|
||||||
|
@ -26,7 +26,7 @@ import { decodeLivePhoto } from "@/media/live-photo";
|
|||||||
|
|
||||||
export interface LivePhotoSourceURL {
|
export interface LivePhotoSourceURL {
|
||||||
image: () => Promise<string | undefined>;
|
image: () => Promise<string | undefined>;
|
||||||
originalImageBlob: () => Promise<Blob | undefined>;
|
originalImageBlob: () => Blob | undefined;
|
||||||
video: () => Promise<string | undefined>;
|
video: () => Promise<string | undefined>;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -674,7 +674,7 @@ async function getRenderableLivePhotoURL(
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const getOriginalImageBlob = async () => {
|
const getOriginalImageBlob = () => {
|
||||||
try {
|
try {
|
||||||
return new Blob([livePhoto.imageData]);
|
return new Blob([livePhoto.imageData]);
|
||||||
} catch {
|
} catch {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user