My build of nnn with minor changes
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

33 lignes
790 B

  1. #!/usr/bin/env sh
  2. # Description: Resize images in a directory to screen resolution with imgp
  3. # imgp homepage: https://github.com/jarun/imgp
  4. #
  5. # Notes:
  6. # 1. Set res if you don't want to be prompted for desktop resolution every time
  7. # 2. minsize is set to 1MB by default, adjust it if you want
  8. # 3. imgp options used:
  9. # a - adaptive mode
  10. # c - convert PNG to JPG
  11. # k - skip images matching specified hres/vres
  12. #
  13. # Shell: POSIX compliant
  14. # Author: Arun Prakash Jana
  15. # set resolution (e.g. 1920x1080)
  16. res=
  17. # set minimum image size (in bytes) to resize (default: 1MB)
  18. minsize=1048576
  19. if [ -z "$res" ]; then
  20. echo -n "desktop resolution (hxv): "
  21. read res
  22. fi
  23. if ! [ -z "$res" ]; then
  24. if ! [ -z "$minsize" ]; then
  25. imgp -ackx "$res" -s "$minsize"
  26. fi
  27. fi