How to set -geometry on each -size

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
dt59
Posts: 63
Joined: 2017-07-25T23:57:06-07:00
Authentication code: 1151

How to set -geometry on each -size

Post by dt59 » 2018-11-25T16:14:03-07:00

hello, please smebody should help me. ):
am try to have -geometry on each -size, example

Code: Select all

magick inputimage.png ( ( -size 200\x50 xc:none -fill white -font C:/xampp/htdocs/namewish/storage/app/public/fonts/The-Kids-Mraker.ttf -pointsize 30 -gravity west -annotate +0+0 "Reguards,"  -geometry +70+380 ) ( -size 200\x50 xc:none -fill white -font C:/xampp/htdocs/namewish/storage/app/public/fonts/The-Kids-Mraker.ttf -pointsize 30 -gravity east -annotate +0+0 "Your Name Here " -geometry +70+380  ) -alpha set -background none -smush 10 +gravity -alpha set -background none -rotate 0 ) -background none -compose over -composite outputimage.png 
here is my original code

Code: Select all

magick inputimage.png ( ( -size 200\x50 xc:none -fill white -font C:/xampp/htdocs/namewish/storage/app/public/fonts/The-Kids-Mraker.ttf -pointsize 30 -gravity west -annotate +0+0 "Reguards," ) ( -size 200\x50 xc:none -fill white -font C:/xampp/htdocs/namewish/storage/app/public/fonts/The-Kids-Mraker.ttf -pointsize 30 -gravity east -annotate +0+0 "Your Name Here " ) -alpha set -background none -smush 10 +gravity -alpha set -background none -rotate 0 ) -geometry +70+380 -background none -compose over -composite outputimage.png 

dt59
Posts: 63
Joined: 2017-07-25T23:57:06-07:00
Authentication code: 1151

Re: How to set -geometry on each -size

Post by dt59 » 2018-11-29T15:31:03-07:00

I want to avoid using the -smush command because it's give me margin top but what i want is margin left and i believe i can achieve these using -geometry but i don't know how to go about it. please help

snibgo
Posts: 11479
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: How to set -geometry on each -size

Post by snibgo » 2018-11-29T15:47:58-07:00

You don't say what you are trying to do.

Please also say what version of IM on what platform.
snibgo's IM pages: im.snibgo.com

User avatar
fmw42
Posts: 24773
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to set -geometry on each -size

Post by fmw42 » 2018-11-29T16:04:48-07:00

Please, always provide your IM version and platform when asking questions, since syntax may differ.

Also provide your exact command line and your images, if possible. Try to use line breaks in your code to make your code more readable.

See the top-most post in this forum "IMPORTANT: Please Read This FIRST Before Posting" at http://www.imagemagick.org/discourse-se ... f=1&t=9620

If using Imagemagick 7, then see http://imagemagick.org/script/porting.php#cli


For novices, see

http://www.imagemagick.org/discourse-se ... f=1&t=9620
http://www.imagemagick.org/script/comma ... essing.php
http://www.imagemagick.org/Usage/reference.html
http://www.imagemagick.org/Usage/
https://github.com/ImageMagick/usage-markdown
https://imagemagick.org/script/porting.php#cli

Post Reply