Rename auto rotate option to auto_rotate
This commit is contained in:
parent
db264444ac
commit
ffc51f648b
|
@ -46,11 +46,11 @@ responsive_image:
|
||||||
- width: 800
|
- width: 800
|
||||||
- width: 1400
|
- width: 1400
|
||||||
quality: 90
|
quality: 90
|
||||||
|
|
||||||
# [Optional, Default: false]
|
# [Optional, Default: false]
|
||||||
# Rotate resized images depending on their EXIF rotation attribute. Useful for
|
# Rotate resized images depending on their EXIF rotation attribute. Useful for
|
||||||
# working with JPGs directly from digital cameras and smartphones
|
# working with JPGs directly from digital cameras and smartphones
|
||||||
respect_exif_rotation: false
|
auto_rotate: false
|
||||||
|
|
||||||
# [Optional, Default: assets]
|
# [Optional, Default: assets]
|
||||||
# The base directory where assets are stored. This is used to determine the
|
# The base directory where assets are stored. This is used to determine the
|
||||||
|
@ -139,7 +139,7 @@ You will need to create a template in order to use the `responsive_image` tag. B
|
||||||
#### Responsive image with `srcset` where the largest resized image is the default
|
#### Responsive image with `srcset` where the largest resized image is the default
|
||||||
|
|
||||||
> **Note:** This is useful if you don't want your originals to appear on your site. For example, if you're uploading full-res images directly from a device.
|
> **Note:** This is useful if you don't want your originals to appear on your site. For example, if you're uploading full-res images directly from a device.
|
||||||
|
|
||||||
```twig
|
```twig
|
||||||
{% capture srcset %}
|
{% capture srcset %}
|
||||||
{% for i in resized %}
|
{% for i in resized %}
|
||||||
|
|
|
@ -4,7 +4,8 @@ module Jekyll
|
||||||
include ResponsiveImage::Utils
|
include ResponsiveImage::Utils
|
||||||
|
|
||||||
def resize_image(img, config)
|
def resize_image(img, config)
|
||||||
img.auto_orient! if config['respect_exif_rotation']
|
img.auto_orient! if config['auto_rotate']
|
||||||
|
|
||||||
resized = []
|
resized = []
|
||||||
|
|
||||||
config['sizes'].each do |size|
|
config['sizes'].each do |size|
|
||||||
|
|
Loading…
Reference in New Issue