mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-17 08:20:19 -06:00
hello deepseek?
This commit is contained in:
@@ -15,12 +15,8 @@ export function fetchItemImage(itemId: string, imageType?: ImageType, width?: nu
|
||||
})
|
||||
.then(async (response) => {
|
||||
console.log(response.data)
|
||||
return new Blob(response.data)
|
||||
}).then(async (blob) => {
|
||||
const encoding = await blobToBase64(blob)
|
||||
console.debug(encoding);
|
||||
return encoding;
|
||||
});
|
||||
return URL.createObjectURL(response.data)
|
||||
})
|
||||
}
|
||||
|
||||
function base64toJpeg(encode: string) : string {
|
||||
|
||||
@@ -19,11 +19,13 @@ export default function BlurhashedImage({ item, size, type }: { item: BaseItemDt
|
||||
: undefined;
|
||||
|
||||
return (
|
||||
<View minHeight={size}>
|
||||
<View minHeight={size} minWidth={size}>
|
||||
|
||||
{ isSuccess ? (
|
||||
<Image
|
||||
src={image}
|
||||
source={{
|
||||
uri: image
|
||||
}}
|
||||
style={{
|
||||
height: size,
|
||||
width: size,
|
||||
|
||||
Reference in New Issue
Block a user