Search found 33 matches

by DJ Mike
2011-05-04T23:08:46-07:00
Forum: IMagick
Topic: Conversion from PDF to PNG under Imagick
Replies: 9
Views: 29498

Re: Conversion from PDF to PNG under Imagick

I tried to run your script on my server, it didn't work but maybe I set it up wrong, I saved the first block of code as index.php and put it in a folder and then the second block as viewer_001.php. The other guy who tested it had a problem with it the first time. The next day it did. We never figur...
by DJ Mike
2011-05-03T19:51:04-07:00
Forum: IMagick
Topic: Conversion from PDF to PNG under Imagick
Replies: 9
Views: 29498

Re: Conversion from PDF to PNG under Imagick

By coincidence a WebTV user asked me about making an online PDF converter using Imagick just the other day. The full discussion is here: http://eclecticdjs.com/forum/viewtopic.php?f=15&t=897 What I came up with doesn't use imageWrite(). Instead it uses header('Content-Type: image/png'); and echo...
by DJ Mike
2011-04-08T11:25:56-07:00
Forum: IMagick
Topic: Problem with appendimages()
Replies: 2
Views: 9172

Re: Problem with appendimages()

Thanks. That is a very different approach that never occurred to me. I never got used to command line syntax so it'll take me a while to test it. It might fix another problem I had. A earlier version would make a swirly with a transparent background: http://eclecticdjs.com/mike/temp/11/04/ani_circle...
by DJ Mike
2011-04-07T20:44:49-07:00
Forum: IMagick
Topic: Problem with appendimages()
Replies: 2
Views: 9172

Problem with appendimages()

The code at the bottom of this post was used to create this image: http://eclecticdjs.com/mike/temp/11/04/logo.gif I wanted to have another option besides swirl: Reflect. Reflect would take each frame, flop it and append it to the original so the colors would radiate from the center instead of go in...
by DJ Mike
2011-04-01T20:11:15-07:00
Forum: IMagick
Topic: Little help with appendImages()
Replies: 1
Views: 7256

Re: Little help with appendImages()

You could have the images in an array. Your if statement would load them into the array in the order that you want. $images = array("1.jpg", "2.jpg", "3.jpg"); foreach($images as $temp)     {     $image->readImage("$temp");      } $image->resetIterator(); $ima...
by DJ Mike
2011-03-31T21:25:05-07:00
Forum: IMagick
Topic: Animated Rainbow Swirl
Replies: 0
Views: 5406

Animated Rainbow Swirl

Just for fun - <?php $file = "ani_circle_001.gif"; $w = 200; $h = 100; $delay = 10; $deg = -360; ### First make a rainbow line  # new imagick object $img1 = new Imagick(); # some gradients $img1->newPseudoImage( 10, 100, 'gradient:red-orange' ); $img1->newPseudoImage( 10, 100, 'gradient:or...
by DJ Mike
2011-03-03T23:05:14-07:00
Forum: IMagick
Topic: distorting php string
Replies: 1
Views: 7716

Re: distorting php string

The error message is because you have a mix of GD and Imagick. You first create a GD resource then you try and use that resource with Imagick. There were some other problems but that is the big one. The following code uses only Imagick and assumes that the font is in the same directory. <?php # vari...
by DJ Mike
2010-08-26T19:15:00-07:00
Forum: IMagick
Topic: Using Imagick fill patterns results in blank text
Replies: 1
Views: 6718

Re: Using Imagick fill patterns results in blank text

Here is another example <?php # path to font $font = "../../fonts/lokicola.ttf"; # text of annotation $text = "DJ Mike"; # bgcolor $bg = "#fad888"; # font size $fontsize = 100; # path to fill image $pattern = new Imagick( '../../images/marb015.jpg' ); # offset to adjust...
by DJ Mike
2010-08-26T16:53:37-07:00
Forum: IMagick
Topic: RESOLVED - Does Imagick Support Radial Gradients ?
Replies: 4
Views: 11902

Re: RESOLVED - Does Imagick Support Radial Gradients ?

That was new to me. Here is how it works: <?php /* new imagick object */ $image = new Imagick(); /* a new pseudoimage with gradient */ $image->newPseudoImage( 100, 100, "radial-gradient:red-blue" ); /* set the image format to png */ $image->setImageFormat("png"); /* output to bro...
by DJ Mike
2010-08-16T11:41:08-07:00
Forum: MagickStudio
Topic: NEW EFFECTS IN IMAGE MAGICK
Replies: 16
Views: 60291

Re: NEW EFFECTS IN IMAGE MAGICK

Hi Scarlet. When I was using WebTV I made a tool to split up large files into WebTV sized bites. WebTV cannot read PDF files.
http://eclecticdjs.com/mike/wtv/tools/b ... litter.php
by DJ Mike
2010-08-02T16:37:12-07:00
Forum: IMagick
Topic: 3D Landscape Effect
Replies: 7
Views: 17421

Re: 3D Landscape Effect

I have not modified the scripts yet but I thought this other example was nice. I knew that my multi-color shirt wouldn't make a good 3D effect but the illusion of my hand standing out of the rest of the image is pretty convening. I changed the $gray divisor to 100 to make the hand less exaggerated a...
by DJ Mike
2010-08-02T16:14:38-07:00
Forum: IMagick
Topic: 3D Landscape Effect
Replies: 7
Views: 17421

Re: 3D Landscape Effect

Thanks for the tips. I don't know C but I can follow almost all of it and I copied to study later.
by DJ Mike
2010-08-02T14:44:43-07:00
Forum: IMagick
Topic: skewX doesn't working
Replies: 1
Views: 6517

Re: skewX doesn't working

I remember not being able to get skewX or skewY to work. I went back to my notes and tried moving them up to before ImagickDraw::rectangle and then they worked. ImagickDraw::skewX http://eclecticdjs.com/mike/tutorials/php/imagemagick/examples_07/skewx.php ImagickDraw::skewY http://eclecticdjs.com/mi...
by DJ Mike
2010-08-02T13:29:13-07:00
Forum: IMagick
Topic: 3D Landscape Effect
Replies: 7
Views: 17421

Re: 3D Landscape Effect

Mike, I think the reason that this script uses so much ram and takes a long time is because you don't need to use pixel iterators at all because you aren't modifying the source image like you do in the ripple example. In fact, you don't actually use the iterators other than to find which row you ar...
by DJ Mike
2010-07-28T20:16:42-07:00
Forum: IMagick
Topic: 3D Landscape Effect
Replies: 7
Views: 17421

3D Landscape Effect

Turn an image into a 3D landscape. Each pixel is turned into a line with it's height proportional to it's grayscale value.

The ImagickPixelIterator class Example #2: 3D Landscape
http://eclecticdjs.com/mike/tutorials/p ... dscape.php