mtpaint 3.49.12- April 2016

Paint programs, vector editors, 3d modelers, animation editors, etc.
Message
Author
wjaguar
Posts: 359
Joined: Wed 21 Jun 2006, 14:16

#211 Post by wjaguar »

don570 wrote:Do you support all the SVG colors?
Most likely, yes and then some - it is gdk_color_parse() doing the conversion, which in GTK+1 calls XParseColor() and in GTK+2, pango_color_parse(). Either function knows 750+ color names:
/usr/share/X11/rgb.txt
pango-X.Y.Z/pango/pango_color_table.h

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#212 Post by don570 »

I describe how to add a line of text to the top
of a folder of images

http://www.murga-linux.com/puppy/viewto ... 333#802333

Image

_____________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

New version 3.44.89 available on first post

#213 Post by don570 »

New version 3.44.89 available on first post
________________________________________

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#214 Post by jamesbond »

wjaguar wrote:From 3.44.80, in fact. Thanks, you've uncovered a really nasty memory-corruption bug: I forgot to allocate in-tape memory for one kind of V-code widgets. Patch is attached (should be applicable to any version from 3.44.80 onwards).
Quick as always, thank you wjaguar.
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#215 Post by don570 »

New debian versions (Lucid,Precise and Tahr) 3.44.89

________________________________________________

When I tested these with my Wacom bamboo tablet I found an odd behaviour.
It occurs in Ubuntu and Puppy linux.

Steps to reproduce:

1) Install recent version of mtpaint.
2) Check that wacom driver is installed
3) Set up the wacom driver and make sure that pressure is working in test area.
4) Use a brush (16 pt ) in image. I see that pressure is definitely working.
5) Set down my wacom pen and start painting with my mouse or try to paint a line
with line tool using my mouse.

Painting with mouse is now impossible until the user unticks size,flow boxes
preferences > tablet

_____________________________________________

wjaguar
Posts: 359
Joined: Wed 21 Jun 2006, 14:16

#216 Post by wjaguar »

don570 wrote:When I tested these with my Wacom bamboo tablet I found an odd behaviour.
Painting with mouse is now impossible until the user unticks size,flow boxes
preferences > tablet
Thanks for noticing this. When rewriting mouse handling in 3.44.78, I forgot to set default value of 1.0 before reading pressure (which fails when device is a mouse and not stylus/etc). Patch is attached.
Attachments
tabmouse34489.patch.gz
(356 Bytes) Downloaded 253 times

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#217 Post by don570 »

I posted a new version of 3.44.89 with the patch.
I checked that it worked in Precise puppy.

I also put in a newly designed .desktop file so that many languages will
have a proper description in the start menu.

Also there is now an Italian right click menu if desired.

__________________________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#218 Post by don570 »

-Added Czech language to the list of right click menu items

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

New version 3.44.90 of mtpaint

#219 Post by don570 »

New version 3.44.90 of mtpaint available in first post
___________________________________________
Rewrote much of scripting engine and supporting V-code parts
Implemented scripting for layers window, settings toolbar, and tools toolbar (under Edit menu)
Name + ":" accesses widget's right-click dialog: "-e/tool flood: =10"
Freestanding ":" closes nested dialog: "-e/layer new w=100 h=100 : name=Layer1"
Fixed crash on errors in script
Fixed highlighting in layer list (damaged since 3.44.53, worse since 3.44.86)
Fixed preview of opacity gradients (since 3.44.72)
Fixed focus when starting with open dock
Fixed selection from script ("-s/all") not allowing width/height=1
Fixed pressure value for mouse with tablet enabled

stavpup
Posts: 15
Joined: Mon 24 Nov 2014, 14:53

#220 Post by stavpup »

Is there a problem with large (megapixel) files?
Try to open this http://img.photographyblog.com/reviews/ ... 020_53.jpg with mtpaint. Mine does not open.

mt paint 3.4.88

User avatar
dejan555
Posts: 2798
Joined: Sun 30 Nov 2008, 11:57
Location: Montenegro
Contact:

#221 Post by dejan555 »

Try to allocate more memory in settings
Glad to see there's a new version and that scripting is improved, will compile asap
puppy.b0x.me stuff mirrored [url=https://drive.google.com/open?id=0B_Mb589v0iCXNnhSZWRwd3R2UWs]HERE[/url] or [url=http://archive.org/details/Puppy_Linux_puppy.b0x.me_mirror]HERE[/url]

stavpup
Posts: 15
Joined: Mon 24 Nov 2014, 14:53

#222 Post by stavpup »

dejan555 wrote:Try to allocate more memory in settings
Glad to see there's a new version and that scripting is improved, will compile asap
It's working. The file was corrupt.

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

mtpaint commandline scripting references

#223 Post by charlie6 »

[SOLVED] read EDITED at bottom of post :)
Hi,
this command line feature looks awesome !
again thanks for the new feature !

Just wanting to find references for commandline scripting with mtpaint:
till now i'm doing scripts following the «cut and try» codes ... and get lots of
does not match any item
does not match any widget
error messages

example: i use to convert png image to black and white doing;
- Menu/Palette/Set Palette Size/2/Apply
- Menu/Image/Convert To Indexed/Palette/PNN Quantize/Dither/None/OK
then taking scripts examples from this forum (thanks to all "pionneers" don570, and others ... without forgetting wjaguar ... :) ), I began to write down this script:

Code: Select all

#!/bin/sh
 for ZAD in /root/my_images/*.png ;do
  SUFFIX=_mod
  mtpaint --cmd -file/open="$ZAD" -palette/set=2 -image/'convert to indexed'/'PNN Quantize' -file/as="$ZAD"$SUFFIX
done 
then got the following message:

Code: Select all

Loading PNG image - Please Wait ...
********************
'-image/convert to indexed/PNN Quantize' does not match any item
[ OK ]
I cannot pass the 'convert to indexed' step ... :cry:
Browsing the web i did not find the A.9 section of the handbook (reported in NEWS in github).
Where then to find the right code syntaxes ?

Thanks for any answer/help :)

Charlie

EDITED: YESSS ! got it !

this way:

Code: Select all

#!/bin/sh
#this script convert all .PNG file(s) located in /root/my_images/ into black and white 2 colours PNN quantize _mod.png files
 for ZAD in /root/my_images/*.png ;do
  SUFFIX=_mod
  mtpaint --cmd -file/open="$ZAD" -palette/set=2 -image/'Convert To Indexed ...' 'index'=2 'palette'=pnn -file/as="$ZAD"$SUFFIX
done  
Found after reading and applying wjaguar' s "how to" here (near the bottom of page !):

http://murga-linux.com/puppy/viewtopic. ... 51249458a7

Tons of thanks :D

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#224 Post by don570 »

Code: Select all

-image/'Convert To Indexed ...'
Yes. Writing out the full menu item is the best way. :wink:

Using the first word is a shortcut that sometimes works.
Looking at my examples and Jaguar's will suffice to train people.

The current version of mtpaint v90 has a default command that
is good for making an icon (according to Dmitri)

_____________________________________________

User avatar
mister_electronico
Posts: 969
Joined: Sun 20 Jan 2008, 20:20
Location: Asturias_ España
Contact:

ffmpeg + nconvert

#225 Post by mister_electronico »

Hi don570 maybe do you like this post:

http://www.murga-linux.com/puppy/viewtopic.php?t=97752

See you.

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#226 Post by technosaurus »

Does anyone know of a standard way that a program can edit or just view a specific Mime-type. I looked all through http://standards.freedesktop.org but nothing seemed to handle this distinction.

AFAICT there is no way to specify one over another in a .desktop file.
mtpaint is one of those programs that can open X different types and write Y different types.

The reason I ask is that I would like to integrate this info into the package manager and even Rox-Filer's Mime handling such that if you try to open any recognized mime type it will select the user's default OR give the user a selection of apps that support it (with not-installed ones grayed out and will auto-install if clicked). Also if the user right clicks for edit there would be a similar menu except I would also add an asterisk to apps that supported reading but not writing a MIME (as with some of the image formats supported by mtpaint)
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#227 Post by don570 »

I've posted the mypaint backgrounds on the first post so users can use them.

Instructions:

Load a background in a mtpaint layer, then do a 'Resize'
Select 'Tile' and enter the dimensions of image desired.


Here I have taken a background and resize with the 'Tile' feature then a 45 degree rotate.

Image

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

mtpaint 3.44.91

#228 Post by don570 »

New developments in mtpaint 3.44.91
* Scripting added - "Image->Script" to enter or run a script : See handbook section A.9 for details
* Commandline mode added - use "mtpaint --cmd" to run a script without GUI
* Lasso tool can be configured to shrink selection based on the selection channel - right click the tool icon
* Background layer position now can be changed via Ctrl+arrows or layers window spinbuttons, like any other layer
* Ctrl+Right click now deletes last point when making polygonal selection (from a closed polygon, deletes the point nearest to cursor)
* Shift and Shift+Ctrl now constrain selection box width/height when resizing it by clicking and dragging
* Zooming now can use mouse cursor position as its fixed point (Preferences->Interface->Zoom on cursor position)
* Scroll wheel zoom now works for view window too
* "Hide image" and "View alpha as an overlay" can now be toggled separately for each layer (Preferences->General->Enable overlays by layer)
* New keyboard shortcut Ctrl+H added for Channels->Hide image
* New image format PMM (Portable MultiMap) added for interoperable storage and exchange of images : See handbook section A.2 for details
* XPM files with 65-92 colours are now saved with smaller size
* Raw RGB palette files (6-bit PAL and 8-bit ACT) can now be loaded/saved via the Palette menu
* Animation cycles can now specify sequence steps as containing several layers, or none : See handbook section 9.3.3 for details
* Committing paste when changing tool is now enabled by default
* Saving an image now commits paste if auto commit mode is enabled
* "Scale canvas" and "Resize canvas" now remember their aspect ratio toggle setting
* The Free Rotate window now remembers the previous rotation angle in that mtPaint session
* Dock area state is now remembered across sessions (unless opened automatically, for multiple files on command line)
* Alpha values for colours A & B are now displayed on settings toolbar when editing image with alpha in coupled alpha mode
* Undo system now uses a bit less memory
* Support for compiling with giflib 5, libpng 1.6, libjpeg 9, OpenJPEG 2 added
* BUGFIX - Compilation without JPEG and TIFF support now works again
* BUGFIX - FreeType text tool now skips directory loops when scanning font directories
* BUGFIX - Geometry info on the status bar now correctly updates after arrow keys or Escape key
* BUGFIX - Gradient button no longer fails to show current gradient mode after showing settings toolbar
* BUGFIX - Ctrl+left/right/double click now set both colour and alpha from canvas in coupled alpha mode, as they should
* BUGFIX - New image creation from system clipboard now respects "Undoable" toggle
* BUGFIX - Problem with layers list in inactive dock tab sometimes not updating is now eliminated
* BUGFIX - All keyboard shortcuts now work in Image View mode, as they should
* BUGFIX - PAM files with type BLACKANDWHITE are no longer loaded as grayscale (except if written as grayscale - ImageMagick does that)
* BUGFIX - Animation cycling now doesn't skip over the last frame of a GIF loaded into layers
* BUGFIX - Background layer is now made large enough to accommodate all frames when loading animation into layers
* BUGFIX - Animation cycles are now properly updated when layers are reordered, duplicated or deleted
* BUGFIX - Command line switches beyond the first one are now parsed properly
* BUGFIX - Listing a directory containing files with broken date/time in builtin file selector on Windows doesn't cause crash
* BUGFIX - Rare problem of undo system ignoring a changed pixel is now eliminated
* BUGFIX - Polygonal selections no longer skip some contour pixels in certain situations
* BUGFIX - Canvas window now doesn't lose mouse button press event if dock window has focus
* BUGFIX - Problem with command line window wrongly reacting to mouse in some cases is now eliminated
* BUGFIX - Escape and Enter keys now work properly in all dialogs in GTK+1
* BUGFIX - Dropping colours to palette in builtin colour selector now works properly in GTK+1

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#229 Post by technosaurus »

Anyone know where the development version of the handbook is?
Lots of new and awesome stuff since the last release.

I'd like to add the PMM format to my MIME-Type detection library.
even though its not at IANA yet because it does seem to be useful.
I assume the extension is .pmm???
I'm using magic@offset based detection as well so if there is a solid spec, I would prefer to use that rather than reverse engineering it from code or images (my automagic finder code is hit/miss).
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

wjaguar
Posts: 359
Joined: Wed 21 Jun 2006, 14:16

#230 Post by wjaguar »

technosaurus wrote:Anyone know where the development version of the handbook is?
Partly still in my to-do list. :-) Other parts, on my flash drive.
Should have put it on Github too, I know - but the source format is somewhat idiosyncratic (txt2tags), and I have not yet investigated how best to stuff image files into git.
I'd like to add the PMM format to my MIME-Type detection library.
Then do the same thing mtPaint does in do_detect_format(): compare first 12 bytes to "P7\n#MTPAINT#".
I assume the extension is .pmm???
By default, yes. But not necessarily.
if there is a solid spec, I would prefer to use that rather than reverse engineering it from code or images
That part has actually been written, yes. And I'll finally put it on Github before long.
But PMM itself is nothing esoteric - it extends NetPBM's PAM in a compatible way, so that all NetPBM tools work with PMM files as with regular PAM.

Post Reply