FEATURE: add support for responsive images in posts

When creating lightboxes we will attempt to create 1.5x and 2x thumbnails
for retina screens, this can be controlled with a new hidden site setting
called responsice_post_image_sizes, if you wish to create 3x images run

SiteSetting.responsive_post_image_sizes = "1|1.5|2|3"


The default should be good for most of the setups as it balances filesize
with quality. 3x thumbs can get big.
This commit is contained in:
Sam
2018-10-03 13:44:53 +10:00
parent 73443d889c
commit ad0e768742
3 changed files with 93 additions and 5 deletions

View File

@@ -914,6 +914,9 @@ files:
default: 'gz'
type: list
list_type: compact
responsive_post_image_sizes:
default: "1|1.5|2"
hidden: true
crawl_images:
default: true
max_image_width: