![]() |
Imagemagick and XAMPP - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Imagemagick and XAMPP (/showthread.php?tid=8972) Pages:
1
2
|
Imagemagick and XAMPP - El Forum - 06-06-2008 [eluser]Jim Higgins[/eluser] Does anyone know the correct imagemagick 'library_path' to use for the image manipulation class when running XAMPP? XAMPP comes with imagemagick precompiled as an extension. I found the line to uncomment inside of the php.ini file in XAMPP, but I'm not sure where to point the library_path to. I've searched the web, but have yet to find anything. Imagemagick and XAMPP - El Forum - 06-07-2008 [eluser]Tony Nash[/eluser] In my XAMPP its "extension=php_imagick.dll" The DLL under both D:\xampp\php\extensions and D:\xampp\php\ext. But XAMPP know where to find it automatically. However, if you are on Windows PC, I'd highly recommend using wamp server 2. Imagemagick and XAMPP - El Forum - 06-07-2008 [eluser]marcoss[/eluser] Or just go with GD2 on your test server (Windows) and then switch back to IM on production. Imagemagick and XAMPP - El Forum - 06-07-2008 [eluser]Jim Higgins[/eluser] The image manipulation class can't seem to locate imagemagick on xampp. I've tried pointing it to /xampp/php/ext, /xampp/php/extensions, /php/ext/ and several other variations. Anyone have any idea of what exactly one should set the $config['library_path'] to in my CI app when trying to use the image manipulation class? I thought about switching over to GD2 for testing if I can't get it sorted out, but I get the memory errors since many of the photos are large in size. I've uncommented the extension in the php.ini My code works fine on my production environment with config set to $config['library_path'] = '/usr/bin'; However, I can't work off of that server. Imagemagick and XAMPP - El Forum - 06-07-2008 [eluser]marcoss[/eluser] Just checked and both works on XAMPP/Windows, make sure you have this in the config file extension=php_gd2.dll extension=php_imagick.dll and that you point to the dll, not just the folder in the config. Imagemagick and XAMPP - El Forum - 06-07-2008 [eluser]Jim Higgins[/eluser] Yeah, I have both uncommented; however, I was not pointing to the dll... unfortunately, I'm now realizing I don't have that dll anywhere in my copy of XAMPP. Did yours come pre-installed? Imagemagick and XAMPP - El Forum - 06-07-2008 [eluser]marcoss[/eluser] Yes, it is in F:\xampp\php\extensions, but it should come with PHP by default, you can get it form php.net (http://www.php.net/downloads.php) if you don't want to download XAMPP again. Imagemagick and XAMPP - El Forum - 06-07-2008 [eluser]Jim Higgins[/eluser] Yeah, I searched both the "extensions" and the "ext" folder. In fact, I've searched the entire XAMPP directory. I also re-downloaded XAMPP and didn't see it in there. Maybe I'm losing my mind. Also tried downloading PHP and searching for the dll in there... although dragging and dropping it would probably not work... but I was going to try. Didn't see the dll in there either. I also downloaded the imagick extension from the PECL downloads on php.net, but wasn't really sure what to do from there. There was an "install" file that didn't do anything. Perhaps I'm out of my knowledge level here, but I thought XAMPP came with it pre-installed anyways so I'm really confused as to why I can't locate it in there. It was commented in the extensions of the php.ini file, but no dll. Also, no dll in the xampp I just downloaded from the friendsofapache website. Either way, I appreciate your help with this. Imagemagick and XAMPP - El Forum - 06-07-2008 [eluser]marcoss[/eluser] Well it is on my XAMPP package, and on the php one... anyway, here's a zip with them. http://www.filepanda.com/file/psxffltgqrsu/ Imagemagick and XAMPP - El Forum - 06-08-2008 [eluser]Jim Higgins[/eluser] Thanks for passing those on. I dropped them in and restarted xampp, but it's still kicking back an error telling me it can't locate the library. I dropped them in C:\xampp\php\ext and C:\xampp\php\extensions accordingly. Not quite sure what else to try (except maybe setup a different server). // Config $config['image_library'] = 'imagemagick'; // This works fine on my production environment... $config['library_path'] = '/usr/bin'; // But trying to set on XAMPP... $config['library_path'] = '/xampp/php/ext/php_imagick.dll'; I've also tried variatioins of '/xampp/php/ext/php_imagick.dll'... like '/php/ext/' and so on. One thing to note, after dropping in the dll and restarting apache, I get an error alert from xampp... "The procedure entry point DestroyDrawingWand could not be located in the dynamic link library CORE_RL_magick_.dll". I googled it, but didn't really see any resolution on the error. Thanks again. |