Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to not crop image in thumbnail? #29

Open
lambdafu opened this issue Jun 8, 2018 · 2 comments
Open

Option to not crop image in thumbnail? #29

lambdafu opened this issue Jun 8, 2018 · 2 comments

Comments

@lambdafu
Copy link

lambdafu commented Jun 8, 2018

For some type of images (technical diagrams, screenshots), it seems better to not crop the thumbnail into a square, but to display the thumbnail with a border (so the whole image is visible). Is there an easy way to do this?

@garchymede
Copy link

yes, it is possible and quite easy to do by modifying the file named hugo-easy-gallery.css :

.gallery .img {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
background-size: contain;

@liwenyip
Copy link
Owner

Thanks @garchymede, will add this as an option next time I do an update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants