mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 07:28:26 +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(),
|
||||
);
|
||||
const originalImageBlob =
|
||||
(await livePhotoSourceURLs.originalImageBlob())!;
|
||||
livePhotoSourceURLs.originalImageBlob()!;
|
||||
const imageData = {
|
||||
...(await withDimensions(imageURL)),
|
||||
imageURL,
|
||||
|
@ -26,7 +26,7 @@ import { decodeLivePhoto } from "@/media/live-photo";
|
||||
|
||||
export interface LivePhotoSourceURL {
|
||||
image: () => Promise<string | undefined>;
|
||||
originalImageBlob: () => Promise<Blob | undefined>;
|
||||
originalImageBlob: () => Blob | undefined;
|
||||
video: () => Promise<string | undefined>;
|
||||
}
|
||||
|
||||
@ -674,7 +674,7 @@ async function getRenderableLivePhotoURL(
|
||||
}
|
||||
};
|
||||
|
||||
const getOriginalImageBlob = async () => {
|
||||
const getOriginalImageBlob = () => {
|
||||
try {
|
||||
return new Blob([livePhoto.imageData]);
|
||||
} catch {
|
||||
|
Loading…
x
Reference in New Issue
Block a user