We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b79bc1 commit ba84f86Copy full SHA for ba84f86
src/components/ImageKitImg.tsx
@@ -1,4 +1,5 @@
1
import defaultImage from '@assets/images/default.png';
2
+
3
interface ImageKitImgProps {
4
src: string; // Spotify 이미지 URL
5
width: number;
@@ -20,6 +21,8 @@ export default function ImageKitImg({
20
21
<img
22
className={className}
23
src={`https://ik.imagekit.io/${import.meta.env.VITE_IMAGEKIT_ID}/${imagePath}?tr=w-${width},h-${height}`}
24
+ width={width}
25
+ height={height}
26
onError={(e) => {
27
const target = e.target as HTMLImageElement;
28
target.onerror = null; // 무한 루프 방지
0 commit comments