Search found 2972 matches

by Bonzo
2006-12-07T12:00:59-07:00
Forum: Users
Topic: OVerlapping images
Replies: 4
Views: 13660

I cheated a bit :shock: I made your graphic a png with a transparent circle where the picture is to go ? Then I used the code below to create a background, resize the photo and put them all together. There are so many things you can do but I assume you will need to resize the photo. Anyway I am star...
by Bonzo
2006-12-05T12:27:41-07:00
Forum: MagickWand for PHP
Topic: how to execute imagick commands in php?
Replies: 3
Views: 16882

I found you can use relative paths OK rather than absolute ones. Also I have found that using ../../www/ etc. causes a problem as ImageMagick interperates it as something else. If you want to use something like ../../www/ put it into a variable instead and use the variable in the exe comand. $image_...
by Bonzo
2006-12-02T13:34:23-07:00
Forum: MagickWand for PHP
Topic: how to execute imagick commands in php?
Replies: 3
Views: 16882

The way I do it is:

Code: Select all

exec("/usr/local/bin/convert cmyk.tif -colorspace gray gray.tif ");
Some php examples at www.rubblewebs.co.uk/imagemagick
by Bonzo
2006-11-27T15:48:19-07:00
Forum: Users
Topic: point me in the right direction w/annotate?
Replies: 3
Views: 14677

I have not seen this ${'Photo' . $counter} = $Name . '-'.$_FILES['Image']['name']".jpg"; before but that does not mean much as I am learning php

Code: Select all

$Photo[$counter] = $Name . "-".$_FILES['Image']['name']".jpg"; 
Give that a go.
by Bonzo
2006-11-27T15:03:09-07:00
Forum: Users
Topic: point me in the right direction w/annotate?
Replies: 3
Views: 14677

$new_name = "images/ASP_Images/".$_FILES['Image']['name'].".jpg"; This line was incorrect ${'Photo' . $counter} = $Name . '-'.$_FILES['Image']['name']".jpg"; I have no idea what this line is supposed to do Is this what you want as $Name has no value ? $Name = $_FILES['I...
by Bonzo
2006-11-27T11:50:59-07:00
Forum: Users
Topic: point me in the right direction w/annotate?
Replies: 3
Views: 14677

No I do not think your code will work. To change the save path you need to put the relative or absolute paths to the folder. $new_name = $_SERVER['DOCUMENT_ROOT'] . "/images/ASP_Images/".$_FILES['Image']['name'].jpg"; OR $new_name = images/ASP_Images/".$_FILES['Image']['name'].jp...
by Bonzo
2006-11-27T11:35:01-07:00
Forum: Users
Topic: Clueless newbie question
Replies: 2
Views: 9681

This will change one colour to the next: exec("/usr/local/bin/convert image.png -fill rgb\(255,0,0\) -opaque rgb\(170,170,170\) newimage.png"); As soon as you mentioned jpg rather than gif or png I thought it would be more complicated ! At a rough guess you have 1,000 colours to change. Al...
by Bonzo
2006-11-26T15:09:35-07:00
Forum: Users
Topic: Clueless newbie question
Replies: 2
Views: 9681

I would say it depends on a lot of things and would help if you posted a link to a cheesy orange image.

Also are cheesy orange and greenish/olive greenish standard colour names ?
by Bonzo
2006-11-26T12:28:51-07:00
Forum: Users
Topic: point me in the right direction w/annotate?
Replies: 3
Views: 14677

by Bonzo
2006-11-22T16:35:05-07:00
Forum: Users
Topic: watermarking?
Replies: 1
Views: 8282

/usr/local/bin/convert = Path to imagemagick convert earth.jpg = image to be watermarked -font Helvetica = font to use -pointsize 10 = font size -draw = draw code \"gravity north = escape the " ( required in php ) watermark position in this case 12 o'clock fill black = font shadow colour t...
by Bonzo
2006-11-22T15:43:23-07:00
Forum: Users
Topic: Improving image quality
Replies: 11
Views: 35203

I do not know if this helps and I am not sure how to get to the next stage but some code Anthony and I used on another problem was this: convert input.png -edge 2 -negate -despeckle output1.png Changing the -edge value increases or decreases the line width and this will leave you with a white number...
by Bonzo
2006-11-13T13:16:16-07:00
Forum: Users
Topic: fill transparent
Replies: 2
Views: 15396

You may be able to get this all on one line but this should work:

Code: Select all

convert -size 100x60 xc:skyblue -fill red -draw "roundrectangle 20,10 80,50 20,15" draw_rrect.gif 

convert draw_rrect.gif  -fuzz 50% -transparent red transparent.gif
by Bonzo
2006-11-08T17:19:07-07:00
Forum: Users
Topic: CONVERT and output to another with SAME filename
Replies: 2
Views: 8680

I was not thinking; one problem I find is that if you put /cygdrive/e/tmp/album/IMG_1705.JPG in the code it can throw an error. If you put $image = "/cygdrive/e/tmp/album/IMG_1705.JPG "; and use $image in your code it works. I do not know why and it could just be my server setup; this is a...
by Bonzo
2006-11-08T16:00:56-07:00
Forum: Users
Topic: CONVERT and output to another with SAME filename
Replies: 2
Views: 8680

Can you modify the bit of code at the bottom of this page ?

http://www.rubblewebs.co.uk/imagemagick/code.php