Forum › Forums › antiX-development › Graphics › Light weight screenshot and annotate combo
- This topic has 315 replies, 10 voices, and was last updated Aug 23-5:44 pm by BobC.
-
AuthorPosts
-
June 3, 2021 at 10:24 pm #60904Moderator
Brian Masinick
::Nice job! The system I happened to be on when I took a look at your video didn’t have the sound turned on correctly, but I was able to turn on closed captions and I could read the dialogue from the screen. I’m not an expert, by any means, and I did not examine everything, but since I’ve tried it out and I’ve viewed a video, I believe that we are getting close to something that can be considered a usable tool.
Hopefully others with a need – and better use cases / reasons to use the tool will do some good testing so that this will end up being an excellent, lightweight addition to our application portfolio. Keep up the good work!
--
Brian MasinickJune 4, 2021 at 12:34 am #60914ModeratorBobC
::I spent half of my lunch time today trying to figure out where to type in the text, LOL
June 4, 2021 at 6:00 am #60929ModeratorBobC
::Ile,
1. I don’t know what you mean by “change mtpaint command word resize to the word scale”.
I finally figured out what you meant, and changing it to scale fixed the -b issue as well, so I added it back in Window mode only. It was cutting off the lower right corner of the image.
I think its right now, could you see if it still has problems in Window mode, and if it does, please tell me what you are running when the problems occur so I can try to duplicate it? If necessary, I can remove the -b when a conflicting desktop configuration is running to make it work as best we can for everyone.
June 4, 2021 at 7:09 pm #60958Member
ile
::Hello BobC and Everyone
tested on antiX_full buster
Screenshot version BobC0603
Combined number for capture Quality = 89 (?)
90 pushes png a notch so best jpg below 90 is 89 (?)
keying 77, 88, 99 is optimizing (?)antixscreenshotBb603i. s,h as zip
June 4, 2021 at 11:36 pm #60993ModeratorBobC
::Ile, I think the list is already pretty long.
In addition, the Dev at MTPaint made every feature he didn’t already have appear for us, presto.
If someone wants to use a different program, all the need to do is make it their default for pictures in Preferred Applications, and that’s what the Open option will run instead of Mirage.
But if there is one that is really special, I don’t mind adding one more.
That said anticapitalista makes the final decision, as I’m trying to make the enhanced utility a feature he wants in antiX.
June 5, 2021 at 1:51 am #60999Member
ile
::Hello BobC and everyone
shorten the list?
remove libreoffice. I would like to have it if it opened in writerWEB with file type save preferences, but it only opens in draw with limited formats. no reason to have it unless it is your printer set-up. [I substitute rgbpaint for libreoffice so you recognize it not needed)(?)remove send to printer. have a browser handle the printer set-up. [I substitute browser for printer so you recognize not needed.)(?)
remove gimp. [I substitute pinta for gimp so you recognize it not needed or switch to favorite. likely an added package.)(?)
so I added one ?
you got me. Sharing
sample data example input of feh.Choose what You think the best.
June 5, 2021 at 11:38 am #61011ModeratorBobC
::Ile, Whether the glass is half empty or half full is all in your perceptions…
What I’m saying is it’s getting cluttered. And I’m adding too much hard code. The more hard code we add, the more cluttered and less flexible it gets. The way I see it, the hard coded items should be limited to things that come with antiX base or full, or the Package Installer.
I’m not smart enough to write some routine that parses a list for somewhere I don’t know to find all the programs that can open a jpg or some other file type, and then offers to open the file with any one of those programs. But what if we were to call a program that COULD do that, and do it flexibly, so that if you decided rgbpaint and pinta were your favorite pic view/editing programs, and added them to antiX, that our screenshot program would offer to or even default to being able to use them.
working from those thoughts/concepts/constraints, anything that is a system default, available to select from Preferred Applications, should be immediately available for our popup Actions dialog, that way the main applications antiX comes with are there, ready to work with the screenshot, and if the user changes the defaults or adds some other program and changes the defaults, then their choices will become the defaults.
Ok, one thing we missed is: What about all those OTHER programs I was testing out, in my effort to find the BEST program for me?
Yeah, that one is for YOU, LOL. The answer is add an option to Open the folder with your selected default File Manager, and you just right click the file or thumb, and all the programs you have installed that have been defined as able to open that file appear and can be used to open it. What about making the default directory to store them “~/Screenshots” instead of “~/Pictures” so we don’t have an endless list to open by default?
Brian, Moddit, Skidoo, Dave, Anti, your input would also be helpful for these ideas. LOL, you might have benefit of seeing mistakes before that we might avoid as result of your experience and input…
June 5, 2021 at 11:41 am #61012ModeratorBobC
June 5, 2021 at 1:03 pm #61016Moderator
Brian Masinick
::@BobC: Both of you have been doing some good work and I appreciate the work, thought and effort.
Like you, I agree that adding more and more features is a risky thing if there is any intention of making it into an official antiX tool.
Keep it lean, simple, easy to understand, support and use.
--
Brian MasinickJune 5, 2021 at 3:01 pm #61020ModeratorBobC
::I’ve got a revised version where I did what I said above and added an install script in progress, so hold off until I post it if you plan to try/test the program.
I think its cleaner using the system defaults and very nice using the file manager (whichever one you have selected) to open the folder and run any program you have installed.
June 5, 2021 at 5:27 pm #61022ModeratorBobC
::Got it done. I like it much better. I opened it in the file manager (SpaceFM is my default) and right clicked to show all the program options available on my machine. Of course, whatever the user has installed should show up for them.
I humbly suggest this be tested on a USB flashdrive first, as the install script replaces the default antixscreenshot.sh program as well as your .mtpaint file if you have one, and adds it to your IceWM toolbar, and restarts IceWM.
After you make your USB, you create a directory called Live-usb-storage, then a subdirectory demo, and then copy the zip file there and extract into a subdirectory. When you boot the flashdrive, this should come up in demo’s home directory, and you go to it in a terminal and go to the subdirectory, and run the install script named antixscreenshot-alpha-INSTALL.SH
Let me know please if any problems are found.
June 7, 2021 at 12:39 am #61116Member
ile
::Hello BobC and everyone
antixscreenshotgenqqcsm. s,h as zip
June 7, 2021 at 6:27 am #61133ModeratorBobC
::I worked on it again to try to really focus on making the workflow nice and efficient. I changed it to where you take any action, and it comes back to the menu for you to choose another action. I wrote an install script and made a how to video for anyone that is willing to try my A2 version. It should work with any antiX full or base that includes MTPaint 3.50.07 or higher. I didn’t test with Fluxbox or JWM, but would expect it should work.
Let me know any opinions or bugs found, please.
Ile, Why is there an Ok button on the side and another on the bottom?
- This reply was modified 1 year, 11 months ago by BobC. Reason: add video
June 7, 2021 at 7:08 pm #61155Anonymous
::opinions or bugs
Tested, and didn’t find any surprises (bugs).
Suggestions:
For the “take another screenshot” item, run “$0” instead of a hardcoded name (in case the scriptname gets changed).
assign larger (wider) values to the “SaveTo directory:” element, to avoid wordwrapped pathstring
<text use-markup="true" width-chars="35"> <label>"<b>$SAVEDIR</b>"</label> </text> <checkbox active="false"> <label>"gettext $"Choose different directory"</label> <variable>SAVETO</variable> <default>$SAVETO</default> </checkbox>The nested frame lines are a bit distracting. I’ll suggest nixing at least the outermost left-column and right-column frames.
The ten second default delay value seems… excessive.
“png uses 70…” seems like an overreaching (therefore inaccurate) statement.
Instead, howabout wording it as “for png, use 70… for other filetypes, use…”Because no clearcut “exit” exists ~~ user can (and might) repeatedly choose the “Save screenshot” action, suspecting “aw, maybe it didn’t \take\ the first time”. No harm//error from repeating that action, but the user may ultimately overlook or disregard the “Exit without saving” option and, instead, click titlebar “X” icon to close (exit) the program.
.
I recommend moving the cleanup steps (performed if [ “$EXIT” = “OK” ] or cancel) into a function, and trap the EXIT signal assign that function as the “atexit” handler. (bash-exit-traps/potential optimizations?
cp a b rm -f a ^---> "-f" is unnecessary here, right? (and, why not just "mv" ?)mkdir "$SAVEDIR" mkdir "$WORKING_DIR" ^---> mkdir -pIn case day-to-day use of mtpaint might leave screencap-unfriendly values in the .mtpaint file, you might install a different filename (e.g. “.mtpaint_scr”). On each run, after creating a backup copy of .mtpaint (and restore it, when the script exits) “cp ~/.mtpaint_scr ~/.mtpaint”
found in README:
” You will notice that it has added the Screenshot icon to the IceWM toolbar.
It should work with any of the standard antiX desktops from their menus. “^———– Hmmmmmmmmmmmmm any? “standard antix desktops”?
That statement would more accurate for “standard icewm toolbar”“This is a very new program, so best to test first from a flashdrive.”
flashdrive? Howabout just drop the disclaimer. Common sense will prevail (or not).
June 8, 2021 at 1:00 am #61161ModeratorBobC
::Skidoo, Thank you so much for trying it and looking at it.
I’ll go thru it and look at each of your suggestions. My code isn’t perfect, and I know you do know how to write things better. Yes, the exit caused me lots of trouble.
My comment about the other desktops was that the new program should work from their menus, because the IceWM toolbar won’t be there.
I am glad you didn’t find bugs or lackings in functionality.
-
AuthorPosts
- You must be logged in to reply to this topic.








