Preconfigured PHP 5.4.15 package with ImageMagick support

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
admin
Site Admin


Joined: 03 Mar 2002
Posts: 772

PostPosted: Mon May 13, 2013 6:16 pm    Post subject: Preconfigured PHP 5.4.15 package with ImageMagick support Reply with quote

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;
?>

_________________
Forum Administrator
Aprelium - http://www.aprelium.com


Last edited by admin on Wed Jun 19, 2013 12:04 pm; edited 1 time in total
Back to top View user's profile Send private message
maroe001
-


Joined: 11 Jul 2009
Posts: 25
Location: USA

PostPosted: Wed May 15, 2013 12:20 am    Post subject: Preconfigured PHP 5.4.15 Reply with quote

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 View user's profile Send private message Visit poster's website
abbeytnorth
-


Joined: 05 Aug 2013
Posts: 2

PostPosted: Mon Aug 05, 2013 2:37 pm    Post subject: Reply with quote

Is this the latest one that I can get???
_________________
"We only get one life, so live it!"
Back to top View user's profile Send private message
aprelium-support
-


Joined: 20 Feb 2009
Posts: 356

PostPosted: Wed Aug 07, 2013 4:02 pm    Post subject: Reply with quote

abbeytnorth wrote:
Is this the latest one that I can get???


The latest versions are always in http://www.aprelium.com/downloads .
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Visit poster's website
aqwb24
-


Joined: 22 Aug 2013
Posts: 1
Location: Little Marlow, UK

PostPosted: Fri Aug 23, 2013 11:26 am    Post subject: Display of IMagick failing Reply with quote

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 View user's profile Send private message
aprelium-support
-


Joined: 20 Feb 2009
Posts: 356

PostPosted: Fri Aug 23, 2013 7:21 pm    Post subject: Re: Display of IMagick failing Reply with quote

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 View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group