display array of images like a gallery grid #7009
Unanswered
alexmelo23
asked this question in
Q&A
Replies: 2 comments
-
Is unclear what are you asking and what did you try and why it does not work. |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can use clipPaths for this.
You can set clippath like this:
You can also create a custom class of type Group to do this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I try to display an array of images like a gallery grid (See attached images)
any ideas on how can arrange images?
const files = [ "http://www.freeimageslive.com/galleries/home/playroom/pics/objects00016g.jpg", "http://www.bootleg-objects.com/download/re_sl_totale.jpg", "http://blogs.ukoln.ac.uk/cultural-heritage/files/2010/03/NIM_1983-99_23.jpg", "http://www.wallsave.com/wallpapers/1920x1080/newera/262606/newera-black-cap-new-york-city-monochrome-objects-ny-262606.jpg", "http://www.freeimageslive.com/galleries/objects/watch/pics/objects00242.jpg", "http://www.imageafter.com/dbase/images/objects_household/b13objects_household036.jpg", "http://www.freeimageslive.com/galleries/wallpaper/work/objects00018g_dt1024.jpg", "http://www.hdwallpaperstop.com/wp-content/uploads/2013/06/3D-Object-Dice-HD-Wallpaper.jpg", "http://www.imageafter.com/dbase/images/objects/b10objects019.jpg", "http://www.imageafter.com/dbase/images/objects_circuits/b16objects_circuits006.jpg", ]
files.map((el) => { fabric.Image.fromURL(el, function (myImg) { var imagesFile = myImg.set({ left: 0, top: 0, width: 300, height: 300 }); canvas.add(imagesFile); }); })
Beta Was this translation helpful? Give feedback.
All reactions