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 Thu 23 Oct 2014, 05:31
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Graphics
mTpaint / imagemagick: how to make 1 picture out 2 pictures
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [11 Posts]  
Author Message
oui

Joined: 20 May 2005
Posts: 2096
Location: near Woof (Germany) :-) Acer Laptop emachines 2 GB RAM AMD64. franco-/germanophone, +/- anglophone

PostPosted: Fri 07 Oct 2011, 03:26    Post subject:  mTpaint / imagemagick: how to make 1 picture out 2 pictures
Subject description: & such manipulations?
 

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/viewtopic.php?f=7&t=6911&p=38208#p38208
Back to top
View user's profile Send private message 
aarf

Joined: 30 Aug 2007
Posts: 3620
Location: around the bend

PostPosted: Fri 07 Oct 2011, 04:41    Post subject:  

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.

_________________

ASUS EeePC Flare series 1025C 4x Intel Atom N2800 @ 1.86GHz RAM 2063MB 800x600p ATA 320G
_-¤-_

<º))))><.¸¸.•´¯`•.#.•´¯`•.¸¸. ><((((º>
Back to top
View user's profile Send private message Visit poster's website 
stu90


Joined: 25 Feb 2010
Posts: 1401
Location: England. Dell Inspiron 1501. Dpup

PostPosted: Fri 07 Oct 2011, 07:32    Post subject:  

There is vovchik's excellent little application picscale for command line / script resizing of images.
Download: http://www.murga-linux.com/puppy/viewtopic.php?mode=attach&id=42741
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Fri 07 Oct 2011, 09:07    Post subject:  

stu90 wrote:
There is vovchik's excellent little application picscale for command line / script resizing of images.
Download: http://www.murga-linux.com/puppy/viewtopic.php?mode=attach&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 .
Back to top
View user's profile Send private message Visit poster's website 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Fri 07 Oct 2011, 10:24    Post subject:  

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.

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Sat 08 Oct 2011, 07:56    Post subject:  

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 .
compo-5-031.png
 Description   made in inkscapelite-0.36-pre0 on Macpup-Opera2-431
with 2 svg , 1 xpm , 1 gif , 1 png
 Filesize   19.5 KB
 Viewed   1089 Time(s)

compo-5-031.png

Back to top
View user's profile Send private message Visit poster's website 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Mon 10 Oct 2011, 06:11    Post subject:  

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-InkscapeLite-in-Puppy-Linux-p6896113.html
Quote:
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/distributions/puppylinux/pupget_packages-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-InkscapeLite-in-Puppy-Linux-p6896113.html
Back to top
View user's profile Send private message Visit poster's website 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Tue 18 Oct 2011, 11:29    Post subject:  

Actually it is possible with mtpaint , but it needs some practice to understand everything :
bomb-da-house-II.png
 Description   
 Filesize   229.64 KB
 Viewed   1021 Time(s)

bomb-da-house-II.png

Back to top
View user's profile Send private message Visit poster's website 
oui

Joined: 20 May 2005
Posts: 2096
Location: near Woof (Germany) :-) Acer Laptop emachines 2 GB RAM AMD64. franco-/germanophone, +/- anglophone

PostPosted: Tue 18 Oct 2011, 13:10    Post subject:  

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
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Tue 18 Oct 2011, 15:53    Post subject:  

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 Smile ]
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
reproduced.png
 Description   short pic to show a temporarily state of image manipulation
 Filesize   229.64 KB
 Viewed   1056 Time(s)

reproduced.png

mtpaint-snap.jpg
Description  screenshot of mtpaint
jpg

 Download 
Filename  mtpaint-snap.jpg 
Filesize  126.04 KB 
Downloaded  272 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
oui

Joined: 20 May 2005
Posts: 2096
Location: near Woof (Germany) :-) Acer Laptop emachines 2 GB RAM AMD64. franco-/germanophone, +/- anglophone

PostPosted: Tue 18 Oct 2011, 17:24    Post subject:  

wao!

best thank!

it is exactly the goal i did search with this thread: not to have to do that with ImageMagick!
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [11 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Graphics
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.0836s ][ Queries: 13 (0.0044s) ][ GZIP on ]