PHP - Anyone use MagickWand before?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jOE :D
    Confirmed User
    • Jan 2007
    • 185

    #1

    PHP - Anyone use MagickWand before?

    I'm trying to use MagickWand to manipulate an images brightness, but it doesn't seem to be working. Here is the code I have:

    PHP Code:
    $original = $config['sitePath'] . $imageConfig['thumbDirectory'] . $_GET['id'] . '/1.jpg';
        
    $magick_wand = NewMagickWand();
    MagickReadImage($magick_wand,$original);
    MagickModulateImage($magick_wand,2,0,0);
    MagickWriteImage($magick_wand,$original); 
    
    Can anyone tell me what I'm doing wrong? It's not giving me any errors.
    Last edited by jOE :D; 01-19-2008, 10:46 AM.
    Need design work or PHP coding? -> Offbeatideas - What's your idea?
    Contact me for all your Predator integration needs!
    ----------------------------------
    My Sites: SpeedySpank (70% ratio - Signup) - Liz Vicious Blog
    AIM: practicetitoism | ICQ: 462598451
  • jOE :D
    Confirmed User
    • Jan 2007
    • 185

    #2
    bump for help!
    Need design work or PHP coding? -> Offbeatideas - What's your idea?
    Contact me for all your Predator integration needs!
    ----------------------------------
    My Sites: SpeedySpank (70% ratio - Signup) - Liz Vicious Blog
    AIM: practicetitoism | ICQ: 462598451

    Comment

    • stickyfingerz
      Doin fine
      • Oct 2005
      • 24984

      #3
      Joe D did we meet in Costa last year? OR am I thinking of someone else?

      Comment

      • jOE :D
        Confirmed User
        • Jan 2007
        • 185

        #4
        Originally posted by stickyfingerz
        Joe D did we meet in Costa last year? OR am I thinking of someone else?
        I don't think so. I've never been there. Must be someone else.
        Need design work or PHP coding? -> Offbeatideas - What's your idea?
        Contact me for all your Predator integration needs!
        ----------------------------------
        My Sites: SpeedySpank (70% ratio - Signup) - Liz Vicious Blog
        AIM: practicetitoism | ICQ: 462598451

        Comment

        • jOE :D
          Confirmed User
          • Jan 2007
          • 185

          #5
          Anyone???
          Need design work or PHP coding? -> Offbeatideas - What's your idea?
          Contact me for all your Predator integration needs!
          ----------------------------------
          My Sites: SpeedySpank (70% ratio - Signup) - Liz Vicious Blog
          AIM: practicetitoism | ICQ: 462598451

          Comment

          • SmokeyTheBear
            ►SouthOfHeaven
            • Jun 2004
            • 28609

            #6
            try bumping thr brightness way up , 2 might not be enough to notice right off the bat
            hatisblack at yahoo.com

            Comment

            • jOE :D
              Confirmed User
              • Jan 2007
              • 185

              #7
              I put it at 50, still no change.
              Need design work or PHP coding? -> Offbeatideas - What's your idea?
              Contact me for all your Predator integration needs!
              ----------------------------------
              My Sites: SpeedySpank (70% ratio - Signup) - Liz Vicious Blog
              AIM: practicetitoism | ICQ: 462598451

              Comment

              • directfiesta
                Too lazy to set a custom title
                • Oct 2002
                • 30172

                #8
                Do you have installed " ImageMagick version 6.3.5, or greater "
                I know that Asspimple is stoopid ... As he says, it is a FACT !

                But I can't figure out how he can breathe or type , at the same time ....

                Comment

                • stickyfingerz
                  Doin fine
                  • Oct 2005
                  • 24984

                  #9
                  Originally posted by jOE :D
                  I don't think so. I've never been there. Must be someone else.
                  Ahh ok my bad. A diff Joe D then.

                  Comment

                  • jOE :D
                    Confirmed User
                    • Jan 2007
                    • 185

                    #10
                    Originally posted by directfiesta
                    Do you have installed " ImageMagick version 6.3.5, or greater "
                    Yes, I have ImageMagick 6.3.6 installed
                    Need design work or PHP coding? -> Offbeatideas - What's your idea?
                    Contact me for all your Predator integration needs!
                    ----------------------------------
                    My Sites: SpeedySpank (70% ratio - Signup) - Liz Vicious Blog
                    AIM: practicetitoism | ICQ: 462598451

                    Comment

                    • directfiesta
                      Too lazy to set a custom title
                      • Oct 2002
                      • 30172

                      #11
                      Originally posted by jOE :D
                      Yes, I have ImageMagick 6.3.6 installed
                      Then:

                      Download MagickWand from the following link

                      magickwand.org/download/php/

                      For installation follow the steps given below.


                      ** REQUIRED ** ImageMagick version :: 6.3.5-9
                      Last-known-good ImageMagick version :: 6.3.5-9


                      1) Either install the required ImageMagick version or make sure that it
                      is installed (running "Wand-config --version" should give you the
                      required information).

                      2) Type

                      phpize
                      ./configure
                      make
                      make install

                      3) Add

                      extension=magickwand.so

                      to your "php.ini" initialization file.
                      I know that Asspimple is stoopid ... As he says, it is a FACT !

                      But I can't figure out how he can breathe or type , at the same time ....

                      Comment

                      • quantum-x
                        Confirmed User
                        • Feb 2002
                        • 6863

                        #12
                        #php, efnet?
                        PrettyInCash.com - BoozedGFs.com - TeenGFs.com - JizzGFs.com- MilfUploads.com -

                        Comment

                        • jOE :D
                          Confirmed User
                          • Jan 2007
                          • 185

                          #13
                          directfiesta, I just contacted my server tech support and it seems to be installed fine. They told me the version difference really shouldn't matter.

                          Is there anything I'm doing wrong with that? It's not giving me any errors, but it doesn't seem to be writing the new images.

                          What I'm trying to do is open the image, increase the brightness, and save the image.
                          Last edited by jOE :D; 01-20-2008, 04:42 PM.
                          Need design work or PHP coding? -> Offbeatideas - What's your idea?
                          Contact me for all your Predator integration needs!
                          ----------------------------------
                          My Sites: SpeedySpank (70% ratio - Signup) - Liz Vicious Blog
                          AIM: practicetitoism | ICQ: 462598451

                          Comment

                          • directfiesta
                            Too lazy to set a custom title
                            • Oct 2002
                            • 30172

                            #14
                            Originally posted by jOE :D
                            directfiesta, I just contacted my server tech support and it seems to be installed fine. They told me the version difference really shouldn't matter.

                            Is there anything I'm doing wrong with that? It's not giving me any errors, but it doesn't seem to be writing the new images.

                            What I'm trying to do is open the image, increase the brightness, and save the image.
                            maybe add a phpinfo.php to your virtual site to see if it is actually compiled with the apache ...

                            PHP Code:
                            <?php phpinfo(); ?>
                            or you could add a php.ini to your root folder to add/overide the one of the sever :

                            extension=magickwand.so

                            Hard to say without the server config ...
                            I know that Asspimple is stoopid ... As he says, it is a FACT !

                            But I can't figure out how he can breathe or type , at the same time ....

                            Comment

                            • jOE :D
                              Confirmed User
                              • Jan 2007
                              • 185

                              #15
                              I did a phpinfo() and MagickWand did compile with apache and the extension is in the php.ini.
                              Need design work or PHP coding? -> Offbeatideas - What's your idea?
                              Contact me for all your Predator integration needs!
                              ----------------------------------
                              My Sites: SpeedySpank (70% ratio - Signup) - Liz Vicious Blog
                              AIM: practicetitoism | ICQ: 462598451

                              Comment

                              • jOE :D
                                Confirmed User
                                • Jan 2007
                                • 185

                                #16
                                Do you think have ImageMagick 6.3.6 instead of 6.3.5-9 would matter?
                                Need design work or PHP coding? -> Offbeatideas - What's your idea?
                                Contact me for all your Predator integration needs!
                                ----------------------------------
                                My Sites: SpeedySpank (70% ratio - Signup) - Liz Vicious Blog
                                AIM: practicetitoism | ICQ: 462598451

                                Comment

                                • directfiesta
                                  Too lazy to set a custom title
                                  • Oct 2002
                                  • 30172

                                  #17
                                  Originally posted by jOE :D
                                  Do you think have ImageMagick 6.3.6 instead of 6.3.5-9 would matter?
                                  No.. that version is fine ... So in the phpinfo file , you see :

                                  './configure' '--with-gd=../gd-2.0.28/' '--with-jpeg-dir=/usr' '--with-zlib-dir=../zlib-1.2.1' '--enable-versioning' '--with-png-dir=../libpng-1.2.5' '--with-tsrm-pthreads' '--enable-inline-optimization' '--disable-posix-threads' '--enable-track-vars' '--enable-bcmath' '--enable-ftp' '--disable-short-flags' '--enable-calendar' '--enable-magic-quotes' '--enable-xml' '--enable-sysvsem' '--enable-sysvshm' '--enable-sockets=shared' '--with-mcrypt=/usr' '--with-freetype-dir=/usr' '--with-apxs=/usr/local/www/bin/apxs' '--with-mhash' '--with-mysql=/usr/local' '--with-dom' '--with-mm=../mm-1.4.0' '--with-curl=../curl-7.10.3' '--with-interbase=/usr' '--with-pgsql=/usr/local/pgsql' '--with-zip' '--enable-gd-native-ttf' '--with-gdbm' '--with-gettext' '--with-ncurses' '--with-gmp' '--with-iconv' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--enable-dbase' '--with-xslt-sablot' '--enable-xslt' '--with-expat-dir=/usr' '--enable-dbx' '--with-swf=/usr/local/install/flash_php/dist' '--with-openssl-dir=/usr/local/ssl' '--with-openssl=/usr/local/ssl' '--with-magickwand=../ImageMagick-6.2.8' '--enable-exif' '-with-imap=/usr/local/install/imap-2004a' '--with-sqlite'
                                  I know that Asspimple is stoopid ... As he says, it is a FACT !

                                  But I can't figure out how he can breathe or type , at the same time ....

                                  Comment

                                  • jOE :D
                                    Confirmed User
                                    • Jan 2007
                                    • 185

                                    #18
                                    Mine doesn't have that imagemagick line, gonna bug the tech support more now
                                    Need design work or PHP coding? -> Offbeatideas - What's your idea?
                                    Contact me for all your Predator integration needs!
                                    ----------------------------------
                                    My Sites: SpeedySpank (70% ratio - Signup) - Liz Vicious Blog
                                    AIM: practicetitoism | ICQ: 462598451

                                    Comment

                                    • directfiesta
                                      Too lazy to set a custom title
                                      • Oct 2002
                                      • 30172

                                      #19
                                      Originally posted by jOE :D
                                      Mine doesn't have that imagemagick line, gonna bug the tech support more now
                                      \

                                      unzip this file and upload to your server in a folder :

                                      http://www.pdgcash.com/gfy/bitweaver_check.zip

                                      upload it to the default folder : bitweaver_check

                                      Then open a browser to that url and you will see ig Imagemagic and magicwand are operational ...
                                      I know that Asspimple is stoopid ... As he says, it is a FACT !

                                      But I can't figure out how he can breathe or type , at the same time ....

                                      Comment

                                      • jOE :D
                                        Confirmed User
                                        • Jan 2007
                                        • 185

                                        #20
                                        The extension imagick is not available.

                                        Got tech support on it now
                                        Need design work or PHP coding? -> Offbeatideas - What's your idea?
                                        Contact me for all your Predator integration needs!
                                        ----------------------------------
                                        My Sites: SpeedySpank (70% ratio - Signup) - Liz Vicious Blog
                                        AIM: practicetitoism | ICQ: 462598451

                                        Comment

                                        • directfiesta
                                          Too lazy to set a custom title
                                          • Oct 2002
                                          • 30172

                                          #21
                                          Originally posted by jOE :D
                                          The extension imagick is not available.

                                          Got tech support on it now
                                          most host compile gd instead of imageMagick ....
                                          I know that Asspimple is stoopid ... As he says, it is a FACT !

                                          But I can't figure out how he can breathe or type , at the same time ....

                                          Comment

                                          • jOE :D
                                            Confirmed User
                                            • Jan 2007
                                            • 185

                                            #22
                                            Got my tech support working on it now. I'm sure we all know how quickly things get fixed with tech support :D
                                            Need design work or PHP coding? -> Offbeatideas - What's your idea?
                                            Contact me for all your Predator integration needs!
                                            ----------------------------------
                                            My Sites: SpeedySpank (70% ratio - Signup) - Liz Vicious Blog
                                            AIM: practicetitoism | ICQ: 462598451

                                            Comment

                                            Working...