Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from ~/.config/ranger/scope.sh
- image/*)
- local orientation
- orientation="$( identify -format '%[EXIF:Orientation]\n' -- "${FILE_PATH}" )"
- # If orientation data is present and the image actually
- # needs rotating ("1" means no rotation)...
- if [[ -n "$orientation" && "$orientation" != 1 ]]; then
- # ...auto-rotate the image according to the EXIF data.
- convert -- "${FILE_PATH}" -auto-orient "${IMAGE_CACHE_PATH}" && exit 6
- fi
- # `w3mimgdisplay` will be called for all images (unless overriden as above),
- # but might fail for unsupported types.
- exit 7;;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement