Advertisement
ananas

Simple image selector

Nov 23rd, 2022 (edited)
1,367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.28 KB | Source Code | 0 0
  1. #! /bin/bash
  2.  
  3. mkdir ~/.tmp
  4. find ${1:-.} -type f -name "*.jpeg" -o -name "*.png" | while read f; do
  5.     pn=~/.tmp/$(date +'%s').png
  6.     gm convert "$f" -resize 64x64 $pn
  7.     echo -e "$pn\n$f"
  8. done  | yad --list --column=Preview:img --column=Filename --print-column=2
  9. rm -rf ~/.tmp
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement