Search found 8 matches

by hivens
2017-03-04T01:11:06-07:00
Forum: IMagick
Topic: Simply set label colour to white
Replies: 2
Views: 13780

Simply set label colour to white

Hi, This sounds like an easy thing but stakeoverflow has failed me, so I'm hoping you will be able to help. I've got a transparent pseudo image which has a label field like this: $image->newPseudoImage(400, 300, "label:$inputdata"); This is then merged onto another pseduo layer with a grad...
by hivens
2017-03-01T14:46:43-07:00
Forum: Users
Topic: Output SVG
Replies: 2
Views: 7526

Output SVG

HI,

I've seen lots of imagemagick examples which output to JPG, PNG or even convert an SVG to PNG. However I haven't been able to find any examples of imagemagick generating SVG files. Is this something that can be done in imagemagick?

Thank you.
by hivens
2017-03-01T14:06:24-07:00
Forum: Users
Topic: Getting an image to output to a page
Replies: 0
Views: 11824

Getting an image to output to a page

Hi, I'm having trouble getting my head around this. I generate an image but I want to show it on an HTML page. So far I have something like this: <form method="post" action="myapp.php"> <input type="text" name="name"> <input name="colour" type="...
by hivens
2017-02-26T04:19:22-07:00
Forum: Users
Topic: Setting transparent overlay on solid color
Replies: 1
Views: 2493

Setting transparent overlay on solid color

Hi, Just a quick one. I was just wondering, but in order to lay a transparent gradient on a solid color does this need to be done in two separate images, and then combined via composite image? This is what I was trying to do, something like this but haven't had any luck, so just wondering if it must...
by hivens
2017-02-25T05:23:37-07:00
Forum: Users
Topic: Set an offset from gravity centre
Replies: 1
Views: 3233

Set an offset from gravity centre

Hi, I'm trying to include a conditional offset to the gravity centre of my text on my generated image. I've done some reading and apparently I can use geometry. Here is the code: <?php function process($inputdata) { $width = 400; $height = 300; $textBackground = new ImagickPixel('transparent'); $tex...
by hivens
2017-02-24T15:52:35-07:00
Forum: Users
Topic: Annotate vs label vs caption
Replies: 3
Views: 4540

Re: Annotate vs label vs caption

Ok I will try that, thank you.
by hivens
2017-02-24T15:43:59-07:00
Forum: Users
Topic: Annotate vs label vs caption
Replies: 3
Views: 4540

Annotate vs label vs caption

I'm a bit stuck with this particular project, and I've been trying to implement some advice I received on this forum earlier today without much luck. I have a script that works but I don't know why I would choose to use caption/label over annotate, and how I would implement that. <?php $text = 'The ...
by hivens
2017-02-24T03:56:07-07:00
Forum: Users
Topic: Centre annotate image
Replies: 1
Views: 3316

Centre annotate image

Hi! I'm new to imagemagick but managed to get the code below working. However, I've got a bit stuck with centering the text on my image. In an ideal world I want the following: 1. Text vertically and horizontally centre aligned 2. Centre aligned no matter what the font/text size 3. Ideally be able t...