Search found 32 matches
- 2007-09-12T14:22:28-07:00
- Forum: MagickWand for PHP
- Topic: Creating complex buttons with MagickWand
- Replies: 1
- Views: 12838
Creating complex buttons with MagickWand
Hello, How can I do this with MagickWand? It requires multiple commands. Thanks! <? global $imPath; $imPath = "/usr/local/bin/convert"; make_button_3D ("Hello World", 11, '#111111', '#C27A08', '#FE9800', '35', '#eeeeee', 5, 0, 'button_3d'); echo '<p><img src="button_3d.gif&q...
- 2007-08-28T11:04:41-07:00
- Forum: IMagick
- Topic: Can my complex actions be done with IMagick?
- Replies: 2
- Views: 13286
Can my complex actions be done with IMagick?
Hello, I do some really funky things with ImageMagick, thanks to some help from Anthony. For example, to add a gradient to a button I have to use ImageMagick to calculate the size of the button, write that size to a text file, then read that text file later. Can this be done with IMagick? Please rev...
- 2007-08-27T11:49:55-07:00
- Forum: MagickWand for PHP
- Topic: Pointer question: IMagick vs. MagickWand for PHP
- Replies: 0
- Views: 9378
Pointer question: IMagick vs. MagickWand for PHP
Hello,
I am a PHP developer and need to choose between IMagick and MagickWand.
I posted a question about that here:
http://studio.imagemagick.org/magick/vi ... =18&t=9550
Please post there if you have any pointers.
Thanks!
I am a PHP developer and need to choose between IMagick and MagickWand.
I posted a question about that here:
http://studio.imagemagick.org/magick/vi ... =18&t=9550
Please post there if you have any pointers.
Thanks!
- 2007-08-27T11:46:57-07:00
- Forum: IMagick
- Topic: IMagick vs. MagickWand for PHP
- Replies: 1
- Views: 11093
IMagick vs. MagickWand for PHP
What are the advantages and disadvantages of using "IMagick" compared to "MagickWand for PHP"? Please provide me with objective reasons to choose one solution or the other. I am creating a PHP framework, and I need to write special classes for creating buttons, resizing images, c...
- 2007-08-26T10:04:25-07:00
- Forum: Users
- Topic: -extent: Problems with position and background color
- Replies: 2
- Views: 9233
-extent: Problems with position and background color
Hello, I want the small image to be positioned at the bottom right, and I want the background of the image to be red. But this gives me a black background and positions the image at the top left. convert -size 1633x198 h.jpg -thumbnail '1633x9998>' -background red -gravity SouthEast -extent 1633x198...
- 2007-08-23T18:20:20-07:00
- Forum: Users
- Topic: PHP produces emty mvg file
- Replies: 4
- Views: 10309
Re: PHP produces emty mvg file
Wow, Anthony, you did it again!
Adding 2>&1 pointed me quickly to the problems.
1. I had to include the FULL absolute path to convert (/usr/local/bin/convert)
2. I had to add a few extra slashes.
Seeing the errors let me fix them quickly instead of going blind.
Thanks!
Adding 2>&1 pointed me quickly to the problems.
1. I had to include the FULL absolute path to convert (/usr/local/bin/convert)
2. I had to add a few extra slashes.
Seeing the errors let me fix them quickly instead of going blind.
Thanks!
- 2007-08-21T14:19:16-07:00
- Forum: Users
- Topic: PHP produces emty mvg file
- Replies: 4
- Views: 10309
Re: PHP produces emty mvg file
Thanks!
But it does not fix the issue. Your code also creates a 0 size file.
Please try the code through the command line AND from PHP and you will see what I mean.
But it does not fix the issue. Your code also creates a 0 size file.
Please try the code through the command line AND from PHP and you will see what I mean.
- 2007-08-21T11:07:45-07:00
- Forum: Users
- Topic: PHP produces emty mvg file
- Replies: 4
- Views: 10309
PHP produces emty mvg file
Hello, I would like to create a .mvg file use shell_exec() and ImageMagick. My php code produces an empty .mvg file. However if I use print() then copy/paste it through a command line, the correct .mvg file is created! I realize that this is more of a php question than an ImageMagick question but I ...
- 2007-08-21T11:01:06-07:00
- Forum: IMagick
- Topic: How can I implement complex im code?
- Replies: 2
- Views: 9194
How can I implement complex im code?
Hello, I have had a nightmare trying to get my PHP button generator to work with ImageMagick / exec(). How easily could this be done with Imagick? Thanks! convert -background transparent -fill transparent \ -font 'tahomabd.ttf' -pointsize 13 label:'Open Houese' \ -format 'viewbox 0 0 %[fx:w+7] %[fx:...
- 2007-08-16T14:35:19-07:00
- Forum: Users
- Topic: red background instead of a transparent background for butto
- Replies: 1
- Views: 5486
red background instead of a transparent background for butto
Hello, The following creates a 3D button. The button HAS to be a jpg (not a png). The problem is that because the corners are transparent, when the jpg is made they turn black. The background needs to be red. How can I make the button have a red background instead of a transparent background? Thanks...
- 2007-08-14T14:26:39-07:00
- Forum: Users
- Topic: Gradient instead of solid fill color
- Replies: 6
- Views: 19507
Re: Gradient instead of solid fill color
Thanks, Anthony. You are a true hacker! Now the only problem is that the final canvas size is too big. There is extra transparent space on all sides of my button. I looked through the documentation for a way to crop all extra transparent canvas space but found nothing. convert -background transparen...
- 2007-08-13T18:11:41-07:00
- Forum: Users
- Topic: Gradient instead of solid fill color
- Replies: 6
- Views: 19507
Re: Gradient instead of solid fill color
Thank you both. Anthony, I tried the examples at the link you provided but could not get anything to work. I think that -fx might be the best tool, but I did not understand how to use it. I use the following code to DYNAMICALLY create a button: ## Based on this: http://www.imagemagick.org/Usage/adva...
- 2007-08-13T04:52:42-07:00
- Forum: Users
- Topic: Gradient instead of solid fill color
- Replies: 6
- Views: 19507
Gradient instead of solid fill color
Hello, This creates a button with a solid red background. convert mask.png -fill red -draw 'color 0,0 reset' \ mask.png +matte -compose CopyOpacity -composite \ -font 'tahomabd.ttf' -pointsize 11 -fill black \ -gravity Center -annotate 0 'Hello World' \ button.png I want the background to start red ...
- 2007-08-13T03:26:33-07:00
- Forum: Users
- Topic: Want image to be size of rounded-rectangle: without -size
- Replies: 3
- Views: 8906
Re: Want image to be size of rounded-rectangle: without -size
Thanks, Anthony. Your direction enabled me create this, which works perfectly. The peice of the puzzle that I was missing was " viewbox " convert -background transparent -fill transparent \ -font 'tahomabd.ttf' -pointsize 14 label:'Hello World \ -format 'viewbox 0 0 %[fx:w] %[fx:h] \ fill ...
- 2007-08-10T09:55:49-07:00
- Forum: Users
- Topic: Adding padding to text
- Replies: 1
- Views: 8021
Adding padding to text
Hello,
I would like to add 4px vertical padding and 8px horizontal padding to this:
Thanks!
I would like to add 4px vertical padding and 8px horizontal padding to this:
Code: Select all
convert -background lightblue -fill blue \
-font Candice -pointsize 20 label:'Hello World' \
label.gif