Take a Shot! - yet another screenshot utility...

Paint programs, vector editors, 3d modelers, animation editors, etc.
Message
Author
User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#41 Post by SFR »

an option to loop the gif would be nice
Hmm, here in Slacko-5.7 GIFs are looped (∞) by default and -loop_output isn't recognizable anymore in ffmpeg-2.0.x (seems it's been deprecated years ago).
-loop works fine, but not with Wary's ffmpeg-0.8.12...
I'll include some workaround in future release, probably sth like:
[ "`ffmpeg --help 2>&1 | grep 'loop_output'`" ] && loop_output || loop
maybe even scale the image
Perhaps, common for all output formats, option "Scale to:" would be a useful addition indeed, I have to rethink that...

Thanks again for the feedback &
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]

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#42 Post by SFR »

Version 1.6:

- fixed GIF looping issue in older versions of ffmpeg (thanks to Geoffrey)

- added "Scale (%)" option - in percents, so aspect ratio is preserved.
Range is 25%-100%.

- added command-line option "quick", which instantly takes a snapshot of the entire screen (incl. mouse cursor) and saves Quickshot.png to $HOME dir.
Usefull for binding with e.g. PrtSc key.
Invocation: tas quick

- handling of ffmpeg errors is now internal - no more logging to the console, but it's possible to view the log via xmessage (if something went wrong).

- destination directory doesn't have to be already there, it will be created if doesn't exist

- dir & filenames can contain any (hopefully) characters now, except % (which is used by ffmpeg to enumerate output files) and, only for filenames, / character, which will be replaced with _ char.

Btw, strange thing I noticed, while testing in Wary, Precise, Lucid and Carolina, is that resulting GIFs are being played ~1.5x faster than they should, regardless of resolution, fps, anything.
For example, having 10fps we'll get GIF with a 6ms delay, but should be 100/10=10ms.
Dunno why's that, probably too old ffmpeg, but fortunately I managed to fix that thanks to gifsicle, by reapplying the correct delay.

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]

User avatar
nilsonmorales
Posts: 972
Joined: Fri 15 Apr 2011, 14:39
Location: El Salvador

Spanish .mo file 1.6

#43 Post by nilsonmorales »

Saludos.
Attachments
tas-1.6.mo.tar.gz
Locales en español para tas-1.6
(1.87 KiB) Downloaded 652 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]

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#44 Post by SFR »

Thanks again, tas-NLS-1.6.pet 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]

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#45 Post by greengeek »

Amazing. This is fantastic SFR. Works perfectly in my derivative of slacko5.6
Love the fact that it doesn't overwrite previous screenshots (my usual annoying trick). Such an easy way to capture activity on the desktop. Great stuff.

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#46 Post by SFR »

greengeek wrote:Amazing. This is fantastic SFR. Works perfectly in my derivative of slacko5.6
Love the fact that it doesn't overwrite previous screenshots (my usual annoying trick). Such an easy way to capture activity on the desktop. Great stuff.
Thanks Greengeek, I'm glad you like it! :)

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]

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

franch translation updated

#47 Post by charlie6 »

Hi SFR !
thanks for the 1.6 update !
here is the french locale udpated (merci Musher0 pour la traductiob initiale ! :)
greetings
Charlie
Attachments
MoManager-fr_BE-tas-1.6.tar.gz
(2.29 KiB) Downloaded 390 times

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#48 Post by SFR »

Thank you, NLS pet updated.

Btw, there were fr & fr_BE dirs and I included tas.mo from the latter, because I noticed it has better text alignment for 'GIF Warning'. Is that ok?

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]

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

#49 Post by charlie6 »

Hallo SFR !
schönen Gutentag !
SFR wrote:...Btw, there were fr & fr_BE dirs and I included tas.mo from the latter, because I noticed it has better text alignment for 'GIF Warning'. Is that ok?
It is OK indeed, the usr/share/locale/fr_BE/LC_MESSAGES/tas.mo is the latest update.
Yehhh...! Now having a look inside the MoManager-fr_BE-tas-1.tar.gz, it surprises me to find a tas.mo file inside a fr_BE folder besides the fr one. I did not check that ...sorry :oops: .

I thought MoMonager just ignored that «secundary fr_BE» locale as, till now, i have gotten only the fr one when running MoManager. Now i discover MM to make a fr_BE folder ... :shock: when choosing fr_BE upon MM start.

For further translations, i'll care to selet «fr»

Tschüsss !
Charlie

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

Re: Take a Shot! - yet another screenshot utility...

#50 Post by Sylvander »

SFR wrote: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
I was ready to give up on "Take a Shot!"...
Then I happened upon this thread...
Was going to post a question, but decided to read the 1st post before doing that...
And what-do-you-know! There was the answer. :D

Would be better if this little glitch didn't exist.

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#51 Post by SFR »

@Sylvander: yeah, I wish it was simple to fix this "glitch", but the problem is that TAS relies only on what's available in Puppy OOTB, thus the very fact, that it's possible to select a region at all, is only a result of clever use of xwininfo + getcurpos.
You can see by yourself how it's been done, just run this in terminal:

Code: Select all

xwininfo >/dev/null; getcurpos; xwininfo >/dev/null; getcurpos
However the info from the 1st post should be builtin and so it is (as a tooltip) in v1.7.

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]

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

#52 Post by 01micko »

Did you update for newer woof icons? (menu and gui- can be integrated easy enough so it's compatible with legacy pups - think pinstall.sh at least for menu)

I meant to post this earlier today.. but.. :o
Puppy Linux Blog - contact me for access

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#53 Post by SFR »

You mean /usr/share/pixmaps/puppy/photocamera.svg instead of /usr/local/lib/X11/mini-icons/mini-camera.xpm ?

If so, I'll do it and upload later today.

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]

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

#54 Post by 01micko »

SFR wrote:You mean /usr/share/pixmaps/puppy/photocamera.svg instead of /usr/local/lib/X11/mini-icons/mini-camera.xpm ?

If so, I'll do it and upload later today.

Greetings!
:wink:
Puppy Linux Blog - contact me for access

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#55 Post by SFR »

Ok, already done & uploaded (didn't bump the version number though).
pinstall.sh looks like this (EDIT: corrected 5 min later), so should be fine with woof, I believe:

Code: Select all

#!/bin/sh

DOTDESKTOP="/usr/share/applications/tas.desktop"
ICON_LEGACY="/usr/local/lib/X11/mini-icons/mini-camera.xpm"
ICON_MODERN="/usr/share/pixmaps/puppy/photocamera.svg"

if [ "`pwd`" != "/" ]; then	# woof
  DOTDESKTOP=".${DOTDESKTOP}"
  [ -f ".${ICON_MODERN}" ] && ICON="Icon=${ICON_MODERN}" || ICON="Icon=${ICON_LEGACY}"
else
  [ -f "${ICON_MODERN}" ] && ICON="Icon=${ICON_MODERN}" || ICON="Icon=${ICON_LEGACY}"
fi

sed -i "s#^Icon=.*#$ICON#" "$DOTDESKTOP"
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]

User avatar
nilsonmorales
Posts: 972
Joined: Fri 15 Apr 2011, 14:39
Location: El Salvador

Locales en español

#56 Post by nilsonmorales »

udated spanish locale
Attachments
MoManager-es-tas-1.7.tar.gz
(2.29 KiB) Downloaded 347 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]

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#57 Post by SFR »

Thanks, NLS .pet 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]

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

#58 Post by charlie6 »

Hi SFR,
here is the french tas.mo update for version 1.7
many thanks again :D
charlie
ps: uuuh!...that's my 1000th post.....champain **** :P
Attachments
tas-1.7_fr.tar.gz
(2.03 KiB) Downloaded 370 times

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#59 Post by SFR »

charlie6 wrote:here is the french tas.mo update for version 1.7
Thanks, NLS reuploaded.
charlie6 wrote:ps: uuuh!...that's my 1000th post.....champain **** :P
Congratulations! :)

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]

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#60 Post by SFR »

Minor update, version 1.8:
- Added "Toggle extra options" togglebutton, which shows/hides "Number of frames" & "Frames per second" options
- Settings are retained also if TAS window has been closed without taking a screenshot
- Some minor fixes & changes

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]

Post Reply