GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   PHP - Anyone use MagickWand before? (https://gfy.com/showthread.php?t=800808)

jOE :D 01-19-2008 12:43 PM

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.

jOE :D 01-19-2008 01:16 PM

bump for help!

stickyfingerz 01-19-2008 01:18 PM

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

jOE :D 01-19-2008 01:21 PM

Quote:

Originally Posted by stickyfingerz (Post 13670715)
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.

jOE :D 01-19-2008 02:20 PM

Anyone???

SmokeyTheBear 01-19-2008 04:23 PM

try bumping thr brightness way up , 2 might not be enough to notice right off the bat

jOE :D 01-19-2008 05:04 PM

I put it at 50, still no change.

directfiesta 01-19-2008 07:08 PM

Do you have installed " ImageMagick version 6.3.5, or greater "

stickyfingerz 01-19-2008 10:00 PM

Quote:

Originally Posted by jOE :D (Post 13670724)
I don't think so. I've never been there. Must be someone else.

Ahh ok my bad. A diff Joe D then.

jOE :D 01-20-2008 05:34 PM

Quote:

Originally Posted by directfiesta (Post 13671834)
Do you have installed " ImageMagick version 6.3.5, or greater "

Yes, I have ImageMagick 6.3.6 installed

directfiesta 01-20-2008 05:42 PM

Quote:

Originally Posted by jOE :D (Post 13675015)
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.

quantum-x 01-20-2008 05:51 PM

#php, efnet?

jOE :D 01-20-2008 06:40 PM

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.

directfiesta 01-20-2008 06:49 PM

Quote:

Originally Posted by jOE :D (Post 13675201)
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 ...

jOE :D 01-20-2008 06:53 PM

I did a phpinfo() and MagickWand did compile with apache and the extension is in the php.ini.

jOE :D 01-20-2008 06:55 PM

Do you think have ImageMagick 6.3.6 instead of 6.3.5-9 would matter?

directfiesta 01-20-2008 06:56 PM

Quote:

Originally Posted by jOE :D (Post 13675245)
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'

jOE :D 01-20-2008 07:00 PM

Mine doesn't have that imagemagick line, gonna bug the tech support more now :)

directfiesta 01-20-2008 07:08 PM

Quote:

Originally Posted by jOE :D (Post 13675262)
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 ...

jOE :D 01-20-2008 07:11 PM

The extension imagick is not available.

Got tech support on it now :)

directfiesta 01-20-2008 07:14 PM

Quote:

Originally Posted by jOE :D (Post 13675288)
The extension imagick is not available.

Got tech support on it now :)

most host compile gd instead of imageMagick ....

jOE :D 01-20-2008 07:46 PM

Got my tech support working on it now. I'm sure we all know how quickly things get fixed with tech support :D


All times are GMT -7. The time now is 02:00 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123