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 298 forks source link

How can ı resize thumbnaıl with justifygallery #351

Closed fatihyvg closed 3 years ago

fatihyvg commented 3 years ago

How can ı resize just thumbnaıl with justifygallery and ı am tring sizeRangeSuffixes but not show on browser when ı small like phone and tablet ı can show but on browser not just how can ı resize thumbail for rowheight:170 as and ı getting this error this.resetImgSrc is not a function


  $("#gallery").justifiedGallery({
        rowHeight: 170,
        maxRowsCount: 23,
        cssAnimation: true,
        captions: true,
        fixedHeight: true,
        margins: 3,
        imagesAnimationDuration: 1000,
        lastRow: 'hide',
        sizeRangeSuffixes: {
            100: '_t', // used with images which are less than 100px on the longest side
            240: '_m', // used with images which are between 100px and 240px on the longest side
            320: '_n', // ...
            640: '_z',
            1024: '_b',
            1600: '_h',
            2048 : '_k'// used which images that are more than 640px on the longest side
        }
    });