Take a Shot! - yet another screenshot utility...
- ASRI éducation
- Posts: 3197
- Joined: Sat 09 May 2009, 12:10
- Location: France
- Contact:
- L18L
- Posts: 3479
- Joined: Sat 19 Jun 2010, 18:56
- Location: www.eussenheim.de/
Take a Shot! - yet another screenshot utility...
Good to know
if a cursor/pointer needs to be displayed in a screenshot
TaS
German attached
if a cursor/pointer needs to be displayed in a screenshot
TaS
German attached
- Attachments
-
- MoManager-de-tas-1.2.tar.gz
- (1.42 KiB) Downloaded 806 times
- L18L
- Posts: 3479
- Joined: Sat 19 Jun 2010, 18:56
- Location: www.eussenheim.de/
Just tried in JWM: it is built in (and/or pre-configured)!simargl wrote:Don't know about JWM, but in Openbox, you'd only need to install scrot and add this to rc.xmlBert wrote: have often wondered why nobody creates a screenshot tool that actually uses the 'printscreen' key...Code: Select all
<keybind key="Print"> <action name="Execute"> <command>scrot screen-%Y%m%d%H%M%S.png</command> </action> </keybind>
see very last lines of $HOME/.jwm/jwmrc-personal:
Code: Select all
<Key keycode="111">exec:screeny</Key>
</JWM>
Re: Take a Shot! - yet another screenshot utility...
Thank you L18L!L18L wrote:Good to know
if a cursor/pointer needs to be displayed in a screenshot
TaS
German attached
Added to NLS, see the first post.
Good idea, since there are so many of them floating around.a new /usr/local/bin/defaultscreenshot
Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]
[b][color=green]Omnia mea mecum porto.[/color][/b]
I have put TAS-modified in Right click menu utility
I found a bug ?? in TAS. I couldn't save to a FAT32 USB stick,
unless I switched off the date feature. FAT32 needs hyphens in date.
I made a small change to script.
I added a line to check for FAT32 USB sticks
The above code wasn't enough because several USB sticks might
be mounted so I had to make a loop.
I found a bug ?? in TAS. I couldn't save to a FAT32 USB stick,
unless I switched off the date feature. FAT32 needs hyphens in date.
I made a small change to script.
I added a line to check for FAT32 USB sticks
Code: Select all
[ $DATESTAMP = true ] && check_disk
Code: Select all
check_disk () { # if FAT32 disk then colon is changed
fdisk -l > /tmp/fdisk.tmp$$
DISK=`cat /tmp/fdisk.tmp$$ | grep "/dev" | grep "FAT." | cut -f 1 -d ' '`
echo "$DISK" > /tmp/fdisk.tmp$$ # note that there may be several USB sticks
sed -i 's%/dev%/mnt%g' /tmp/fdisk.tmp$$ # substitute dev for mnt
grep -q "$DIRECTORY" /tmp/fdisk.tmp$$ # check for DIRECTORY on the line
if [ "$?" = "0" ];then
SAVENAME="$SAVENAME""_`date +%Y-%m-%d_%H-%M-%S`"
else
SAVENAME="$SAVENAME""_`date +%Y-%m-%d_%H:%M:%S`"
fi
rm -f /tmp/fdisk.tmp$$
}
The above code wasn't enough because several USB sticks might
be mounted so I had to make a loop.
- Attachments
-
- tas-modified-1.2.pet
- modified by don570 for USB stick
- (3.78 KiB) Downloaded 847 times
Last edited by don570 on Mon 19 Aug 2013, 22:22, edited 1 time in total.
Hey Don
Thanks for reporting this! Well, it's obviously a bug, or at least an oversight.
Actually, I decided to completely remove those colons, since there's also a problem with uploading a file, that has a colon in its name, here on the forums.
Now it's just %H%M%S.
First post updated!
Greetings!
Thanks for reporting this! Well, it's obviously a bug, or at least an oversight.
Actually, I decided to completely remove those colons, since there's also a problem with uploading a file, that has a colon in its name, here on the forums.
Now it's just %H%M%S.
First post updated!
Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]
[b][color=green]Omnia mea mecum porto.[/color][/b]
Just in case it helps anyone troubleshooting their prtsc key there is some great background from npierce here:
http://www.murga-linux.com/puppy/viewtopic.php?p=722237
http://www.murga-linux.com/puppy/viewtopic.php?p=722237
Version 1.4:
- output formats: removed - TGA, PCX, PPM; added - GIF
- added options to take sequence of snapshots
- 'Add datestamp' checkbox now adds only date
- new checkbox 'Add timestamp'
- program icon changed (/usr/local/lib/X11/mini-icons/mini-camera.xpm)
- lots of minor fixes
Now, a bit about the new 'sequence' feature.
When you select any of output formats except GIF, then if "Number of frames" is greater than 1, a subfolder will be created in which the sequence of snapshots will be saved.
In case of GIF, the result is already assembled animation.
'Number of frames' can be 1-999
'Frames per second' can be 1-10
So (see the first screenshot) having 250 frames and 10 fps we get 250/10=25 seconds of animation if it's GIF (see the second screenshot) or 250 "loose" images if it's PNG/JPG/BMP/TIF.
Just take seriously the built-in warning regarding huge GIFs - if it's too big, an attempt to view it in image viewer may lock up the system!
The new version was tested only on Slacko-5.7, so heads up about behaviuor in other Puplets are welcomed!
First post updated!
Have fun &
Greetings!
- output formats: removed - TGA, PCX, PPM; added - GIF
- added options to take sequence of snapshots
- 'Add datestamp' checkbox now adds only date
- new checkbox 'Add timestamp'
- program icon changed (/usr/local/lib/X11/mini-icons/mini-camera.xpm)
- lots of minor fixes
Now, a bit about the new 'sequence' feature.
When you select any of output formats except GIF, then if "Number of frames" is greater than 1, a subfolder will be created in which the sequence of snapshots will be saved.
In case of GIF, the result is already assembled animation.
'Number of frames' can be 1-999
'Frames per second' can be 1-10
So (see the first screenshot) having 250 frames and 10 fps we get 250/10=25 seconds of animation if it's GIF (see the second screenshot) or 250 "loose" images if it's PNG/JPG/BMP/TIF.
Just take seriously the built-in warning regarding huge GIFs - if it's too big, an attempt to view it in image viewer may lock up the system!
The new version was tested only on Slacko-5.7, so heads up about behaviuor in other Puplets are welcomed!
First post updated!
Have fun &
Greetings!
- Attachments
-
- Screenshot.png
- (29.95 KiB) Downloaded 897 times
Last edited by SFR on Tue 03 Jun 2014, 21:53, edited 2 times in total.
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]
[b][color=green]Omnia mea mecum porto.[/color][/b]
gifsicle --optimize=3 does that.greengeek wrote:All that in 220kb - nice!
Unoptimized takes ~3.5M.
Btw, if gifsicle is present, optimization is applied automatically.
Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]
[b][color=green]Omnia mea mecum porto.[/color][/b]
- nilsonmorales
- Posts: 972
- Joined: Fri 15 Apr 2011, 14:39
- Location: El Salvador
review spanish translate for new package
Good job!!
- Attachments
-
- tas.mo.tar.gz
- Traduccion en español
- (1.77 KiB) Downloaded 640 times
[b][url=http://nilsonmorales.blogspot.com/]My blog |[/url][/b][b][url=https://github.com/woofshahenzup]| Github[/url][/b]
[img]https://i.postimg.cc/5tz5vrrX/imag018la6.gif[/img]
[img]http://s5.postimg.org/7h2fid8pz/botones_logos3.png[/img]
[img]https://i.postimg.cc/5tz5vrrX/imag018la6.gif[/img]
[img]http://s5.postimg.org/7h2fid8pz/botones_logos3.png[/img]
Doesn't create a gif in Wary 5.5, seems to be a problem with ffmpeg.
Code: Select all
built on Jul 25 2012 04:52:58 with gcc 4.3.4
configuration: --prefix=/usr --cpu=i486 --enable-shared --enable-gpl --enable-nonfree --enable-x11grab --enable-small --enable-runtime-cpudetect --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libdc1394 --enable-libfaac --enable-libfreetype --enable-libmp3lame --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-zlib --enable-postproc --disable-debug --enable-bzlib --enable-version3 --enable-libtheora --enable-swscale
libavutil 51. 9. 1 / 51. 9. 1
libavcodec 53. 8. 0 / 53. 8. 0
libavformat 53. 5. 0 / 53. 5. 0
libavdevice 53. 1. 1 / 53. 1. 1
libavfilter 2. 23. 0 / 2. 23. 0
libswscale 2. 0. 0 / 2. 0. 0
libpostproc 51. 2. 0 / 51. 2. 0
[x11grab @ 0x8064390] device: :0.0+nomouse -> display: :0.0 x: 0 y: 0 width: 1440 height: 900
[x11grab @ 0x8064390] shared memory extension found
Playing WAVE '/usr/share/audio/beep_high.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono
[x11grab @ 0x8064390] Estimating duration from bitrate, this may be inaccurate
Input #0, x11grab, from ':0.0+nomouse':
Duration: N/A, start: 1402056185.943210, bitrate: 1036800 kb/s
Stream #0.0: Video: rawvideo, bgra, 1440x900, 1036800 kb/s, 25 tbr, 1000k tbn, 25 tbc
[buffer @ 0x805fc80] w:1440 h:900 pixfmt:bgra tb:1/1000000 sar:0/1 sws_param:
[buffersink @ 0x805fd10] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out'
Impossible to convert between the formats supported by the filter 'auto-inserted scaler 0' and the filter 'out'
Error opening filters!
gifsicle:<stdin>: empty file
[b]Carolina:[/b] [url=http://smokey01.com/carolina/pages/recent-repo.html]Recent Repository Additions[/url]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]
Ok, thanks for the info.Geoffrey wrote:Doesn't create a gif in Wary 5.5, seems to be a problem with ffmpeg.
I just checked TAS vs. Wary in VBox - the problem was with PIX_FMT, which was set to pal8 for GIF.
Now for all formats it's just rgb24, like it was before.
Try tas-1.5, should be ok now.
Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]
[b][color=green]Omnia mea mecum porto.[/color][/b]
Thanks works a treat, an option to loop the gif would be nice, maybe even scale the image.SFR wrote:Ok, thanks for the info.Geoffrey wrote:Doesn't create a gif in Wary 5.5, seems to be a problem with ffmpeg.
I just checked TAS vs. Wary in VBox - the problem was with PIX_FMT, which was set to pal8 for GIF.
Now for all formats it's just rgb24, like it was before.
Try tas-1.5, should be ok now.
Greetings!
gifsicle works great at reducing the size, the original gif was 46.1 MB, down to 205.4 kB.
Code: Select all
ffmpeg -s $(xrandr | awk '/, current /{ gsub(/\,/,""); print $8"x"$10}') -f x11grab -r 10 -i :0.0 -b 500k -pix_fmt rgb24 -y -loop_output 0 -vf scale=640:480 output.gif
Code: Select all
gifsicle -V -i --optimize=3 --conserve-memory < /root/output.gif > /root/output2.gif
[b]Carolina:[/b] [url=http://smokey01.com/carolina/pages/recent-repo.html]Recent Repository Additions[/url]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]