Skip to content

Commit

Permalink
feat(SanityImage): blurDataURL
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiazom committed Oct 17, 2024
1 parent b907256 commit 73e9d4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/image/SanityImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const SanityAssetImage = ({
{...imageProps}
width={imageProps.width}
height={imageProps.height}
blurDataURL={image.metadata?.lqip}
style={{
objectFit: "cover",
objectPosition,
Expand Down
3 changes: 3 additions & 0 deletions studio/lib/interfaces/media.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ export interface IImage {
alt?: string;
crop?: ICrop;
hotspot?: IHotspot;
metadata?: {
lqip: string;
};
}

export interface ImageExtendedProps extends IImage {
Expand Down

0 comments on commit 73e9d4f

Please sign in to comment.