Rename auto rotate option to auto_rotate

This commit is contained in:
Joseph Wynn 2017-03-12 14:14:45 +00:00
parent db264444ac
commit ffc51f648b
2 changed files with 5 additions and 4 deletions

View File

@ -50,7 +50,7 @@ responsive_image:
# [Optional, Default: false]
# Rotate resized images depending on their EXIF rotation attribute. Useful for
# working with JPGs directly from digital cameras and smartphones
respect_exif_rotation: false
auto_rotate: false
# [Optional, Default: assets]
# The base directory where assets are stored. This is used to determine the

View File

@ -4,7 +4,8 @@ module Jekyll
include ResponsiveImage::Utils
def resize_image(img, config)
img.auto_orient! if config['respect_exif_rotation']
img.auto_orient! if config['auto_rotate']
resized = []
config['sizes'].each do |size|