mTpaint / imagemagick: how to make 1 picture out 2 pictures

Paint programs, vector editors, 3d modelers, animation editors, etc.
Post Reply
Message
Author
oui

mTpaint / imagemagick: how to make 1 picture out 2 pictures

#1 Post by oui »

Hi

I want to

- rotate if needed each picture in *.jpg or *.xpm format like photos etc. and adapt her size without to lose resolution or fineness of details

- stick 2 or more pictures (1 picture left, 1 picture right, event. 1 third picture more right / 1 picture on top, 1 picture at the bottom / 1 big picture on top, 2 little pictures half and half at the bottom UNDER the big picture / 1 big picture on top, 2 little pictures half and half at the bottom IN the big picture) in a final big picture

- shrink the final picture to a high resolution picture with an exact size (3 inch x 2 inch) without to lose resolution

- shrink AFTER THAT the resolution to the admitted picture size of the upload system a/ according amount of pixel / b/ according max. size of kbyte

WITH mTpaint (or imagemagick if not possible only with mTpaint, not with gimp! but I am about certain that mTpaint can manage it!)

what is to do?

is that possible using a script to make it very often in the same kind (face to face photo of the person or animal or object, for ex. a bicycle / side photo left / side photo right)?

if French speaking please see also: http://www.linuxgraphic.org/forums/view ... 208#p38208

aarf

#2 Post by aarf »

There is a side by side mtpaint thread.
http://www.murga-linux.com/puppy/viewtopic.php?t=71641
image manipulation scripts take a while and effort to produce how many do you need to do.

stu90

#3 Post by stu90 »

There is vovchik's excellent little application picscale for command line / script resizing of images.
Download: http://www.murga-linux.com/puppy/viewto ... h&id=42741

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#4 Post by Karl Godt »

stu90 wrote:There is vovchik's excellent little application picscale for command line / script resizing of images.
Download: http://www.murga-linux.com/puppy/viewto ... h&id=42741
For older Puppies than GLIBC>=2.7 :
http://www.murga-linux.com/puppy/viewtopic.php?p=466201#466201


mtpaint is traditionally stopped at version 3.31 but is still maintained .
Forum member don570 compiles mtpaint and attaches it in the forum .
Actually it seems that version-3.34.69 is out , but unfortunately i had freezes saving composite images with that version . I am using version-3.34.55 at the moment , that had been attached one year ago at mediafire.com , without probs so far .

So it is important to add the current version of mtpaint you are using , and where you got it from| with the compile options . The mtpaint-3.34.33 by technosaurus here also worked well without probs but seems not to have dotSVG support .

For the useabillity i must confess , that i learn nearly every day a little more about the language mtpaint|gimp speaks . For example look here :
http://en.wikipedia.org/wiki/Alpha_compositing
I think it does not cover your problem atm , but may have additional links to read .
Also try to google for a gimp manual .

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#5 Post by BarryK »

If you want to create a composite image made from many smaller images, rotate them, resize them, etc., use InkscapeLite, which is in most puppies.

It is vector editor, but can import raster images. You arrange them as desired, then export the total drawing as a png image.
[url]https://bkhome.org/news/[/url]

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#6 Post by Karl Godt »

Inkscapelite really works good , dragging pictures into it and arrange them .
The menu structure is a medium little difficult to understand or would need a little bit of reworking ; ie "View > Size and Position" could be under "Object" and perhaps it could have a "Document" Main Menu Tab , export could have a filebrowser , saving composites of other formats than svg in "Plain SVG" crashes incskapelite , ....+...+... ...

People that use graphics progs jobwise will have no difficulties i think , but for average people mtpaint and inscapelite are not very easy intuitively to use and gimp is overloaded with its features , though i had read that gimp should be the best manipulating prog . the gimp i had encountered so far offer only +800% max zoom , so mtpaint or inkscapelite are much easier to use to create icons for example .
Attachments
compo-5-031.png
made in inkscapelite-0.36-pre0 on Macpup-Opera2-431
with 2 svg , 1 xpm , 1 gif , 1 png
(19.5 KiB) Downloaded 1386 times

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#7 Post by Karl Godt »

Hmmm ... inkscapelite crashed opening some dotSVG files of another Linux distro ( Crunchbang 8.X.x) :

# inkscapelite
** (inkscapelite:2494): WARNING **: Unimplemented style property SP_PROP_COLOR: value: black
** (process:2494): WARNING (recursed) **: Emergency save activated
aborting...
Aborted
#

and googling around i found these :
http://www.w3.org/TR/SVG/attindex.html

http://old.nabble.com/FYI%3A-InkscapeLi ... 96113.html
This is a courtesy email to let you guys know what
has happened with "Inkscape Lite". Awhile back I
received some help from this mail-list, to choose
an appropriate version of Inkscape for use in
Puppy Linux.

I chose v0.36, which was the last that used C, not
C++, and did not use GTKmm.
I made some very small mods to the source and the
result we named "InkscapeLite", or just "InkLite"
and it appeared in Puppy version 2.10 and now in
v2.11.

Puppy home page: http://www.puppyos.com/
Download page: http://www.puppyos.com/download/downpage.htm

The binary tarball for InkscapeLite is to be
found at Ibiblio:
http://distro.ibiblio.org/pub/linux/dis ... ackages-1/

The source tarball is at: http://puptrix.org/sources/

We also have binary tarballs for the full Inkscape, v0.43 and it is
interesting to compare
sizes:

Binary pkg Executable share/inkscape
v0.43 shared gtkmm 3807K 1932K
v0.43 static gtkmm 5619K 1932K
v0.36.2 "InkLite" 1042K 928K

...interesting!
Of course, the executables are all stripped.

If anyone wants to do a bit of maintaining of
InkLite, please do!

Regards,
Barry Kauler
www.puppyos.com
http://old.nabble.com/FYI%3A-InkscapeLi ... 96113.html

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#8 Post by Karl Godt »

Actually it is possible with mtpaint , but it needs some practice to understand everything :

oui

#9 Post by oui »

ich nehme an, daß das Bild eine Montage sein soll, die das demonstriert?

wie sehen die Bestandteile alleine aus?

welche Schritte sind dann notwendig, um dahin zu kommen?

zur Zeit kenne ich einen Weg, um dahin eventuell zu kommen, aber er ist unbequem. da sehr kommandozeilenlastig durch Benützung von «ImageMagick». ausserdem haben die Puppy-Versionen von ImageMagick eventuell den Nachteil, dass sie keinen Frontend haben, wie man bei anderen Distros teilweise sofort (ich glaube sogar aus den offiziellen aktuellen IM packages) bekommt...

LG François

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#10 Post by Karl Godt »

Trying to reproduce :

icons :

from the puppy icons in /usr/local/lib/X11/*/*
1x home.svg
1X mini-bomb.xpm
1x date.svg
1x home48.png

from kernel source/documentation/*
1x logo.gif 128
1x logo24.gif scaled down already

Steps :

BASIC:
01 . open a mtpaint -version that supports .svg [ 3.31 does not ]
0.1.5 . copy the pics above into a directory lets call it /root/mtpaint/store
02 . drag the above pictures into the mtpaint window
03 . open MENUbar:VIEW>Show dock or Layers window
04 . move the default black "background" one up and cut it ( delete it )
05 . move the largest picture down to first layer=0
06 . give every pic a name there , to not being confused
07 . arrange the pics by clicking on them in the right part of the pics window and dragging them around
08 . move the pics to the best fitting layer position
09 . click on each pic would focus the pic in the left part of the pics window
10 . click on the MENUbar>Image and do whatever you want to do with the single pic|layer : scale,rotate,flip

Advanced:
11 . to double the little penguin i did this : MENUbar Selection>Select all , Copy , MENUbar Edit > Export clipboard to system , click the large penguin layer in the dock|layers window
12 . the large penguin would now show in the left part with the copied and exported little penguin
13 . move the little penguin around on the large penguin pic and right click to fixate it
14 . to get rid of the now not needed anymore clipboarded penguin
i use differnt methods : clicking the pencil icon , draw a little and click two times 'Undo' , so the drawing and second little penguin too much get undone [ frankly , i have no clue how to do it precisely , i am just ^RAM^ in this case without docs to read :) ]
15 . now i clicked on the little penguin single layer again and MENUbar Image>Flip horizontally and move this penguin around in the right panel to its desired place .
16 . now i clicked the house48 layer ; MENUbar Image>Free rotate=-28 and move it around .
17 . now i clicked the yellow house.svg layer ; MENUbar Image>Convert to indexed =256colors,PNN(slow,betterquality),Dither=None ; MENUbar Channels>Edit alpha ; click the color 0=zero in the palette and erase the yellow parts of the house covering the penguin with the pencil keeping right click of the mouse [ could need a brush here ] .
18 . I deleted a little more than necessary , and the color number shows in the bottom bar [0-256] while hovering over the pixel and i choose the color number in the palette with left clicking and fill the missing colors ; the zoom boxes help much
19 . now i click the bomb ; again MENUbar Image>Rotate Anti-clockwise & Scale Canvas as i like [ 16->120 ]
20 . finally arranging everything , moving the layers
21 . now saving : MENUbar Layers>Composite to new layer
22 . now saving really : the new layer will be on top in the layers-dock-window and be visible in the left part of mtpaint ; MENUbar >Save as
23 . Thats it

I hope it is a little bit understandable
Attachments
mtpaint-snap.jpg
screenshot of mtpaint
(126.04 KiB) Downloaded 721 times

oui

#11 Post by oui »

wao!

best thank!

it is exactly the goal i did search with this thread: not to have to do that with ImageMagick!

hamoudoudou

lazpaint

#12 Post by hamoudoudou »

lazpaint
Attachments
jardin.jpg
erase everything around Clemenceau then stick the layer
(62.71 KiB) Downloaded 164 times

hamoudoudou

i still fail with MTpaint.

#13 Post by hamoudoudou »

i still fail with MTpaint.

Post Reply