Image resize extension problem ??

[color=#1C2837][size=2]Hi guys i m using image extension of yii for image resizing i have morzilla6.0,php 5.0,yii1.1.6,windows OS

i followed these steps…

1-downloaded and extracted image extension zipfolder in protected/extension/

2-in config main file

[color=#008800]‘import’[/color][color=#666600]=>[/color][color=#000000]array[/color][color=#666600]([/color][color=#000000]

             [/color][color=#008800]'application.helpers.*'[/color][color=#666600],[/color][color=#000000]  [/color][color=#666600]),[/color][color=#000000]

[/color]

in component section of main file

[color=#008800]‘components’[/color][color=#666600]=>[/color][color=#000000]array[/color][color=#666600]([/color][color=#000000]

                                             [/color][color=#008800]'image'[/color][color=#666600]=>[/color][color=#000000]array[/color][color=#666600]([/color][color=#000000]


      [/color][color=#008800]'class'[/color][color=#666600]=>[/color][color=#008800]'application.extensions.image.CImageComponent'[/color][color=#666600],[/color][color=#000000]


                                             [/color][color=#880000]// GD or ImageMagick[/color][color=#000000]


                                             [/color][color=#008800]'driver'[/color][color=#666600]=>[/color][color=#008800]'GD'[/color][color=#666600],[/color][color=#000000] 


                                             [/color][color=#880000]// ImageMagick setup path[/color][color=#000000]


                                             [/color][color=#008800]'params'[/color][color=#666600]=>[/color][color=#000000]array[/color][color=#666600]([/color][color=#008800]'directory'[/color][color=#666600]=>[/color][color=#008800]'http://121.242.65.82:8087/protected/extensions/image/drivers'[/color][color=#666600]),[/color][color=#000000]   [/color][color=#880000]// path to image_Imagemagic or  image                                                                                                                                                                                                                                          //_GD_driver files>>>>>[/color][color=#000000]


                                                    


    [/color][color=#666600]),[/color]

3-in a view file code is

[color=#660066]Yii[/color][color=#666600]::[/color][color=#000088]import[/color]color=#666600;[/color][color=#000000]

$image [/color][color=#666600]=[/color][color=#000000] [/color][color=#000088]new[/color][color=#000000] [/color][color=#660066]Image[/color]color=#666600;[/color][color=#000000]

$image[/color][color=#666600]->[/color][color=#000000]resize[/color][color=#666600]([/color][color=#006666]400[/color][color=#666600],[/color][color=#000000] [/color][color=#006666]100[/color][color=#666600])->[/color][color=#000000]rotate[/color]color=#666600->[/color][color=#000000]quality[/color]color=#666600->[/color][color=#000000]sharpen[/color]color=#666600;[/color][color=#000000]

$image[/color][color=#666600]->[/color][color=#000000]render[/color]color=#666600;[/color][color=#000000]

[/color]

in morzill browser getting error

[color=#000000]

image not found

if ($check === FALSE)

74 throw new CException(‘image getimagesize missing’);

75

76 // Check to make sure the image exists

77 //echo $image;exit;

78 if ( ! is_file($image))

79 throw new CException(‘image file not found’);

80

81 // Disable error reporting, to prevent PHP warnings[/color]

i have checked image is in this path???? plz help me ??? [/size][/color]

Your problem has to be in:

$image = new Image(’..//.../g2.jpg’);

Because the first thing the extension does is to validate the url with the code:

‘file’ => str_replace(’\\’, ‘/’, realpath($image))

Make sure you are not giving an absolute url to the constructor.