general: cleanup

This commit is contained in:
dylan araps 2017-12-14 10:32:18 +11:00
parent 3c03c47f50
commit bd0f396305
2 changed files with 7 additions and 15 deletions

View file

@ -2704,7 +2704,7 @@ make_thumbnail() {
# Create the thumbnail dir if it doesn't exist. # Create the thumbnail dir if it doesn't exist.
mkdir -p "$thumbnail_dir" mkdir -p "$thumbnail_dir"
if [[ ! -f "$thumbnail_dir/$image_name" ]]; then [[ ! -f "$thumbnail_dir/$image_name" ]] && \
convert \ convert \
"$image" \ "$image" \
-strip \ -strip \
@ -2714,7 +2714,6 @@ make_thumbnail() {
-sample "$width"x"$height"^ \ -sample "$width"x"$height"^ \
-extent "$width"x"$height" \ -extent "$width"x"$height" \
"$thumbnail_dir/$image_name" "$thumbnail_dir/$image_name"
fi
image="$thumbnail_dir/$image_name" image="$thumbnail_dir/$image_name"
} }
@ -4403,11 +4402,9 @@ ASCII:
IMAGE: IMAGE:
--loop Redraw the image constantly until Ctrl+C is used. This fixes issues --loop Redraw the image constantly until Ctrl+C is used. This fixes issues
in some terminals emulators when using image mode. in some terminals emulators when using image mode.
--size 00px | --size 00% How to size the image. --size auto | --size square How to size the image.
Possible values: auto, 00px, 00%, none Possible values: auto, 00px, 00%, none
--crop_mode mode Which crop mode to use --crop_offset value Change the crop offset for square mode.
Takes the values: normal, fit, fill
--crop_offset value Change the crop offset for normal mode.
Possible values: northwest, north, northeast, Possible values: northwest, north, northeast,
west, center, east, southwest, south, southeast west, center, east, southwest, south, southeast

View file

@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.4. .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.5.
.TH NEOFETCH "1" "September 2017" "Neofetch 3.3.0" "User Commands" .TH NEOFETCH "1" "December 2017" "Neofetch 3.3.1-git" "User Commands"
.SH NAME .SH NAME
Neofetch \- A fast, highly customizable system info script Neofetch \- A fast, highly customizable system info script
.SH SYNOPSIS .SH SYNOPSIS
@ -259,16 +259,11 @@ Possible values: bar, infobar, barinfo, off
Redraw the image constantly until Ctrl+C is used. This fixes issues Redraw the image constantly until Ctrl+C is used. This fixes issues
in some terminals emulators when using image mode. in some terminals emulators when using image mode.
.TP .TP
\fB\-\-size\fR 00px | \fB\-\-size\fR 00% \fB\-\-size\fR auto | \fB\-\-size\fR square How to size the image.
How to size the image.
Possible values: auto, 00px, 00%, none Possible values: auto, 00px, 00%, none
.TP .TP
\fB\-\-crop_mode\fR mode
Which crop mode to use
Takes the values: normal, fit, fill
.TP
\fB\-\-crop_offset\fR value \fB\-\-crop_offset\fR value
Change the crop offset for normal mode. Change the crop offset for square mode.
Possible values: northwest, north, northeast, Possible values: northwest, north, northeast,
west, center, east, southwest, south, southeast west, center, east, southwest, south, southeast
.TP .TP