[prev in list] [next in list] [prev in thread] [next in thread] 

List:       graphicsmagick-help
Subject:    [GM-help] GraphicsMagick - position item in bottom left
From:       Gareth <mail () thinkgareth ! com>
Date:       2012-09-06 13:27:12
Message-ID: CADH_b38MO=VzYPtr6JjXEScFOT4S14sPmyFM3==ErwtkT45-Tw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Guys,

After trying every combination of commands that I could possibly think of I
still can't get this to work.

I have a large image that can vary in size: Logo.png I have a small image
of a 'known' size: Wallpaper.png

I want Logo to appear in the Bottom Left of Wallpaper.

This has to be done using the 'gm convert' command using -flatten. Using
'gm composite' would require me to run two commands which isn't acceptable
as it would add too much time to our processing per image.

Here is the command so far (there will be more added to this command but
here is the core of it):

wallpaper.png -page +0+0 -gravity SouthWest logo.png -compose over
-flatten result.jpg

This puts the logo in the top left. Gravity appears to be ignored. Using
+100% for -page does not work either.

Would really appreciate any help you could give with this, i have spent
hours 'twiddling' arguments.

If you prefer to get some StackOverflow karma, I posted there too:
http://stackoverflow.com/questions/12300866/graphicsmagick-position-item-in-bottom-left

Kind regards,

Gareth
-- 
Specialist in Facebook & Twitter Development, Consultancy & Training.

Website: http://thinkgareth.com
LinkedIn: http://uk.linkedin.com/in/thinkgareth

+++ Contact +++
E-Mail: mail@thinkgareth.com
UK Mobile: +44 7590-539-280
UK Line: +44 20-8144-4509
US Line: +1 (415)-315-9444

+++ Skill Set +++
# - Backend: RubyOnRails // PHP (Symfony)
# - Frontend: HTML // JS // CSS // AS3

[Attachment #5 (text/html)]

<div class="gmail_quote">Hi Guys,<div><br></div><div><div \
style="vertical-align:baseline;line-height:18px;width:660px;font-family:Arial,&#39;Liberation \
Sans&#39;,&#39;DejaVu Sans&#39;,sans-serif;margin:0px 5px 5px \
0px;border:0px;padding:0px">


<p style="margin:0px 0px \
1em;padding:0px;border:0px;vertical-align:baseline;background-color:transparent;clear:both;word-wrap:break-word">After \
trying every combination of commands that I could possibly think of I still can&#39;t \
get this to work.</p>


<p style="margin:0px 0px \
1em;padding:0px;border:0px;vertical-align:baseline;background-color:transparent;clear:both;word-wrap:break-word">I \
have a large image that can vary in size: Logo.png I have a small image of a \
&#39;known&#39; size: Wallpaper.png</p>


<p style="margin:0px 0px \
1em;padding:0px;border:0px;vertical-align:baseline;background-color:transparent;clear:both;word-wrap:break-word">I \
want Logo to appear in the Bottom Left of Wallpaper.</p><p style="margin:0px 0px \
1em;padding:0px;border:0px;vertical-align:baseline;background-color:transparent;clear:both;word-wrap:break-word">



This has to be done using the &#39;gm convert&#39; command using -flatten. Using \
&#39;gm composite&#39; would require me to run two commands which isn&#39;t \
acceptable as it would add too much time to our processing per image.</p>


<p style="margin:0px 0px \
1em;padding:0px;border:0px;vertical-align:baseline;background-color:transparent;clear:both;word-wrap:break-word">Here \
is the command so far (there will be more added to this command but here is the core \
of it):</p>


<pre style="margin-top:0px;margin-bottom:10px;padding:5px;border:0px;vertical-align:ba \
seline;background-color:rgb(238,238,238);font-family:Consolas,Menlo,Monaco,&#39;Lucida \
Console&#39;,&#39;Liberation Mono&#39;,&#39;DejaVu Sans Mono&#39;,&#39;Bitstream Vera \
Sans Mono&#39;,&#39;Courier \
New&#39;,monospace,serif;overflow:auto;width:auto;max-height:600px">

<code style="margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Consolas,Menlo,Monaco,&#39;Lucida \
Console&#39;,&#39;Liberation Mono&#39;,&#39;DejaVu Sans Mono&#39;,&#39;Bitstream Vera \
Sans Mono&#39;,&#39;Courier New&#39;,monospace,serif">wallpaper.png -page +0+0 \
-gravity SouthWest logo.png -compose over -flatten result.jpg </code></pre><p \
style="margin:0px 0px \
1em;padding:0px;border:0px;vertical-align:baseline;background-color:transparent;clear:both;word-wrap:break-word">This \
puts the logo in the top left. Gravity appears to be ignored. Using +100% for -page \
does not work either.</p>


<p style="margin:0px 0px \
1em;padding:0px;border:0px;vertical-align:baseline;background-color:transparent;clear:both;word-wrap:break-word">Would \
really appreciate any help you could give with this, i have spent hours \
&#39;twiddling&#39; arguments.</p>


<p style="margin:0px 0px \
1em;padding:0px;border:0px;vertical-align:baseline;background-color:transparent;clear:both;word-wrap:break-word">If \
you prefer to get some StackOverflow karma, I posted there too: <a \
href="http://stackoverflow.com/questions/12300866/graphicsmagick-position-item-in-bottom-left" \
target="_blank">http://stackoverflow.com/questions/12300866/graphicsmagick-position-item-in-bottom-left</a></p>



<p style="margin:0px 0px \
1em;padding:0px;border:0px;vertical-align:baseline;background-color:transparent;clear:both;word-wrap:break-word">Kind \
regards,</p><p style="margin:0px 0px \
1em;padding:0px;border:0px;vertical-align:baseline;background-color:transparent;clear:both;word-wrap:break-word">



Gareth</p></div>-- <br><div><span style="font-family:Arial,Helvetica,&#39;Nimbus Sans \
L&#39;,sans-serif;font-size:13px;line-height:15px">Specialist in Facebook &amp; \
Twitter Development, Consultancy &amp; Training.</span></div>


<div><span style="font-family:Arial,Helvetica,&#39;Nimbus Sans \
L&#39;,sans-serif;font-size:13px;line-height:15px"><br></span></div><div><span \
style="font-family:Arial,Helvetica,&#39;Nimbus Sans \
L&#39;,sans-serif;font-size:13px;line-height:15px"><span \
style="font-family:arial;line-height:normal;font-size:small"><span style><font \
color="#CC6600">Website: <a href="http://thinkgareth.com" \
target="_blank">http://thinkgareth.com</a></font></span></span></span></div>


<div><span style="font-family:Arial,Helvetica,&#39;Nimbus Sans \
L&#39;,sans-serif;font-size:13px;line-height:15px"><font color="#CC6600"><font \
face="arial"><span style="line-height:normal;font-size:small">LinkedIn: \
</span></font><a href="http://uk.linkedin.com/in/thinkgareth" title="View public \
profile" name="1399bc2963c2372a_SafeHtmlFilter_SafeHtmlFilter_webProfileURL" \
style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0 \
px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-r \
ight-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;bord \
er-color:initial;outline-width:initial;outline-style:none;outline-color:initial;font-w \
eight:inherit;font-style:inherit;font-size:13px;font-family:inherit;vertical-align:baseline;text-decoration:underline" \
target="_blank">http://uk.linkedin.com/in/thinkgareth</a></font></span></div>


<div><span style="font-family:Arial,Helvetica,&#39;Nimbus Sans \
L&#39;,sans-serif;font-size:13px;line-height:15px"><br>+++ Contact +++<br>E-Mail: <a \
href="mailto:mail@thinkgareth.com" target="_blank">mail@thinkgareth.com</a><br>


<div>UK Mobile: <a href="tel:%2B44%207590-539-280" value="+447590539280" \
target="_blank">+44 7590-539-280</a></div><div>UK Line: <a \
href="tel:%2B44%2020-8144-4509" value="+442081444509" target="_blank">+44 \
20-8144-4509</a></div>

<div>US Line: <a href="tel:%2B1%20%28415%29-315-9444" value="+14153159444" \
target="_blank">+1 (415)-315-9444</a></div><div><br></div>+++ Skill Set +++<br># - \
Backend: RubyOnRails // PHP (Symfony)<br># - Frontend: HTML // JS // CSS // \
</span><span style="font-family:Arial,Helvetica,&#39;Nimbus Sans \
L&#39;,sans-serif;font-size:13px;line-height:15px">AS3</span></div>

</div></div><br>



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

_______________________________________________
Graphicsmagick-help mailing list
Graphicsmagick-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/graphicsmagick-help


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic