Screeny - screen capture utility

Paint programs, vector editors, 3d modelers, animation editors, etc.
Message
Author
User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

Screeny - screen capture utility

#1 Post by 01micko »

This is something I knocked together for my own use at the commandline, but it was simple enough to write a small gtkdialog GUI and share..

Screeny

Language support thread

Like the name?

It does what it says, takes a screeny, either fullscreen or window, for fullscreen there is a customisable delay setting that is remembered.

It does have a dependency not included in Puppy, it's only small..

xwd

This is included with slackware/debian so if running Slacko or dpup-Exprimo please search your PPM for "xwd". Or if you can't find it the reports are that the Wary/Racy version works fine. (edited 120224)

For Racy/Wary/Lupu you can use the attached xwd.

Enjoy!

(sorry, no screen shot :lol: )

EDIT
0.8 posted
-bugfix in "waiting.." splash, thanks Tman,L18L
-added NLS ar (thanks BDX) and fr (thanks charlie6)
0.7 posted
-added gettext for localisation. Many thanks to L18L
-consolidated all code to one script, I thought that would be easier and probably smaller for gettext
-bugfix for window shots resizing if smaller than 600px, again L18L
-added "noarch" to the extension, only "xwd" is arch dependent
--NOTE: I have removed all the older versions.
0.6 posted
-changed the delay from an entry box to comboboxtext and hard coded delays from 1-10 to prevent the use of insane values in the entrybox
0.5 posted
-rearranged the gui, all checkboxes now in "File" menu under Preferences
-added option to open in defaultpaint (usually mtpaint, but can be gimp or whatever you set as defaultpaint)
-added simple help file and about file.
-windowed shots get the forum compat treatment if chosen too, be aware that small windows get enlarged, but if you don't want that turn off forum compatibility
NOTE: your settings will be removed on installation, easy to reset
0.4 posted
-forum compatibility mode for fullscreen only, thanks to Flash
0.3 posted 120731
-added frame to window shot, thanks to CatDude
0.2 posted
-removed duplicate code
-added naming
-bugfix, fullscreen splash was running concurrent to main function.
Attachments
screeny-0.8-noarch.pet
NEW added gettext for localisation.
(3.03 KiB) Downloaded 1686 times
screeny_NLS-0.8-noarch.pet
Locales for screeny, "de" , "es", "ru", "ar", "fr" included
(6.41 KiB) Downloaded 1521 times
xwd-1.0.2-racy-i486.pet
(11.33 KiB) Downloaded 1464 times
xwd_DOC-1.0.2-racy-i486.pet
(2.46 KiB) Downloaded 1340 times
Last edited by 01micko on Sun 21 Oct 2012, 20:48, edited 12 times in total.
Puppy Linux Blog - contact me for access

Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#2 Post by Sylvander »

1. Does it...
(a) Include the cursor?

(b) Save to a location specified by the user?

(c) In a filetype specified by the user?

majorfoo
Posts: 448
Joined: Mon 07 Mar 2011, 22:27
Location: Wish I knew

#3 Post by majorfoo »

Sylvander wrote:1. Does it...
(a) Include the cursor?

(b) Save to a location specified by the user?

(c) In a filetype specified by the user?
Just d/l and tried it out.

a) Did not include the cursor in the screenshot

b) Saved to /root with name of capturexxxx.png

c) FIletype provided by program

It is a small program and gives you either a full screen or the window you specify by hovering mouse over the window.

Nice--

sheldonisaac
Posts: 902
Joined: Mon 22 Jun 2009, 01:36
Location: Philadelphia, PA

Re: Screeny - screen capture utility

#4 Post by sheldonisaac »

01micko wrote: xwd

This is included with slackware/debian/ubuntu so if running Slacko, dpup-Exprimo or Lupu please search your PPM for "xwd".

For Racy/Wary you can use the attached xwd.
May I ask for some help?

I have Lucid Puppy 5.2.8-004.

I tried to configure package manager to include ubuntu-lucid-main, and then searched for xwd

Not found.

Thank you.

majorfoo
Posts: 448
Joined: Mon 07 Mar 2011, 22:27
Location: Wish I knew

Re: Screeny - screen capture utility

#5 Post by majorfoo »

sheldonisaac wrote:
01micko wrote: xwd

This is included with slackware/debian/ubuntu so if running Slacko, dpup-Exprimo or Lupu please search your PPM for "xwd".

For Racy/Wary you can use the attached xwd.
May I ask for some help?

I have Lucid Puppy 5.2.8-004.

I tried to configure package manager to include ubuntu-lucid-main, and then searched for xwd

Not found.

Thank you.
I downloaded the screeny. pet and the xwd provided by 01micko in this post and it works in my full install of puppy 5.2.8-004. I am posting from this version and have captured both full and window with no problems.
I tried in slacko-5.3.2.4 and it works there also

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#6 Post by darkcity »

yep it works on 5.29 too, just using the racy xwd.pet

however, i loaded all three ubuntu repositories main, multi and uni - xwd not to be found -

Does this mean it isn't in the repositories - could have been added after lucid?

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#7 Post by Semme »

Search <extended> x11-apps.

User avatar
MinHundHettePerro
Posts: 852
Joined: Thu 05 Feb 2009, 22:22
Location: SE

#8 Post by MinHundHettePerro »

Nice one :).

And small, at that.

In regard to the comments above about including the cursor and mouse pointer - yes, please, but this feature is seemingly hard to implement, judging from all the screen-shooters out there ...

Cheers /MHHP
[color=green]Celeron 2.8 GHz, 1 GB, i82845, many ptns, modes 12, 13
Dual Xeon 3.2 GHz, 1 GB, nvidia quadro nvs 285[/color]
Slackos & 214X, ... and Q6xx
[color=darkred]Nämen, vaf....[/color] [color=green]ln -s /dev/null MHHP[/color]

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#9 Post by 01micko »

Hi guys

Thanks for reports.

Sorry about that ubuntu thing , I'll edit the main post.

I am not going to add features, I made this for myself and decided to share.. adding "features" makes bloat and introduces potential for bugs, This does what it does, and it's very simple to edit the image in mtpaint, gimp or whatever.
I may consider including the user's choice for naming the file.

Have fun :P

-EDIT

Ok, I posted v0.2 and added naming.. if you must save in other than your $HOME directory you should be able to add any subdirectory as part of the entry. For example:

Code: Select all

my-documents/my-screeny
will save as $HOME/my-documents/my-screeny.png. Don't add the file extension.
Also fixed a couple of small bugs.

see up page
Puppy Linux Blog - contact me for access

Jasper

#10 Post by Jasper »

Hi o1micko.

This is to thank you for screeny and to test:

if I can post a .png file here.
Attachments
26433.png
(61.88 KiB) Downloaded 4589 times

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#11 Post by 01micko »

0,3 is posted, frame of window is now captured, thanks to CatDude

see main post
Attachments
capture31993.png
(6.69 KiB) Downloaded 4042 times
Puppy Linux Blog - contact me for access

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#12 Post by Flash »

I don't see how you can say Screeny is more functional than mtPaint. True, Screeny can capture just an open window, which could be very handy, but mtPaint can crop and/or scale any screenshot to 600 pixels wide, so the forum will show it, then save it as a jpeg. :)
Attachments
capture8468.jpg
(35.18 KiB) Downloaded 3803 times

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#13 Post by 01micko »

Flash wrote:mtpaint
"mtpaint -s" :wink: , which is the engine behind the mtpaintsnapshot.sh in most Puppies.

Maybe I could add a checkbox to auto scale full screen snaps to 600px wide.. I think you would like that feature and it shouldn't create much bloat or introduce bugs.

--------------------------------------------

Later, ok now has a forum compatibility checkbox :)
Attachments
capture937.jpg
(30.83 KiB) Downloaded 3939 times
Puppy Linux Blog - contact me for access

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#14 Post by Flash »

Very nice. Quick, too. :)

In that shot, if you had chosen "Window", which window would Screeny choose?

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#15 Post by 01micko »

I'm glad you asked that Flash.

The cursor turns into a cross hair looking cursor and you just hover over the window you want and click.

Cheers
Puppy Linux Blog - contact me for access

User avatar
CatDude
Posts: 1563
Joined: Wed 03 Jan 2007, 17:49
Location: UK

#16 Post by CatDude »

Hi
Flash wrote:In that shot, if you had chosen "Window", which window would Screeny choose?
01micko wrote:I'm glad you asked that Flash.

The cursor turns into a cross hair looking cursor and you just hover over the window you want and click.
Just make sure that the window to be captured IS NOT obscured (behind) any others,
otherwise this will happen: (see pics)

CatDude
.
Attachments
psip-obscured.png
(53.33 KiB) Downloaded 1096 times
psip-window-captured.png
(20.13 KiB) Downloaded 1034 times
[img]http://www.smokey01.com/CatDude/.temp/sigs/acer-futile.gif[/img]

User avatar
`f00
Posts: 807
Joined: Thu 06 Nov 2008, 19:13
Location: the Western Reserve

#17 Post by `f00 »

Mmhm, including the pointer in a cap (even with a fancy full-service-cap+ wine-app like FSCap) can be tricky in Puppy .. it's all about the difference in how the pointer is drawn and by what, how it relates to the rest of the draw and so on.

Ridiculously easy (and the pointer image shows as expected without any special consideration for mask, etc) with fscap in native win32..
Attachments
fscappointer.png
fscap of pointer in win32 (sry about that :lol: )
(1.29 KiB) Downloaded 1018 times

User avatar
Monsie
Posts: 631
Joined: Thu 01 Dec 2011, 07:37
Location: Kamloops BC Canada

Screeny - screen capture utility

#18 Post by Monsie »

Hi Mick,

I have installed Screeny-0.4 on my Wary desktop, and although it works very well as is, I would like to have your app work with my PrtScr key --like I have been able to do with mtpaintsnapshot. While I am able to configure Screeny to run when using the PrtScr key, it does not capture and save a screenshot, despite appearing to go through the motions of doing so... --and I have no idea why. :?

It seems to me that once I have set the key binding properly in JWM, it should just work, and therefore no additional lines of code for your scripts are necessary... --any ideas, suggestions?

Thanks in advance,
Monsie
My [u]username[/u] is pronounced: "mun-see". Derived from my surname, it was my nickname throughout high school.

aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

#19 Post by aragon »

Monsie, have you installed xwd?

Aragon

User avatar
Monsie
Posts: 631
Joined: Thu 01 Dec 2011, 07:37
Location: Kamloops BC Canada

Screeny - screen capture utility

#20 Post by Monsie »

aragon,

Thanks, indeed I did install xwd. When I indicated that Screeny
works very well as is
I meant that it runs fine from the desktop menu when I use the mouse.

Further, the fact that I am unable to get Screeny to work with my keyboard at the moment is not a deal breaker for me... rather, it's a preference and also a curious puzzle that I would like help with solving, and in the process I am sure that I will learn some things along the way...

Monsie
My [u]username[/u] is pronounced: "mun-see". Derived from my surname, it was my nickname throughout high school.

Post Reply