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

Image size advanced logic #376

Open
PavolSvidran opened this issue Jan 22, 2021 · 1 comment
Open

Image size advanced logic #376

PavolSvidran opened this issue Jan 22, 2021 · 1 comment

Comments

@PavolSvidran
Copy link

Hi, is possible to add new option for image size with logic where:

  • image with larger width or height than contaner use background-size: contain
  • image with lower width and height than container use background-size: auto

Reason is that i want to keep images in my gallery in original size, but when it is large i need to fit it into screen without image cutting and i need to keep smaller image as is because when it is 'contain' styled it is ugly (100x100 image resized to 1920x768 for example).

@MurhafSousli
Copy link
Owner

This is not possible as for now, but it will be possible in the next major version

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

2 participants