vertis / obsidian-image-layouts

MIT License
138 stars 2 forks source link

Modify Placeholder Image to Use Local Transparent Image; and Issue with Adding 6-Column and 8-Column Layouts #27

Open TheSummerRain opened 1 week ago

TheSummerRain commented 1 week ago

Hello there, 1、I would like to change the placeholder image to use a transparent image from my local machine. However, after modifying the code path, the reading mode works fine, but the real-time preview mode does not. I would like to use a relative path, but it's not working. I'm not sure what to do.

(u = [ ...o, ...Array(a - o.length).fill({ type: "external", link: "E:/myWrite/myNovel/all_image/image_gird/imm.png", // https://via.placeholder.com/640x480 }), ])

props: { imageUrls: l.length > 0 ? l.map((u) => u.link) : ["E:/myWrite/myNovel/all_image/image_gird/imm.png"], // wally https://via.placeholder.com/640x480 showThumbnails: !!o.data.carouselShowThumbnails, },

2、I am looking to add image layouts with 6 columns and 8 columns. I'm not sure how to modify the code to achieve this. I hope to make it customizable.

image

TheSummerRain commented 1 week ago

preview mode: image

reading mode: image