-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add asset images for Htek brand and models (#348)
* Brand and model images for Provisioner/HTek * ImageMagick scripts for brands an models * Add HTek 902, 903, 912, 912G, UC924 & UC926
- Loading branch information
1 parent
9496c8d
commit 73967dd
Showing
13 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env bash | ||
command -v convert >/dev/null 2>&1 || { echo >&2 "I require ImageMagick's 'convert' tool but it's not installed. Aborting."; exit 1; } | ||
[ $# -lt 2 ] && { echo "Usage: ./convert_brand_image.sh <input_image> <output_image_base_name>"; exit 1; } | ||
convert "$1" -trim +repage -gravity center -resize 80x60 -background white -gravity center -extent 100x80 "$2".png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
command -v convert >/dev/null 2>&1 || { echo >&2 "I require ImageMagick's 'convert' tool but it's not installed. Aborting."; exit 1; } | ||
[ $# -lt 1 ] && { echo "Usage: ./convert_model_image.sh <input_images>..."; exit 1; } | ||
for var in "$@"; do | ||
filename="${var%%.*}" | ||
convert "$var" -trim +repage -gravity center -resize 80x70 -background white -gravity center -extent 100x80 "$filename.jpg" | ||
done |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.