Psycojoker / prosopopee

a static website generator to make beautiful customizable pictures galleries that tell a story
http://prosopopee.readthedocs.org
GNU General Public License v3.0
318 stars 55 forks source link

full-picture: enable background-position customization #118

Closed gangelop closed 3 years ago

gangelop commented 3 years ago

The background_position setting can be used to control how the image is centered when it doesn't fit the screen width. This is useful for controlling the center accross different screen sizes (e.g. mobile), keeping the focal element of an image always visible. This sets the background-position css property. This feature is supported by the "exposure" theme. Example:

  - type: full-picture
    image: big_picture.jpg
    background_position: 75%

I feel this feature is essential for the way I want to use full pictures in my galleries. Anybody can just add it as their custom theme but I thought I'd send a PR because it's a simple and easy way to give users more creative control over their albums.

Psycojoker commented 3 years ago

Thx again!