diff options
| author | 2019-04-18 20:27:35 +0530 | |
|---|---|---|
| committer | 2019-04-18 20:32:53 +0530 | |
| commit | 5cf34717161bd866a634d8a9ad209afb4004857b (patch) | |
| tree | e63a1f4849c7ebb7658725a4369caa48a0710af4 /user-scripts/imgresize | |
| parent | 12ce9451ee1c24ad245d33e8944ba77a1108b5b2 (diff) | |
| download | nnn-5cf34717161bd866a634d8a9ad209afb4004857b.tar.gz | |
Plugins!
Diffstat (limited to 'user-scripts/imgresize')
| -rwxr-xr-x | user-scripts/imgresize | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/user-scripts/imgresize b/user-scripts/imgresize deleted file mode 100755 index 6d016f1..0000000 --- a/user-scripts/imgresize +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env sh - -# Description: Resize images in a directory to screen resolution with imgp -# imgp homepage: https://github.com/jarun/imgp -# -# Notes: -# 1. Set res if you don't want to be prompted for desktop resolution every time -# 2. minsize is set to 1MB by default, adjust it if you want -# 3. imgp options used: -# a - adaptive mode -# c - convert PNG to JPG -# k - skip images matching specified hres/vres -# -# Shell: POSIX compliant -# Author: Arun Prakash Jana - -# set resolution (e.g. 1920x1080) -res= - -# set minimum image size (in bytes) to resize (default: 1MB) -minsize=1048576 - -if [ -z "$res" ]; then - echo -n "desktop resolution (hxv): " - read res -fi - -if ! [ -z "$res" ]; then - if ! [ -z "$minsize" ]; then - imgp -ackx "$res" -s "$minsize" - fi -fi |