1/ start with something simple to get it to work.
2/ You are trying to save with the same image name as you are calling which will not work for me.
3/ Try putting {$userfile[$i]}
4/ Your link does not work.
convert image_in.jpg -colorspace Gray image_out.jpg works for me
Search found 2972 matches
- 2006-11-08T15:54:44-07:00
- Forum: Users
- Topic: How to make it gray?
- Replies: 1
- Views: 7249
- 2006-11-05T15:59:04-07:00
- Forum: Users
- Topic: gif transparented background & text
- Replies: 7
- Views: 24049
- 2006-10-28T15:05:26-07:00
- Forum: Users
- Topic: Please help to make distortion (prospect)
- Replies: 1
- Views: 7111
I would guess you need to use -shear, probably a couple of times on each axis.
http://www.imagemagick.org/script/comma ... .php#shear
http://www.imagemagick.org/script/comma ... .php#shear
- 2006-10-22T09:17:57-07:00
- Forum: Users
- Topic: command line problem, please help me to check my code.
- Replies: 1
- Views: 7550
- 2006-10-22T00:50:41-07:00
- Forum: Users
- Topic: command line problem, please help me to check my code.
- Replies: 1
- Views: 7550
Either of these will work:
Code: Select all
exec('usr/local/bin/convert 3.jpg -crop 20x20+4+4 test/2.jpg');
exec("$convert 3.jpg -crop 20x20+4+4 test/2.jpg");
- 2006-09-29T10:30:13-07:00
- Forum: Users
- Topic: Problems drawing Text
- Replies: 3
- Views: 11371
Out of interest Anthony have you seen my example here http://www.rubblewebs.co.uk/imagemagick/watermark_text.php I have written a bit of php where the user inputs the text into a form and each letter is picked from a directory and appended to create the text in an image. In this case the text image ...
- 2006-09-25T10:18:20-07:00
- Forum: Users
- Topic: Problems drawing Text
- Replies: 3
- Views: 11371
From what I gather Fighterly you can not format the text but have to use text that is already formatted. On my system I have for example: Courier Courier-Bold Courier-BoldOblique Courier-Oblique You can change the font size and colour. You can use -list font or something to list the fonts installed ...
- 2006-09-24T14:27:57-07:00
- Forum: Users
- Topic: Resize in convert ?
- Replies: 3
- Views: 12748
Thats strange; according to the Imagemagick instructions if you use 794x564> it should only resize the image if it is larger than 794x564. I have just tried it and created an image of 0kb ! I would say use my first example where it checks the size with getimagesize and the uses the if else function....
- 2006-09-23T16:01:59-07:00
- Forum: Users
- Topic: Resize in convert ?
- Replies: 3
- Views: 12748
- 2006-09-19T10:17:50-07:00
- Forum: Users
- Topic: Image Magick does not work with php
- Replies: 2
- Views: 9192
kleinstadtmc I found when I started you do not need the full path on the server a relative path will do. Some times if you put /srv/www/vhosts/domain.de/httpdocs/pics/pic.jpg into the exec comand as you have done it causes a problem but if you put the path into a variable and put the variable into t...
- 2006-09-16T13:19:07-07:00
- Forum: Users
- Topic: Resizing and using xc: white to fill empty space not working
- Replies: 5
- Views: 17705
Medianeer I have tried your code and mine; they all do something but mine give a background padding and yours do not ! It may be something to do with the way your server is setup I suppose or the ImageMagick version. Here is a link to my tests http://www.rubblewebs.co.uk/imagemagick/Medianeer/test.p...
- 2006-09-13T11:36:30-07:00
- Forum: Users
- Topic: Resizing and using xc: white to fill empty space not working
- Replies: 5
- Views: 17705
I do not quite understand what you are after Medianeer. This code will create a thumbnail out of any size image and then add the white border around it so it is 80x60. Are you saying your original images are 400 x 300 ? In any case just give the code a go and try modifying it to get the results you ...
- 2006-09-12T14:07:16-07:00
- Forum: Users
- Topic: Where do we start?
- Replies: 1
- Views: 7636
If you intened on using ImageMagick with php I have some examples on my site. www.rubblewebs.co.uk/imagemagick To use these examples you will need to know where ImageMagick is installed; mine is /usr/local/bin/ Then just try something out like ( note the folder must be CHMOD to 777 ) the code below....
- 2006-09-11T10:58:40-07:00
- Forum: Users
- Topic: Resizing and using xc: white to fill empty space not working
- Replies: 5
- Views: 17705
Code: Select all
convert -size 100x100 old.jpg -thumbnail '60x60>' -gravity center -crop 80x60+0+0\! -background white -flatten new.jpg
- 2006-09-07T10:59:38-07:00
- Forum: Users
- Topic: Remove pixels from each size to create image square!
- Replies: 1
- Views: 7730
Give this a go:
I would have thought you could probably use -gravity center but I am not sure how.
Code: Select all
convert img1.jpeg -crop 480x480+160+160 +repage img2.jpeg