List Info

Thread: Gravity problems?




Gravity problems?
user name
2006-12-01 18:54:58
omicronpersei8imagemagick.org writes:

> > convert -gravity Center -draw 'text 0,0
"Foo"' x1.png x2.png
> 
> Try
> 
>   convert  x1.png +repage -gravity Center -draw 'text
0,0 "Foo"'  x2.png

Hmm...  That worked.  But I wonder why it was needed to
begin with --
is the canvas preset at some random size?  Also, why is this
not
working? --

  convert x1.png -repage 0x0 -gravity Center -draw 'text 0,0
"Foo"' x2.png

Actually, I'd expect that adding the image would set the
canvas size
accordingly, so that

  convert x1.png -gravity Center -draw 'text 0,0
"Foo"' x2.png

works.  (Which is different only in the arguments order, and
I did try
it when I was trying to fix things.)

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))         
Eli Barzilay:
                  http://www.barzilay.org/
                Maze is Life!

_______________________________________________
Magick-users mailing list
Magick-usersimagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick
-users
Gravity problems?
user name
2006-12-03 02:28:00
Eli Barzilay on  wrote...
| omicronpersei8imagemagick.org writes:
| 
| > > convert -gravity Center -draw 'text 0,0
"Foo"' x1.png x2.png
| > 
| > Try
| > 
| >   convert  x1.png +repage -gravity Center -draw 'text
0,0 "Foo"'  x2.png
| 
| Hmm...  That worked.  But I wonder why it was needed to
begin with --
| is the canvas preset at some random size?  Also, why is
this not
| working? --
| 
Because you are using a single operator legacy mode.

See...
  http://www.cit.gu.edu.au/~anthony/graphics/ima
gick6/basics/#legacy


  Anthony Thyssen ( System Programmer )    <A.Thyssengriffith.edu.au>
 -----------------------------------------------------------
------------------
          Unix Security sat on the wall.
          Unix Security had a great fall.
          All the king's horses,
          And all the king's men,
          Couldn't get Security back together again.        
 -- Unix Haters
 -----------------------------------------------------------
------------------
     Anthony's Home is his Castle     http://www.cit.gu.
edu.au/~anthony/
_______________________________________________
Magick-users mailing list
Magick-usersimagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick
-users
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )