View previous topic :: View next topic |
Author |
Message |
admin Site Admin
Joined: 03 Mar 2002 Posts: 1298
|
Posted: Mon May 13, 2013 6:16 pm Post subject: Preconfigured PHP 5.4.15 package with ImageMagick support |
|
|
Dear all,
The PHP 5.4.x series preconfigured package for Windows has been updated to the latest version:
PHP 5.4.15 : http://www.aprelium.com/data/php5415.exe
Setup instructions are available in http://www.aprelium.com/abyssws/php5win.html .
Please let us know if they are working fine. If so, we'll make them widely available through our PHP setup instructions page.
Note that the new package include now by default the ImageMagick PHP extension. This extension offers a wide range of functions to process and generate images: http://php.net/manual/en/book.imagick.php
To test it, you can create a file called imtest.php with the following contents:
Code: |
<?php
/* Create a new imagick object */
$im = new Imagick();
/* Create new image. This will be used as fill pattern */
$im->newPseudoImage(50, 50, "gradient:red-black");
/* Create imagickdraw object */
$draw = new ImagickDraw();
/* Start a new pattern called "gradient" */
$draw->pushPattern('gradient', 0, 0, 50, 50);
/* Composite the gradient on the pattern */
$draw->composite(Imagick::COMPOSITE_OVER, 0, 0, 50, 50, $im);
/* Close the pattern */
$draw->popPattern();
/* Use the pattern called "gradient" as the fill */
$draw->setFillPatternURL('#gradient');
/* Set font size to 52 */
$draw->setFontSize(52);
/* Annotate some text */
$draw->annotation(20, 50, "Hello World!");
/* Create a new canvas object and a white image */
$canvas = new Imagick();
$canvas->newImage(350, 70, "white");
/* Draw the ImagickDraw on to the canvas */
$canvas->drawImage($draw);
/* 1px black border around the image */
$canvas->borderImage('black', 1, 1);
/* Set the format to PNG */
$canvas->setImageFormat('png');
/* Output the image */
header("Content-Type: image/png");
echo $canvas;
?>
|
_________________ Follow @abyssws on Twitter
Subscribe to our newsletter
_________________
Forum Administrator
Aprelium - https://aprelium.com
Last edited by admin on Wed Jun 19, 2013 12:04 pm; edited 1 time in total |
|
Back to top |
|
|
maroe001 -
Joined: 11 Jul 2009 Posts: 28 Location: USA
|
Posted: Wed May 15, 2013 12:20 am Post subject: Preconfigured PHP 5.4.15 |
|
|
I have installed the preconfigured PHP 5.4.15 package on my test server and so far all is well. Updated perfectly and no problems so far. Still rebuilding the production server with my Abyss X2 installation that was lost in Superstorm Sandy.
Thank you Aprelium for releasing these packages in a timely manner. It really shows your support for your customers. |
|
Back to top |
|
|
abbeytnorth -
Joined: 05 Aug 2013 Posts: 2
|
Posted: Mon Aug 05, 2013 2:37 pm Post subject: |
|
|
Is this the latest one that I can get??? _________________ "We only get one life, so live it!" |
|
Back to top |
|
|
aprelium-support -
Joined: 20 Feb 2009 Posts: 356
|
|
Back to top |
|
|
aqwb24 -
Joined: 22 Aug 2013 Posts: 1 Location: Little Marlow, UK
|
Posted: Fri Aug 23, 2013 11:26 am Post subject: Display of IMagick failing |
|
|
Hi Aprelium
Reading the site more carefully I found the locations of the logs, which gradually explained the problem to me. I had never needed them before (RTFM).
I had an incorrectly-named php_imagick.dll, probably left over from a previous ill-fated attempt to get Imagick to work.
Now using CGI/ISAPI and the test file works.
Still a big fan, now hoping to learn Imagick and Ghostwriter too.
Regards
aqwb24 |
|
Back to top |
|
|
aprelium-support -
Joined: 20 Feb 2009 Posts: 356
|
Posted: Fri Aug 23, 2013 7:21 pm Post subject: Re: Display of IMagick failing |
|
|
aqwb24,
Glad to know that you found the cause of the problem and that everything is working fine now. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
|