fix in mac can not make_thumbnail

# fix in mac high Sierra cannot replace '/' with '_', optionally can use ${image//\//_}
This commit is contained in:
StarryTony 2017-11-23 01:55:08 +00:00 committed by GitHub
parent 4fd2287582
commit acdd75220e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -2686,7 +2686,8 @@ get_image_size() {
make_thumbnail() { make_thumbnail() {
# Name the thumbnail using variables so we can # Name the thumbnail using variables so we can
# use it later. # use it later.
image_name="$crop_mode-$crop_offset-$width-$height-${image//'/'/_}" # fix in mac cannot replace '/' with '_', optionally can use ${image//\//_}
image_name="$crop_mode-$crop_offset-$width-$height-${image##*/}"
# Handle file extensions. # Handle file extensions.
case "${image##*.}" in case "${image##*.}" in