Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 23 Apr 2014, 14:02
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Take a Shot! - yet another screenshot utility...
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [30 Posts]   Goto page: 1, 2 Next
Author Message
SFR


Joined: 26 Oct 2011
Posts: 882

PostPosted: Fri 22 Feb 2013, 13:15    Post subject:  Take a Shot! - yet another screenshot utility...  

Yeah, I know - there's a lot of them already and it would be complete nonsense to write another, but this one was made due to specific need - to include mouse cursor into screenshot.
I found out that ffmpeg has such ability and it's already in many Puppies, so no external tools are required.

The interface isn't beautiful, but (hopefully) intuitive in use; just keep in mind a couple of things:
- selecting region is a bit unusual: click on top-left corner of desired area and release mouse button, then click again on bottom-right corner
- cursor won't be included into screenshot (and additionally ffmpeg may behave weird in some Puppies) if you have only 16bit color depth, must be 24bit (you can change it via xorgwizard)

Requirements: Bash, Gtkdialog, xmessage, ffmpeg, xwininfo, getcurpos, awk, tr

I tested it in: Slacko-5.4 (Compiz) + briefly, using VBox, in Slacko-5.4.0.3 (JWM), Lupu-528 (Openbox), Precise-5.4.2 (JWM) and Akita-14 (JWM/Xorg; ffmpeg segfaults with XVesa).

PS. I wrote this tool primarily for myself and I don't know if ffmpeg is really wise choice for such a task, but so far works nice for me.
Anyway, I can't guarantee it'll work flawlessly in all cases. Wink

EDIT: D'oh! I forgot to add double quotes in one place to properly pass filename with spaces to defaultimageeditor. Reuploaded after 5 downloads. Sorry.
_______________

Changelog:

Version 1.1:
1.added dedicated icon (`f00).
2. removed "Open in default image..." checkbox from the main window.
3. added a new window that pops up after taking a shot, with the following options:
- View (via defaultimageviewer - usually Viewnior)
- Edit (via defaultimageeditor - usually MTPaint)
- Continue (go back to the main window)
- Exit
4. Some minor improvements.

Version 1.2:
- i18n (gettext)

Version 1.3:
- bugfix: filename with a colon in its name won't save onto FAT partition nor this forum (thanks to don570)

______________

tas_NLS-1.3.pet contains the following translations:
- Polish (me)
- Spanish (nilsonmorales & vicmz)
- French (musher0)
- Dutch (Bert)
- Portuguese (vicmz)
- Italian (vicmz)
- German (L18L)

Have fun & Greetings!
tas_NLS-1.3.pet
Description  Langpack for tas-1.3 (pl, es, fr, nl, pt, it, de)
pet

 Download 
Filename  tas_NLS-1.3.pet 
Filesize  3.96 KB 
Downloaded  221 Time(s) 
tas-1.3.pet
Description  Take a Shot! - version 1.3
pet

 Download 
Filename  tas-1.3.pet 
Filesize  3.64 KB 
Downloaded  240 Time(s) 
tas_NLS-1.2.pet
Description  Langpack for tas-1.2 (pl, es, fr, nl, pt, it, de)
pet

 Download 
Filename  tas_NLS-1.2.pet 
Filesize  3.95 KB 
Downloaded  256 Time(s) 
tas-1.2.pet
Description  Take a Shot! - version 1.2
pet

 Download 
Filename  tas-1.2.pet 
Filesize  3.44 KB 
Downloaded  282 Time(s) 
tas-1.1.pet
Description  Take a Shot! - version 1.1
pet

 Download 
Filename  tas-1.1.pet 
Filesize  3.24 KB 
Downloaded  318 Time(s) 
tas-1.0.pet
Description  Take a Shot! - version 1.0
pet

 Download 
Filename  tas-1.0.pet 
Filesize  2.78 KB 
Downloaded  369 Time(s) 
Screenshot.png
 Description   Screenshot was made using "Take a Shot!" ;))
 Filesize   25.15 KB
 Viewed   1207 Time(s)

Screenshot.png


_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.

Last edited by SFR on Tue 20 Aug 2013, 06:41; edited 6 times in total
Back to top
View user's profile Send private message 
Eyes-Only


Joined: 10 Aug 2006
Posts: 1046
Location: La Confederation Abenaquaise

PostPosted: Sat 23 Feb 2013, 16:19    Post subject:    

Thanks for making this SFR. True, as you've said there are already many of these floating about. But what I like about yours is the simplicity and the way it's set up. It has all the needed features I require - and none of the wasted fluff! Cool Too many times they're either far too simplistic or far too featureful. Yours is the perfect balance for all of my screenshot needs.

Thank you for creating and likewise sharing it! Very much appreciated by this fellow Puppian.

Cheers/Amicalement,

Eyes-Only
"L'Peau-Rouge d'Acadie"

_________________
*~*~*~*~*~*
Proud user of LXpup and 3-Headed Dog. Cool
*~*~*~*~*~*
Back to top
View user's profile Send private message 
`f00


Joined: 06 Nov 2008
Posts: 809
Location: the Western Reserve

PostPosted: Mon 25 Feb 2013, 01:24    Post subject:
Subject description: 2nd that
 

Cool , my fluff fscap in wine doesn't quite do the cursors in linux - like Eyes-Only says, "perfect balance" in a good ui.
some 'pointers' @103k

(much prefer tas to the stock "screeny" on racy 5.4.91) - here's a dedicated icon..
tas.xpm
Description  /usr/local/lib/X11/mini-icons and Icon=tas.xpm in dotdesktop file
xpm

 Download 
Filename  tas.xpm 
Filesize  429 Bytes 
Downloaded  323 Time(s) 

Last edited by `f00 on Fri 08 Mar 2013, 14:11; edited 2 times in total
Back to top
View user's profile Send private message 
Pelo


Joined: 10 Sep 2011
Posts: 2291
Location: Mer méditerrannée (1 kms°)

PostPosted: Mon 25 Feb 2013, 02:57    Post subject: Cursor on the screenhot : good idea !
Subject description: Sure there are a lot of tools
 

Sure there are a lot of tools : here pupsnap

mtPaint make screenshots too.
File, new, screenshot.
or file, action, delayed screenshot
Is'nt it easy to affect screenshot keypad with this job ? Sometimes, i copy the program icon in the task bar (from usr/share/applications)
pupsnap.png
 Description   
 Filesize   34.84 KB
 Viewed   585 Time(s)

pupsnap.png

delayed.jpg
 Description   
 Filesize   18.53 KB
 Viewed   583 Time(s)

delayed.jpg


Last edited by Pelo on Fri 28 Jun 2013, 04:01; edited 3 times in total
Back to top
View user's profile Send private message Yahoo Messenger 
SFR


Joined: 26 Oct 2011
Posts: 882

PostPosted: Mon 25 Feb 2013, 08:31    Post subject:  

Thanks guys! Smile

And it's good to know that it works properly also for "external" world.

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
Cadejo

Joined: 29 Jun 2009
Posts: 52

PostPosted: Tue 14 May 2013, 12:17    Post subject:  

This is awesome!!!!

I was using easy shot, but this is certainly easier!
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 882

PostPosted: Wed 22 May 2013, 12:06    Post subject:  

@Cadejo: Thanks, I'm glad you like it!

@`f00: Thanks for the icon, I haven't noticed it before!

New version (1.1) has been uploaded; see the first post for details.
Screenshots below...

I hope 1.0's simplicity/usability has been preserved in the new version..? Wink

Greetings!
Screenshot1.png
 Description   TAS-1.1
 Filesize   24.96 KB
 Viewed   887 Time(s)

Screenshot1.png

Screenshot2.png
 Description   Additional window...
Note: In some Puppies xmessage won't display window decorations, so YMMV.
 Filesize   12.14 KB
 Viewed   900 Time(s)

Screenshot2.png


_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 3810
Location: Gatineau (Qc), Canada

PostPosted: Sun 23 Jun 2013, 05:05    Post subject:  

Good morning, SFR.

Please find attached a French translation* of your very well made "Take A Shot!" utility.

Best regards.

musher0

~~~~~~~~~~~~~
* Corrected version is here: http://murga-linux.com/puppy/viewtopic.php?p=709832&sort=lastpost#709832

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)

Last edited by musher0 on Sun 23 Jun 2013, 20:23; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
SFR


Joined: 26 Oct 2011
Posts: 882

PostPosted: Sun 23 Jun 2013, 12:49    Post subject:  

Hey Musher0, thank you for translation.
FYI: you missed two spots @ lines 193 and 235. Wink
However, I just gettext'ed TAS, so you can use MoManager now, if you'd like, then I could add your translation to tas_NLS.pet.
From my side I made PL.

First post updated.

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
nilsonmorales


Joined: 15 Apr 2011
Posts: 420
Location: El salvador

PostPosted: Sun 23 Jun 2013, 14:36    Post subject: Spanish locale  

check first please, .mo and .po files add
MoManager-es-tas-1.2.tar
Description 
tar

 Download 
Filename  MoManager-es-tas-1.2.tar 
Filesize  10.5 KB 
Downloaded  228 Time(s) 
Back to top
View user's profile Send private message MSN Messenger 
SFR


Joined: 26 Oct 2011
Posts: 882

PostPosted: Sun 23 Jun 2013, 15:27    Post subject:  

Thanks, added to tas_NLS-1.2.pet.

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
vicmz

Joined: 15 Jan 2012
Posts: 1016

PostPosted: Sun 23 Jun 2013, 17:11    Post subject:  

Hello everyone

Good job Nilson! Very Happy
I have attached a slightly reviewed version of your Spanish locale.

Thanks for this app, SFR. Now I can easily explain (without heavier programs) why I often translate 'cursor' as 'puntero' (the mouse pointer, see pictures below).
tas_es.tar.gz
Description 
gz

 Download 
Filename  tas_es.tar.gz 
Filesize  1.7 KB 
Downloaded  239 Time(s) 
image-9.png
 Description   
 Filesize   33.7 KB
 Viewed   725 Time(s)

image-9.png

mashup.jpg
 Description   
 Filesize   39.29 KB
 Viewed   723 Time(s)

mashup.jpg


_________________
OpenboxPlus|OB-Puppy|Puppy en español
Back to top
View user's profile Send private message 
Bert


Joined: 30 Jun 2006
Posts: 915

PostPosted: Sun 23 Jun 2013, 17:57    Post subject:  

and Dutch translation Wink

(a bit off-topic: I have often wondered why nobody creates a screenshot tool that actually uses the 'printscreen' key...just one key to hit and presto...probably more difficult to implement than I imagine )

TAS works very well though!

Thank you SFR Cool
MoManager-nl-tas-1.2.tar.gz
Description 
gz

 Download 
Filename  MoManager-nl-tas-1.2.tar.gz 
Filesize  1.41 KB 
Downloaded  229 Time(s) 

_________________


Back to top
View user's profile Send private message 
nilsonmorales


Joined: 15 Apr 2011
Posts: 420
Location: El salvador

PostPosted: Sun 23 Jun 2013, 18:29    Post subject:  

thanks vicmz , you are correct my friend
Back to top
View user's profile Send private message MSN Messenger 
vicmz

Joined: 15 Jan 2012
Posts: 1016

PostPosted: Sun 23 Jun 2013, 18:55    Post subject:  

Portuguese and Italian attached at the end of this message. Very Happy

Bert wrote:
a bit off-topic: I have often wondered why nobody creates a screenshot tool that actually uses the 'printscreen' key...just one key to hit and presto...probably more difficult to implement than I imagine


Not really off-topic, I think. I had the same question, too. Until Argolance developed a screenshot utility for ToOpPy that does use the Print Screen key, so our screenshot experts (01micko for screeny, SFR for TAS, Radky for PupSnap) could ask Argolance how he did it, if they want to include this feature in their utilities.

***EDIT***
Portuguese locale reviewed
tas_pt.png
 Description   
 Filesize   45.32 KB
 Viewed   730 Time(s)

tas_pt.png

tas_pt.tar.gz
Description 
gz

 Download 
Filename  tas_pt.tar.gz 
Filesize  1.72 KB 
Downloaded  242 Time(s) 
tas_it.tar.gz
Description 
gz

 Download 
Filename  tas_it.tar.gz 
Filesize  1.71 KB 
Downloaded  238 Time(s) 
tas_it.png
 Description   
 Filesize   21.63 KB
 Viewed   683 Time(s)

tas_it.png


_________________
OpenboxPlus|OB-Puppy|Puppy en español

Last edited by vicmz on Sun 23 Jun 2013, 20:49; edited 1 time in total
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [30 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0905s ][ Queries: 13 (0.0154s) ][ GZIP on ]