PHP and Image processing

This is a discussion on PHP and Image processing within the PHP Language forums, part of the PHP Programming Forums category; amit wrote: >> Thank you so much for your the information. >> 1) Are you saying that I ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 04-23-2008
Piotr
 
Posts: n/a
Default Re: PHP and Image processing

amit wrote:
>> Thank you so much for your the information.
>> 1) Are you saying that I only have installed Image_Magick but must add
>> itsPHPextension as well?


Yes, that is what I suspect.

>> 2) Is this a good place to install it? (http://php.net/manual/en/
>> install.pecl.php)
>> 3) and ?then the extension fromhttp://pecl.php.net/package/imagick?


Yes, ussing PECL installer might be a good solution, but as i recomended
before, *first* try using your distribution software installer tool.

> I get: -bash: pecl: command not found
> so I guess I have to install pecl as well.


Again, try using your linux software installer tool to add pecl.
It will save you alot of pain.

best regards
Piotr N
Reply With Quote
  #12 (permalink)  
Old 04-25-2008
amit
 
Posts: n/a
Default Re: PHP and Image processing

On Apr 22, 5:34*pm, The Natural Philosopher <a...@b.c> wrote:
> amit wrote:
> > On Apr 22, 10:49 am, amit <amit.ko...@gmail.com> wrote:
> >> On Apr 21, 2:13 pm, Piotr <s...@poczta.onet.pl> wrote:

>
> >>> amit wrote:
> >>>> Ok, what I did was installing it fromhttp://www.imagemagick.org/script/install-source.php
> >>>> Then I followed all steps which finally after verification it was able
> >>>> to create a GIF file. Now, I don't know how to include it in my code.
> >>>> Once I tried to run it andPHPwas complaining about new() operator.
> >>>> Any advice is appreciated.
> >>> Link you provided refers to ImageMagic alone, what you need to do,
> >>> is to add imagemagic extension to yourPHP. Easiest way to do that,
> >>> will be to launch your system packed manager (software installation
> >>> tool) and search for *phpand imagemagic. You should find packed that
> >>> provides that. Most popular distributions should provide that. Although
> >>> you might need additional repositories. You can also seek for a packed
> >>> in google and download and install it.
> >>> You might also try using PECL installer to add imagick,
> >>> to do so, issue:
> >>> pecl install imagick
> >>> Note that you might need to be root to complete the installation.
> >>> If you havePHP> 5.1.3, then needed extension might already be present.
> >>> To check it, issue in your console:php-i |grep imagick
> >>> If you get some data, then it's present.
> >>> Once the extension is loaded, you can simply use it's functions and
> >>> objects. You need not 'import' or 'include' anything.
> >>> Here isPHPimagemagic function reference:http://pl.php.net/manual/pl/book.imagick.php
> >>> PS. Keep in mind, that most hosting companies do not provide this
> >>> extension. Anotherimagelibrary, called GD is usually compiled intoPHP
> >>> and available on most hosting servers.
> >>> best regards
> >>> Piotr N
> >> Hi Piotr,

>
> >> Thank you so much for your the information.
> >> 1) Are you saying that I only have installed Image_Magick but must add
> >> itsPHPextension as well?
> >> 2) Is this a good place to install it? (http://php.net/manual/en/
> >> install.pecl.php)
> >> 3) and *then the extension fromhttp://pecl.php.net/package/imagick?

>
> >> Please let me know this .

>
> >> All the best,
> >> Amit- Hide quoted text -

>
> >> - Show quoted text -

>
> > Also, when I run:

>
> > * * * *pecl install imagick

>
> > I get: -bash: pecl: command not found

>
> > so I guess I have to install pecl as well.

>
> > Thanks.

>
> the pain doesn't stop there.
>
> I gave up on ImageMagick and found a smaller library that did all I needed..- Hide quoted text -
>
> - Show quoted text -



Hi,

May I ask what is the library you found? I'm having so many trouble
with Image Magick !!!

Regards.
Reply With Quote
  #13 (permalink)  
Old 04-25-2008
amit
 
Posts: n/a
Default Re: PHP and Image processing

On Apr 23, 1:11*am, Piotr <s...@poczta.onet.pl> wrote:
> amit wrote:
> >> Thank you so much for your the information.
> >> 1) Are you saying that I only have installed Image_Magick but must add
> >> itsPHPextension as well?

>
> Yes, that is what I suspect.
>
> >> 2) Is this a good place to install it? (http://php.net/manual/en/
> >> install.pecl.php)
> >> 3) and ?then the extension fromhttp://pecl.php.net/package/imagick?

>
> Yes, ussing PECL installer might be a good solution, but as i recomended
> before, *first* try using your distribution software installer tool.
>
> > I get: -bash: pecl: command not found
> > so I guess I have to install pecl as well.

>
> Again, try using your linux software installer tool to add pecl.
> It will save you alot of pain.
>
> best regards
> Piotr N



Yes you were right. At the beginning I didn't undestand what you mean
but now I can see the pain using Image Magick!
It is about 2 days I've spend time on it and no luck yet. It only
would work in command line. I don't know what they have thought to
design such a thing.
Why it is not stright forward?

I even decided to format my server and use a different Linux distro
but changed my mind since others are complaining that it would be
cause other issues so not sure what to do!!!!

Reply With Quote
  #14 (permalink)  
Old 04-25-2008
Piotr
 
Posts: n/a
Default Re: PHP and Image processing

amit wrote:
> Yes you were right. At the beginning I didn't undestand what you mean
> but now I can see the pain using Image Magick!
> It is about 2 days I've spend time on it and no luck yet. It only
> would work in command line. I don't know what they have thought to
> design such a thing.
> Why it is not stright forward?


Amit, I get the impression you are not reading my posts.
I'm really trying to help you...

What is your linux name ? (distribution)

Have you installed ImageMagic PHP *extension* ?

To install the extension, do followning

For Ubuntu Linux:
sudo apt-get install php5-imagick

For openSuse Linux:
sudo yast -i php5-imagick
(you might need to add server:php to your repositories)

For help with linux installation problems, ask on related newsgroup.

It might be also good to restart your apache web server after
installation, to make sure extension is loaded.

best regards
Piotr N
Reply With Quote
  #15 (permalink)  
Old 04-25-2008
amit
 
Posts: n/a
Default Re: PHP and Image processing

On Apr 25, 1:48*am, Piotr <s...@poczta.onet.pl> wrote:
> amit wrote:
> > Yes you were right. At the beginning I didn't undestand what you mean
> > but now I can see the pain usingImageMagick!
> > It is about 2 days I've spend time on it and no luck yet. It only
> > would work in command line. I don't know what they have thought to
> > design such a thing.
> > Why it is not stright forward?

>
> Amit, I get the impression you are not reading my posts.
> I'm really trying to help you...
>
> What is your linux name ? (distribution)
>
> Have you installed ImageMagic PHP *extension* ?
>
> To install the extension, do followning
>
> For Ubuntu Linux:
> sudo apt-get install php5-imagick
>
> For openSuse Linux:
> sudo yast -i php5-imagick
> (you might need to add server:php to your repositories)
>
> For help with linux installation problems, ask on related newsgroup.
>
> It might be also good to restart your apache web server after
> installation, to make sure extension is loaded.
>
> best regards
> Piotr N



Hi Piotr,

The OS I'm using on server is Redhat Enterprise 5. I think problem
starts from here since when I run yum I get a message as:

# yum install php-devel
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
Parsing package install arguments
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
No Match for argument: php-devel
Nothing to do

It seems I have to pay to have this support. Right? so I'm installing
CentOS so that will be solved in terms of installatin tools.
I'm going thru your previous posts to see what I have been missing.
Thanks for your patience. I'll get back to you as soon as I'm done
with installation and steps you had mentioned.

Regards.
Reply With Quote
  #16 (permalink)  
Old 04-25-2008
Piotr
 
Posts: n/a
Default Re: PHP and Image processing

amit wrote:
> The OS I'm using on server is Redhat Enterprise 5. I think problem
> starts from here since when I run yum I get a message as:
>
> # yum install php-devel


You don't need php-dev, try:
yum install php-imagick

Not sure if that is the right package name...

best regards
Piotr n
Reply With Quote
  #17 (permalink)  
Old 04-30-2008
amit
 
Posts: n/a
Default Re: PHP and Image processing

On Apr 25, 12:00*pm, Piotr <s...@poczta.onet.pl> wrote:
> amit wrote:
> > The OS I'm using on server is Redhat Enterprise 5. I think problem
> > starts from here since when I run yum I get a message as:

>
> > # yum install php-devel

>
> You don't need php-dev, try:
> yum install php-imagick
>
> Not sure if that is the right package name...
>
> best regards
> Piotr n



Hi Piotr,

I tried the command but this is what I get again:

[root@ html]# yum install php-imagick
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
base 100% |=========================| 1.1 kB
00:00
updates 100% |=========================| 951 B
00:00
addons 100% |=========================| 951 B
00:00
extras 100% |=========================| 1.1 kB
00:00
Reading repository metadata in from local files
Parsing package install arguments
Nothing to do


and I know it is not installed yet!!!! now what should I do?

Regards.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:34 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0