Your Cart

Reply To: Possible to not resize or crop thumbnails?

These forums are now closed to new replies / tickets.

Please open a support ticket from our new Support page.

Front Page Forums Questions Possible to not resize or crop thumbnails? Reply To: Possible to not resize or crop thumbnails?

gravatar
Cal Palmore
November 6, 2014 at 5:14 pm

OK, I found a hack that can work around this problem. First set
the thumbCrop option to false. Next find a section in the
galleria-x.x.x.js file that looks like this:

thumb.data = {
width : Utils.parseValue( getStyle( ‘width’ ) ), height :
Utils.parseValue( getStyle( ‘height’ ) ), order : i, src : src
};

Turns out you can multiply the width and height values by some
factor to increase or decrease the default size of the thumbnails.
For example:

width  : Utils.parseValue( getStyle( 'width' ) )*1.8,
height : Utils.parseValue( getStyle( 'height' ) )*1.8,

I don’t know where the default thumbnail resize value comes
from. But you can use this hack to adjust the size of your
thumbnails to your liking. While this is better than accepting the
default, I would still like to know how to stop thumbnails from
being resized. So if anyone knows how to do that please let me
know.


Galleria.io uses cookies to store information. You can read more about that in our Privacy Policy. I understand