[eluser]yanekpl[/eluser]
With function like this nothing is happening, when i change library to 'gd2' works perfectly.
Here is controller:
Code: $config['image_library'] = 'ImageMagick';
$config['source_image'] = /uploads/1.jpg;
$config['maintain_ratio'] = true;
$config['width'] = 300;
$config['height'] = 300;
$config['quality'] = 100;
$config['new_image'] = "min_" . $fileName['file_name'];
$this->load->library('image_lib', $config);
$this->image_lib->resize();
And when i try to put as library 'imagick', i get error like this:
Quote:Fatal error: Call to undefined method CI_Image_lib::image_process_imagick() in /system/libraries/Image_lib.php on line 357
[eluser]InsiteFX[/eluser]
You may not have the ImageMagick module installed in your apache conf!
You may need to download and install it.
In your controller index method add this:
InsiteFX
[eluser]yanekpl[/eluser]
I've put phpinfo, and there i can find information about imagemagick:
Quote:imagick
imagick module enabled
imagick module version 2.3.0
imagick classes Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator
ImageMagick version ImageMagick 6.5.7-7 2011-06-04 Q16 http://www.imagemagick.org
ImageMagick copyright Copyright © 1999-2009 ImageMagick Studio LLC
ImageMagick release date 2011-06-04
ImageMagick Number of supported formats: 202
ImageMagick Supported formats 3FR, A, AI, ART, ARW, AVI, AVS, B, BGR, BMP, BMP2, BMP3, BRF, BRG, C, CAL, CALS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DFONT, DJVU, DNG, DOT, DPX, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FITS, FRACTAL, FTS, G, G3, GBR, GIF, GIF87, GRADIENT, GRAY, GRB, GROUP4, HALD, HISTOGRAM, HRZ, HTM, HTML, ICB, ICO, ICON, INFO, INLINE, IPL, ISOBRL, JNG, JP2, JPC, JPEG, JPG, JPX, K, K25, KDC, LABEL, M, M2V, M4V, MAP, MAT, MATTE, MIFF, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NULL, O, ORF, OTB, OTF, PAL, PALM, PAM, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG24, PNG32, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSD, PTIF, PWP, R, RADIAL-GRADIENT, RAF, RAS, RBG, RGB, RGBA, RGBO, RLA, RLE, SCR, SCT, SFW, SGI, SHTML, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UIL, UYVY, VDA, VICAR, VID, VIFF, VST, WBMP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, Y, YCbCr, YCbCrA, YUV
Directive Local Value Master Value
imagick.locale_fix 0 0
imagick.progress_monitor 0 0
For me looks like it's installed
[eluser]InsiteFX[/eluser]
Strange, could have something to do with the version!
Look at the image_lib source and see if something is different.
InsiteFX
[eluser]yanekpl[/eluser]
What do You mean by 'see if something is different'? different from what? 
and here is part of code where error is happening, but that's default from codeigniter.
Code: /**
* Image Resize
*
* This is a wrapper function that chooses the proper
* resize function based on the protocol specified
*
* @access public
* @return bool
*/
function resize()
{
$protocol = 'image_process_'.$this->image_library;
if (preg_match('/gd2$/i', $protocol))
{
$protocol = 'image_process_gd';
}
return $this->$protocol('resize'); //<-LINE 357
}
[eluser]InsiteFX[/eluser]
To see if CodeIgniter is checking the right versions etc. It's called debugging!
InsiteFX
|