You are not logged in.
Pages: 1
Alright, so I am trying to accomplish this with scrot:
1.) take a screenshot and make a thumbnail from it
2.) make a directory with the same filename, then move the contents their.
Thisb is what I have sofar:
scrot '/home/josh/screenshot/%Y-%m-%d-%H:%M:%S.png' -e 'mkdir $f_scrot & mv $f $f_scrot'
That right there takes a screenshot, makes a folder, then moves the screenshot to the folder. But I can't figure out how to do the same with thumbnails. I've tried multiple different things and none will work. Any help please? Yes, I am making scrot more complex then it really is
Edit
For anyone who doesn't know, scrot has it's own thumbnail option:
--thumb 20%
Offline
I wrote a little script to do this job without scrot (this one runs if I press my PrintScreen-Button):
#!/bin/bash
cd ~/screenshots
name=screenshot_"$(date +%d_%m_%y_%T)"
import -windows root "$name".png
convert -thumbnail 16% "$name".png "$name"_thumb.png
Is scrot better in performing such tasks?
Cheers Sigi
Haven't been here in a while. Still rocking Arch.
Offline
I wrote a little script to do this job without scrot (this one runs if I press my PrintScreen-Button):
#!/bin/bash cd ~/screenshots name=screenshot_"$(date +%d_%m_%y_%T)" import -windows root "$name".png convert -thumbnail 16% "$name".png "$name"_thumb.png
Is scrot better in performing such tasks?
Cheers Sigi
Thanks for the script, and no, both import and scrot will dot he same task with the same effectivness. I was just use to scrot
Well, your script gave me an idea, so I careated my own
#!/bin/bash
#Since scrot is gay, and doesn't work the way I want it to
#I'll force it to work the way I want it to :P
name="$(date +%d-%m-%y_%I:%M:%S)"
sdir=$HOME"/screenshots/"
png=$sdir$name'.png'
scrot $png --thumb 20%
mkdir $sdir$name
mv $png $sdir$name
mv $sdir$name"-thumb.png" $sdir$name
Offline
Pages: 1