You have reinstalled or recompiled and installed PHP without recompiling all the extensions. The two in question don't like that.
If you DID recompile them, then it is possible that your INI file(s) (php.ini, slight possibility of extensions.ini) are calling the wrong path name for the extensions, getting the wrong extension. If that's the case, setting the correct path to point to the recompiled extension should fix this.
Otherwise, you need to recompile imageMagick (did you spell that right?) and SourceGuardian....