Search found 2972 matches

by Bonzo
2007-03-14T14:33:36-07:00
Forum: Users
Topic: Composite two Images
Replies: 1
Views: 7571

Re: Composite two Images

Try -geometry +430+70 instead of -gravity. +430+70 should move the image 430 to the right and 70 down.
by Bonzo
2007-03-14T14:24:25-07:00
Forum: Users
Topic: Using imagemagick to fill unused area of aspect with color
Replies: 7
Views: 19260

Re: Using imagemagick to fill unused area of aspect with color

You description/maths do not quite add up but this code will add a 160px border to all sides. Edit: Reading your post again I assume it depends on if it is a landscape or portrate picture. I was trying something to do this in one line of code the other night but had to use two lines. I do not have t...
by Bonzo
2007-03-12T13:35:12-07:00
Forum: Users
Topic: Multiple Records
Replies: 3
Views: 11065

Re: Multiple Records

http://redux.imagemagick.org/discourse-server/viewtopic.php?f=1&t=8579&hilit= The trouble with people not using good descriptive subjects ! There are other posts on this subject; you just need to search for the correct phrase. I have a php script that can be modified here: http://www.rubblew...
by Bonzo
2007-03-09T13:43:37-07:00
Forum: Users
Topic: -frame option always provides gray fill bars
Replies: 11
Views: 26210

Re: -frame option always provides gray fill bars

My last post does not work :( I thought this would cure it but it does not work either exec("/usr/local/bin/convert -size 200x200 xc:white /(8.jpg -resize 200x200 /) -gravity center -composite 8_mod.jpg"); Not as neat but it works; perhaps Anthony will look at this and put me right on the ...
by Bonzo
2007-03-09T12:38:58-07:00
Forum: Users
Topic: -frame option always provides gray fill bars
Replies: 11
Views: 26210

Re: -frame option always provides gray fill bars

The bit of code is not sizing - its just combining the photo with a background ! It is creating a white background 200 x 200 and placing the image in the center of the background. I will add a bit of resizing code - I didn't realize you wanted to resize the image. exec("/usr/local/bin/convert -...
by Bonzo
2007-03-09T11:09:54-07:00
Forum: Users
Topic: -frame option always provides gray fill bars
Replies: 11
Views: 26210

Re: -frame option always provides gray fill bars

You could try this:

Code: Select all

exec("/usr/local/bin/convert -size 200x200 xc:white 8.jpg -gravity center -composite 8_mod.jpg "); 
Note: I would not use - in file names.
by Bonzo
2007-03-08T09:24:12-07:00
Forum: Users
Topic: In PHP, exec("convert") won't work
Replies: 3
Views: 36142

Re: In PHP, exec("convert") won't work

It sounds as though there must be a problem with your setup if something as simple as changing a jpg to a gif will not work. I had a similar error to this the other night convert: no decode delegate for this image format `image.png'. when trying to resize an error.log by mistake ! I can not help any...
by Bonzo
2007-03-08T01:41:11-07:00
Forum: Users
Topic: In PHP, exec("convert") won't work
Replies: 3
Views: 36142

Re: In PHP, exec("convert") won't work

I would try something simple first that should work: exec("/usr/local/bin/convert input_image.jpg output_image.gif "); echo "<img src=\"output_image.gif \">"; Just thinking about it is this line wrong : $command = "$convert $input $output"; Should be $command ...
by Bonzo
2007-03-04T02:50:04-07:00
Forum: Users
Topic: Is this possible with imagemagick
Replies: 1
Views: 6808

Re: Is this possible with imagemagick

This code when it is run will resize and OVEWRIGHT all the jpg images in the folder: <?php exec("/usr/local/bin/mogrify -size 45x *.jpg" ); ?> Problems: 1/ On my server I have to use an FTP program to CHMOD all the images to 777 first - you may or may not have this problem. 2/ You would ne...
by Bonzo
2007-03-02T12:50:17-07:00
Forum: Users
Topic: Return codes in shell/php
Replies: 1
Views: 7765

Return codes in shell/php

I know this is not really an ImageMagick problem but I have started looking at the "return code" from the code. Is there a list anywhere telling you what they mean ? Or do they not tell you anything useful apart from 0 succesful and everything else fail ? e.g. exec("/usr/local/bin/con...
by Bonzo
2007-02-26T11:26:41-07:00
Forum: Users
Topic: problem with images
Replies: 6
Views: 16719

Re: problem with images

You are not using the crop function correctly farish. As I understand it -crop x246 is cropping the image into 246 wide parts so if the image is 2460 wide you will get 10 images. You want -crop x246+0+0 which will crop the image once into a piece 246 wide with in this case the top left of the crop l...
by Bonzo
2007-02-25T12:04:05-07:00
Forum: Users
Topic: font not shown
Replies: 7
Views: 19371

Re: font not shown

I did have problems on my server with all text at one point. My hosts updated ImageMagick and added the Ghostscript code that cured it.
by Bonzo
2007-02-25T09:25:29-07:00
Forum: Users
Topic: font not shown
Replies: 7
Views: 19371

Re: font not shown

Try this and see if it works; it will create an image with some text on it: <?php exec("/usr/local/bin/convert -background lightblue -fill blue -font Courier -pointsize 72 label:Hello label.gif "); ?> <img src="label.gif "> In some of your example code you are using user/local/bi...
by Bonzo
2007-02-25T07:41:28-07:00
Forum: Users
Topic: font not shown
Replies: 7
Views: 19371

Re: font not shown

As you say you do not have arial in the imagemagick build ? I think arial is a windows standard font. You can either upload arial.ttf to your server : // arial.ttf in the same folder or use the path to arial.ttf /usr/bin/convert -font arial.ttf $aFromfile -append -pointsize 30 -gravity North -annota...
by Bonzo
2007-02-24T14:00:49-07:00
Forum: Users
Topic: color names
Replies: 4
Views: 13405

Re: color names

Upload and run this code; it may ask you to download a page or may display the info in the browser.

Code: Select all

<?php
header('Content-Type: text/plain'); 
system("exec 2>&1; convert -list color");
?>