Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


Image Processing (ImageMagick)
Date: 2008/10/11 19:36 By: krileon Status: CB Doc subscriber  
Karma: 24  
Gold Joomlapolitan

Posts: 229
graphgraph
If you're like me and for some reason CB refused to detect your imagemagic install. Then you need to kick CB in the butt with a core hack.

Alrighty, ready to get your hands dirty? Super super mega hard hack! No no I'm just kidding. It takes 2 seconds.

Locate:
Code:

  /administrator/components/com_comprofiler/imgToolbox.class.php



Go to line: 684
Code:

          if ( true == ( $testIM $this->testIM() ) ) {             $imageLibs['imagemagick'] = $testIM;         }



Change it to:
Code:

              $imageLibs['imagemagick'] = $testIM;



Done. Save and you're ready to go. It'll now properly detect IM and process images with it. TAADAAA! =)

Me and my host was going nuts trying to figure this out, lol. PHP exec() was not disabled. Path was set. IM was installed, but CB didn't like it for some reason. Well now CB likes it and they play nice.

I did in fact test this and confirmed it does process images. I can now have animated resized avatars.
AllMySocials
"Where social networks come together"
www.allmysocials.com
Click here to see the profile of this user The administrator has disabled public write access.

Re:Image Processing (ImageMagick)
Date: 2008/10/13 02:25 By: rofar Status: CB Doc subscriber  
Karma: 0  
Expert Joomlapolitan

Posts: 113
graphgraph
Nant and Beat, was this an acceptable hack?
Using Joomla 1.5.7, CB 1.2 RC3 on a Linux server, with PHP 5.2.6, MySQL5 5.0.27 and eAccelerator 0.9.5.3. (No backend access for support.)
Click here to see the profile of this user The administrator has disabled public write access.

Re:Image Processing (ImageMagick)
Date: 2008/10/13 05:18 By: al_morenas Status: CB Doc subscriber  
Karma: 0  
Fresh Joomlapolitan

Posts: 5
graphgraph
well, it seems to have worked as far as activating the imagemagick

ImageMagick Auto-detected
NetPBM Not installed
GD1 library Not installed
GD2 library Auto-detected, bundled (2.0.34 compatible)

imagemagick used to be "not installed" before the hack.

HOWEVER, my gallery or lightbox remains empty (blank) when clicked.

does anybody have the fix for this? thanks.
Click here to see the profile of this user The administrator has disabled public write access.

Re:Image Processing (ImageMagick)
Date: 2008/10/13 05:44 By: krileon Status: CB Doc subscriber  
Karma: 24  
Gold Joomlapolitan

Posts: 229
graphgraph
The hack will force activate imagemagick.

Do -NOT- use it if you do not have imagemagick installed or your thumbnails will screw up and you'll have to manually remove the files + database entries.

Post edited by: krileon, at: 2008/10/13 05:44
AllMySocials
"Where social networks come together"
www.allmysocials.com
Click here to see the profile of this user The administrator has disabled public write access.

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC2)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC3, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers at this time.

CB Login