miromannino / Justified-Gallery

Javascript library to help creating high quality justified galleries of images. Used by thousands of websites as well as the photography community 500px.
http://miromannino.github.io/Justified-Gallery/
MIT License
1.68k stars 299 forks source link

Is it possible to choose the fixed thumbnail resolution? #322

Closed yoshikawa-wise closed 4 years ago

yoshikawa-wise commented 4 years ago

I'm using Justified Gallery Plugin for Wordpress and trying its short code. For some reason, the plugin choose thumbnails of 300x210 px. But I'd like to change their sizes to be 768x538 or 1024x717 px. I specified sizeRangeSuffixes attribute like below because I have the images with suffix of different sizes in my uploads folder of wordpress. But thumbnails with bigger resolution are not chosen. Is there any way to do it?

[gallery ids="29627" sizeRangeSuffixes="{512:'-768x538', 1024:'-1024x717'}" ]

I refereed this page. https://miromannino.github.io/Justified-Gallery/options-and-events/