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 Fri 16 Nov 2018, 10:03
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
mtPaint - Simple paint tutorial
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 8 of 8 [112 Posts]   Goto page: Previous 1, 2, 3, ..., 6, 7, 8
Author Message
rufwoof

Joined: 24 Feb 2014
Posts: 2633

PostPosted: Wed 09 May 2018, 09:33    Post subject:  

Whilst all the Puppy 'bloat' i.e. jwmdesktop manager is nice, I find that actually conflicts with a good setup IMO. jwm tray doesn't cater for dragging files to icons in the jwm tray, whereas rox panel does. With all the startup command and jwm/windows configuration in a single .jwmrc file its relatively easy when you have a copy of the associated jwm versions configuration file/document (and a bit of XML skill) to admin/configure things exactly as you'd like.

The way Puppy is structured however with jwm split out and auto-regenerating etc. that can screw up (overwrite) a good manually configured setup. So you have to de-bloat Puppy Smile

jwm doesn't support drag/drop across desktops/pinboards either. Personally multiple desktops IMO are only useful if you have multiple monitors, otherwise multiple pinboards can work just as well and you can arrange things to drag/drop across pinboards.

Reducing down the width of the jwm panel and putting that on top of a rox panel is a good combination, as you can drag programs to the rox panel to create a icon, move them around using the middle mouse click/drag and once in place drag/drop files onto them to open up the file using that program. Whilst still having the jwm panel also as per normal (but just reduced width). Leave windows maximised and just flip between them by selecting them in the jwm panel, and that's like having desktop icons in the rox panel so visible even when a window is maximised. Also eliminates the buggy jwmdesktop type issues.

I like to have one desktop/pinboard specifically for 'computer' that contains desktop icons to documentation and to configuration files, so I can just flip to that pinboard in order to make system configuration changes. Another I typically use for bookmarks/web, i.e. switch to that and click a desktop icon as a web link (showdesktop and click another to open another link). Another pinboard for documents/office files/programs, another for music/multimedia ... and that's pretty much it (I also like to have a empty pinboard that I use as a scratchpad/current work/general).

The downside is that the jwm menu isn't auto-updated as programs are installed/removed, however the pinboards in effect become the 'menu' so its relatively easy to add/remove things from those manually. The menu in effect is relegated and not used that often, so much so I don't have a menu button at all, I just set the clock to show the menus when the clock is clicked.

RISC (reduced instruction set computer) on X-Windows (ROX) is great for a mouse heavy style (drag and drop). Shame that its lapsed. Puppy goes some way to avoid it totally fading. jwm is still maintained/updated, but isn't the ideal partner (would be better if its panels supported drag/drop along with dragging/dropping across desktops/pinboards). Supplemented with golden oldies such as mtpaint and the new inroads into running a browser in a container/restricted user (EasyOS) whilst running non internet local things as root and that's a great collective set. The broader general standard Puppy layout/structure however detracts from that IMO. Yes jwmdesktop click to configure options are nice, but tend to lock you into a particular general desktop layout - that isn't the best layout choice IMO.
Back to top
View user's profile Send private message 
musher0

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

PostPosted: Tue 16 Oct 2018, 08:30    Post subject:  

Hello all.

I finally found the new way to use mtpaint as a viewer, after a couple of
fruitless days trying to make the officially documented ways work.

The answer was in the README in the latest version of mtpaint:
Quote:
(...)
After installation you can create a symlink to add a viewer command, e.g.

su -c "ln -s mtpaint /usr/local/bin/mtv"

Then you can open some graphics files with "mtv *.jpg". This is
a shortcut to writing "mtpaint -v *.jpg". mtPaint can only edit
one image at a time, but when you have more than one filename in
the command line a window will appear with all of the filenames
in a list. If you select one of the names, it will be loaded.
I find this is helpful for editing several icons or digital photos.

mtv *.<picture type>
is the new way to use mtpaint as a viewer.

The old ways
mtpaint -v *.jpg
OR
mtpaint *.jpg
do not work anymore.

In Puppy, the symbolic link "mtv" is achieved as follows from console:
Code:
cd /usr/bin
ln -s mtpaint mtv
Then you simply drill down into your image
directory and type
mtv *.jpg
or whatever image type, and you have all the image files in the listing on
the right, ready for editing.

You can make yourself a wrapper for this, with its own *.desktop file,
if you hate typing in console.

IHTH
mtpaint-as-viewer.jpg
 Description   
 Filesize   164.35 KB
 Viewed   198 Time(s)

mtpaint-as-viewer.jpg


_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
Wognath

Joined: 19 Apr 2009
Posts: 407

PostPosted: Thu 08 Nov 2018, 15:41    Post subject: color code from image  

don570, I have consulted this thread countless times. Belated thanks for doing it.

And a question: is there an easy way to grab a color code from a pixel of an image?

Ideally, I could click on a pixel and view the color code as in gimp (FG/BG Color window). A workaround I have found is to select a single pixel, Edit/Copy To Palette. The color code can then be obtained from Colour Editor, and Undo restores the default palette. If a region is selected, then up to 256 colors appear in the palette, which can be saved, if needed. Am I missing an easier way to copy a color? Thanks.
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 5171
Location: Ontario

PostPosted: Sat 10 Nov 2018, 13:35    Post subject:  

Quote:
to grab a color code from a pixel of an image?


I avoid editing the palette instead I make a foreground color with the eye dropper.
Then I put my mouse in upper left hand part of window and click on foreground color
to display the info about the color.
I believe the eye dropper is used to make copying of a color.
See what the manual says.

_________________________________
Back to top
View user's profile Send private message 
Wognath

Joined: 19 Apr 2009
Posts: 407

PostPosted: Sat 10 Nov 2018, 15:09    Post subject:  

OK--easy as 123
Screenshot-8.png
 Description   
 Filesize   42.97 KB
 Viewed   59 Time(s)

Screenshot-8.png

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


Joined: 10 Mar 2010
Posts: 5171
Location: Ontario

PostPosted: Sat 10 Nov 2018, 17:18    Post subject:  

I highly recommend practising making seamless images.
This is a great feature of mtpaint that is little known.
http://murga-linux.com/puppy/viewtopic.php?p=986537#986537

Gimp also has the feature of making seamless images but it
smears the image and a repeating pattern appears. Limited use Crying or Very sad


_____________________________________________________________
Youtube has some videos on making seamless images with Blender program.

Here is how I first learned about seamless images
https://www.youtube.com/watch?v=I_b2I6toYvQ

________________________________________________
Back to top
View user's profile Send private message 
tallboy


Joined: 21 Sep 2010
Posts: 1059
Location: Oslo, Norway

PostPosted: Sun 11 Nov 2018, 17:11    Post subject:  

Interesting reading! I use an old program, always located in my tray at the bottom of the screen, named PupSnap-2.5.1_Scrot-0.8_32Bit.pet, which as the name says, includes scrot if that is not installed. I think I used it in my old dpup. I have decomposed the program, and only uses it's separate functions. I rarely take a full screenshot, but almost always use it to take a limited size shot, which I can choose in the little dialog window shown. After choosing the 'Window only' command, I can either click in a window to take a shot of all of it - as I have done with the tiny bin and lib windows, or drag an outline with the mouse to limit the size. Either way, it then opens in mtpaint, ready for edit!
BTW: This tutorial is awesome! Very Happy

The code from 'mtsnap' which I don't use , because I don't use the timelapse function:
Code:
#!/bin/bash
DIALOG=Xdialog

$DIALOG --title "Shot 2.0" \
        --radiolist "Choose delay before capture" 0 0 0 \
        "Capture Now"     " "   ON \
        "5 Second Delay"    " " off \
        "10 Second Delay" "" off \
        "20 Second Delay"    "" off \
        "30 Second Delay"   "" off \
        "60 Second Delay"   "" off 2>/tmp/checklist.tmp.$$

retval=$?
choice=`cat /tmp/checklist.tmp.$$`
rm -f /tmp/checklist.tmp.$$

case $choice in
  Capture*)
           shot1;;
  5*)
           sleep 5
           exec mtpaint -s;;
  10*)
           sleep 10
           exec mtpaint -s;;
  20*)
           sleep 20
           exec mtpaint -s;;
  30*)
           sleep 30
           exec mtpaint -s;;
  60*)
           sleep 60
           exec mtpaint -s;;
esac

I have this part of the program, shot1, activated from my tray:
Code:
#! /bin/bash

     export DIALOG='
   <window title="Shot v2.0" resizable="false" window_position="1">
     <vbox>
       <frame Select Screenshot Type>
       <radiobutton active="false">
        <label>Fullscreen.</label>
        <variable>RADIOBUTTON1</variable>
       </radiobutton>
       <radiobutton tooltip-text="Select window title bar or left-click drag section of screen." active="false">
        <label>Window Only.</label>
        <variable>RADIOBUTTON2</variable>
       </radiobutton>
       </frame>
     
       <hbox>
         <button ok></button>
         
       </hbox>
     </vbox>
   </window>'
     
     I=$IFS; IFS=""
     for STATEMENTS in  $(gtkdialog3 --program DIALOG); do
       eval $STATEMENTS
     done
     IFS=$I

     if [ "$RADIOBUTTON1" = "true" ]; then
       mtpaint -s
     fi
     
     if [ "$RADIOBUTTON2" = "true" ]; then
       exec winshot
     fi

The code executed for 'winshot':
Code:
#bin/bash
#Copyright 2009 G Pearson

scrot 'shot.png' -s -b -e 'mtpaint $f'
#Xdialog --title "Shot-1.2" \--infobox "Screen Shot Done" 5 30 3000
dragshot.jpg
 Description   Sized with the mouse.
 Filesize   42.69 KB
 Viewed   22 Time(s)

dragshot.jpg

binshot.jpg
 Description   
 Filesize   16.87 KB
 Viewed   24 Time(s)

binshot.jpg

libshot.jpg
 Description   
 Filesize   23.14 KB
 Viewed   24 Time(s)

libshot.jpg

shotshot.jpg
 Description   
 Filesize   8.21 KB
 Viewed   24 Time(s)

shotshot.jpg


_________________
True freedom is a live Puppy on a multisession CD/DVD.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 8 of 8 [112 Posts]   Goto page: Previous 1, 2, 3, ..., 6, 7, 8
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
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.1184s ][ Queries: 13 (0.0304s) ][ GZIP on ]