arnowelzel / lightbox-photoswipe

Integration of PhotoSwipe to WordPress
https://arnowelzel.de/wp/en/projects/wordpress/lightbox-with-photoswipe
GNU General Public License v2.0
27 stars 7 forks source link

Add option to limit image size (width/height) in lightbox #97

Closed arnowelzel closed 1 year ago

arnowelzel commented 1 year ago

Also see: https://wordpress.org/support/topic/how-to-limit-image-width/

The backend may contain a general option to limit the maximum with or height of images displayed in the lightbox.

If no value is set, the image sizes will be used as determined, otherwise the image will be limited to the given width or height. The other value will then be calculated based on the aspect ratio of the image.

Note: the cached meta data will not be changed, only the final output for the respective data-lbwps- attributes.

arnowelzel commented 1 year ago

Closed with https://github.com/arnowelzel/lightbox-photoswipe/commit/0db7edbb2a38a31a806e643959fc5ebcff7a7f1a