Pages: [1]
|
 |
|
Author
|
Topic: Php 5 Will run as default Php version on Mig and Aries starting August 1st! (Read 825 times)
|
|
|
|
|
|
|
DJ Mike
Serious Poster
   
Offline
Posts: 166

|
I stopped by the book store to see if I was remembering a book title correctly and saw that I was. There is a book called "PHP 5 For Flash". It goes into detail on how to install Apache and PHP but doesn't say anyting about installing Flash that is compatible with PHP 5.
|
|
|
|
|
Logged
|
|
|
|
|
|
DJ Mike
Serious Poster
   
Offline
Posts: 166

|
A suggestion: The version of Imagick on Capricorn is a little out of date and os missing Distort, Wave, Polaroid and a few other methods that are on the newest version. Maybe while you are already updating Mig and Aris you can give them the newest version of Imagick.
|
|
|
|
|
Logged
|
|
|
|
|
|
|
|
DJ Mike
Serious Poster
   
Offline
Posts: 166

|
I was refering to the Imagick class for PHP not Imagemagick, the online image tool. I don't know how much they are related or even if they are related at all. My Imagick examples are still working:
http://eclecticdjs.com/mike/tutorials/php/imagemagick/examples_03/sepia.php
To add to the confusion Linda posted some Imagick from the command line examples that worked for me but using code like I used in the example above I get an "unknown method" error.
|
|
|
|
|
Logged
|
|
|
|
|
|
DJ Mike
Serious Poster
   
Offline
Posts: 166

|
I was thnking that it was the other way around but now that you mention it I remamber that it works for Perl and other languages so I had to be wrong.
Funny thing happened. I have a script that tells all the methods in Imagick. I used it so I didn't waste time trying methods like Distort that were not supported. I went to the script earlier today to see if the newer methods were supported yet and the whole list was in Alt-characters. Didn't look like the characters that would translate to Russion or Chinese though. I was goig to post a link to the script but I'm having a lot of trouble getting through today.
|
|
|
|
|
Logged
|
|
|
|
|
|
dlilahl
Serious Poster
   
Offline
Posts: 110

|
Bert. Here is an example of functions using 'Edit' that will work at zbox. Mike has spent many hours with these in a tool format.
This was designed to use with IMAGICK with Mike helping in
news:alt.discuss.scripting.php.
I would like to see his work being used and with my design of 'EDIT' codes to ccp and add to a directory of choice to test it would be nice. Thanks...lila
#<<>?php header('Content-type: image/jpeg'); $image = new Imagick('girlingoldtrees.jpg'); #$image->distortImage(Imagick::DISTORTION_PERSPECT #IVE,array('7,40,4,30,4,124,4,123,85,122,100,123,85,2,100,#30),true); #$image->negateImage(FALSE,imagick::CHANNEL_ALL); #$image->negateImage(FALSE,imagick::CHANNEL_RED); #$image->tintimage(#ff0088,90); #$image->resizeimage(0,100,imagick::FILTER_HAMMING,#0,FALSE); //using color name as string #$image->colorizeImage("navy",1.5); #$image->sepiatoneImage(80); #$image->cropImage(20,20, 88,62); #$image->edgeImage(45); #$image->frameImage("#123456",20,20,5,5); //How to set a 1 pixel border on an image //object ($im); #$image->raiseImage(100,100,220,190,TRUE); #$image->blurimage(5,3); #$image->magnifyimage(50); #$image->radialblurimage(10); #$image->radialblurimage(180,imagick::CHANNEL_YELLO#W); #$image->equalizeimage(); #$image->flopImage(); #$image->reducenoiseImage(5); //Imagick::rotate Image(mixed $background,float $degrees) #$image->rotateimage("transparent",20 ); #$image->rollimage(50,100); #$image->shearImage("#444444",20,40); #$image->spliceImage(15,15,108,242); #$image->scaleimage(350,400,FALSE ); //$thumb = $im->clone(); #$thumb->thumbnailImage(250, 150); #$image->thumbnailImage(200,200); #$q = $image->quantizeImage(15,5,15,False,True); #$image->normalizeimage(); $image->posterizeImage(4,FALSE); #$image->posterizeimage(2,true); #$image->shaveimage(20,30); #$image->sigmoidalcontrastImage(0,3,50); #$image->sigmoidalcontrastImage(1,3,50); #$image->solarizeImage(49500); #$image->sampleimage(400,400); #$image->thumbnailimage(50,0); #$image->thresholdImage($max/2); #$image->thresholdImage($max/2,imagick::CHANNEL_BL##UE); #$color = "#999999"; #$image->blackthresholdImage("$color"); #$image->whitethresholdImage("$color"); #$image->oilpaintImage(4); #$image->distortImage(Imagick::DISTORTION_PERSPECT#IVE,array(7,40,4,30,4,124,4,123,85,122,100,123,85,2,100,#30),true); $properties = new ImagickDraw(); $image->polaroidimage($properties,45); /*Round corners, web 2.0! */ #$image->roundCorners(35,35); echo $image; ?>
|
|
|
|
|
Logged
|
|
|
|
ZboX
Founder
Administrator
Posting Maniac
    
Offline
Posts: 1660

What 'ya got there??
|
Hi Bert. A question. If php (magickstudio) imagemagick is more or less begining dropped then is it possible that Mr. C's IM will go to perl version? Which program will linux use?
This is confusing and got less information reading their forum. It has always seemed it's all designed for computer.
I am just hoping all the work Mike, Linda with imagemagick (not IMAGICK) and others have given will still work for us. I just can't see _totally_ going to perl version until wtv is at an end.
Thanks for answering and helping with my confusion.
lila ps. I do understand the dependency of IMAGICK to imagemagick for IMAGICK to function. Hi Lila,
Ok first off I think some definitions are called for:
ImageMagick is a software program written in the "C" programming language for image manipulation. Much like "Photoshop", "The Gimp", "Paint Shop Pro", and "Irfanview" for PC users. However out of the box ImageMagick does NOT have a Graphical User Interface (GUI) like the others listed. ImageMagick is command line only right out of the box.
Imagick is a "wrapper" that allows you to manipulate images via php. That's all I really know about it, maybe Mike can explain more.
image::magick is a perl extension that allows you to utilize the ImageMagick library via perl.
Perlmagick is a perl interface to ImageMagick. That's about all I know about it also.
MagickStudio is a script written in perl that gives you a web based GUI (albeit a very spartan GUI) to ImageMagick. I have heard of no other GUI's for ImageMagick. Why? Well I think it's more of a "why bother" as there are so many other free (The Gimp, Irfanview) and pay for (Photoshop, Paint Shop Pro) programs with very nice GUI's available.
We are not going to "drop" ImageMagick. I'm just not going to be able to provide the latest and greatest versions until some changes are made over at the ImageMagick camp. We'll just be stuck with the versions that come with Cpanel and will upgrade when those are available.
However, I am teetering on the edge of dropping MagickStudio. The problem with MagickStudio is that when an upgrade happens to ImageMagick it can break MagickStudio. And when that happens you will need to upgrade MagickStudio also. I believe that's why the ZboX MagickStudio is down, and I asked that question over in the ImageMagick forum and never received an answer. The problem with this upgrade to MagickStudio is there are a lot of changes to it and there isn't really any support for how to make it work. For instance with the new version I would have to totally revamp the way the fonts are installed. And we have a lot of fonts which took me quite some time to get installed properly. Now I have to start all over again on that. And that being said, I have a LOT of other things I need to do as opposed to spending so much time on MagickStudio. THAT is the reason so many other servers have dropped MagickStudio completely.
I'm going to give MagickStudio on last chance over on Cap. If I can get it working there, then there will be another new free for everyone to use MagickStudio installation. But if it gives me as much trouble as it has over on Aries, then I'm going to drop it like a hot tater.
~;-)
Bert
|
|
|
|
|
Logged
|
|
|
|
ZboX
Founder
Administrator
Posting Maniac
    
Offline
Posts: 1660

What 'ya got there??
|
Bert. Here is an example of functions using 'Edit' that will work at zbox. Mike has spent many hours with these in a tool format.
This was designed to use with IMAGICK with Mike helping in
news:alt.discuss.scripting.php.
I would like to see his work being used and with my design of 'EDIT' codes to ccp and add to a directory of choice to test it would be nice. Thanks...lila
#<<>?php header('Content-type: image/jpeg'); $image = new Imagick('girlingoldtrees.jpg'); #$image->distortImage(Imagick::DISTORTION_PERSPECT #IVE,array('7,40,4,30,4,124,4,123,85,122,100,123,85,2,100,#30),true); #$image->negateImage(FALSE,imagick::CHANNEL_ALL); #$image->negateImage(FALSE,imagick::CHANNEL_RED); #$image->tintimage(#ff0088,90); #$image->resizeimage(0,100,imagick::FILTER_HAMMING,#0,FALSE); //using color name as string #$image->colorizeImage("navy",1.5); #$image->sepiatoneImage(80); #$image->cropImage(20,20, 88,62); #$image->edgeImage(45); #$image->frameImage("#123456",20,20,5,5); //How to set a 1 pixel border on an image //object ($im); #$image->raiseImage(100,100,220,190,TRUE); #$image->blurimage(5,3); #$image->magnifyimage(50); #$image->radialblurimage(10); #$image->radialblurimage(180,imagick::CHANNEL_YELLO#W); #$image->equalizeimage(); #$image->flopImage(); #$image->reducenoiseImage(5); //Imagick::rotate Image(mixed $background,float $degrees) #$image->rotateimage("transparent",20 ); #$image->rollimage(50,100); #$image->shearImage("#444444",20,40); #$image->spliceImage(15,15,108,242); #$image->scaleimage(350,400,FALSE ); //$thumb = $im->clone(); #$thumb->thumbnailImage(250, 150); #$image->thumbnailImage(200,200); #$q = $image->quantizeImage(15,5,15,False,True); #$image->normalizeimage(); $image->posterizeImage(4,FALSE); #$image->posterizeimage(2,true); #$image->shaveimage(20,30); #$image->sigmoidalcontrastImage(0,3,50); #$image->sigmoidalcontrastImage(1,3,50); #$image->solarizeImage(49500); #$image->sampleimage(400,400); #$image->thumbnailimage(50,0); #$image->thresholdImage($max/2); #$image->thresholdImage($max/2,imagick::CHANNEL_BL##UE); #$color = "#999999"; #$image->blackthresholdImage("$color"); #$image->whitethresholdImage("$color"); #$image->oilpaintImage(4); #$image->distortImage(Imagick::DISTORTION_PERSPECT#IVE,array(7,40,4,30,4,124,4,123,85,122,100,123,85,2,100,#30),true); $properties = new ImagickDraw(); $image->polaroidimage($properties,45); /*Round corners, web 2.0! */ #$image->roundCorners(35,35); echo $image; ?>
Hi Lila, Beg pardon, but I'm not really sure what you are asking.
~;-)
Bert
|
|
|
|
|
Logged
|
|
|
|
|
|
dlilahl
Serious Poster
   
Offline
Posts: 110

|
Bert, re my post with functions listed..if anyone wants to see what it will do, ccp it into a PHP5 directory, then uncomment the one you want to see demonstrated. There is nothing else to do. grin.
ADDED: use your own image of choice in relative url.
Where could we get information on host server for fonts available for IMAGICK? If not, where is the information, if anyone knows as I don't, to find fonts listed for IMAGICK use? Or is it one of those countless hours of trial and error?

Thanks, lila
|
|
|
|
« Last Edit: July 26, 2008, 09:54:00 AM by dlilahl »
|
Logged
|
|
|
|
ZboX
Founder
Administrator
Posting Maniac
    
Offline
Posts: 1660

What 'ya got there??
|
Bert, re my post with functions listed..if anyone wants to see what it will do, ccp it into a PHP5 directory, then uncomment the one you want to see demonstrated. There is nothing else to do. grin.
Where could we get information on host server for fonts available for IMAGICK? If not, where is the information, if anyone knows as I don't, to find fonts listed for IMAGICK use? Or is it one of those countless hours of trial and error?

Thanks, lila Oh ok Lila. As for fonts, to the best of my knowledge you can only use the available standard fonts that are on the server. I don't believe it's possible to add more.
Bert
|
|
|
|
|
Logged
|
|
|
|
dlilahl
Serious Poster
   
Offline
Posts: 110

|
...and know you listed useable fonts for us somewhere, but please point me to that post. I do not have a list of fonts we can use at zbox. Thank you, lila
|
|
|
|
« Last Edit: July 26, 2008, 09:51:41 AM by dlilahl »
|
Logged
|
|
|
|
|
|
|
|
ZboX
Founder
Administrator
Posting Maniac
    
Offline
Posts: 1660

What 'ya got there??
|
And as the last days of Php 4 rapidly approach, we will be switching to Php 5 as default on Mig and Aries starting August 1st. It will be a very seamless transition, however those of you that are using this .htaccess code to run Php 5 will need to remove it: AddType application/x-httpd-php5 .php AddHandler application/x-httpd-php5 .php You will need do nothing to run Php 5 as it will be the default version. We'll also keep Php 4 running for another month or two for folks that will need to update their scripts. You'll just need to put this code in your chosen directories .htaccess file to run Php 4: AddType application/x-httpd-php4 .php AddHandler application/x-httpd-php4 .php Those folks on Capricorn need not do anything as Php 5 is already running as default. If you want to run Php 4 on Cap use the same code above. I will post a warning on when we will be completely removing Php 4 from ALL servers in the not too distant future. ~;-) Bert There has been a delay on this in case you haven't noticed. The actual switch will happen on the 28th of this month.
Bert
|
|
|
|
|
Logged
|
|
|
|
|
|
Pages: [1]
|
|
|
|
|