Cakephp : $this->Thumb->show() not work on live server

60 Views Asked by At

I am using cakephp version 2.5.5 and i want to resize image at display time, for this i am using $this->Thumb->show() from phpThumb, it work fine only at localhost not on live server

$this->Thumb->show(
                                    array('save_path' => ROOT . '/app/webroot/img/advertisements/',
                                            'display_path' => Router::url('/',true).'img/advertisements/',
                                            'error_image_path' => Router::url('/',true).'img/advertisements/Image-Not-Available.jpg',
                                            'src' => ROOT.'/app/webroot/img/advertisements/'.$value['name'],
                                            'w' => 674,
                                            'h' => 420,
                                            'q' => 100,
                                            'zc' => 1
                                    )

                                );

Actually i am using the jcarousel slider which show image 3 at a time, for this image should be in same ratio so i need resize image to show slider

Localhost image slider enter image description here

Live Server image slider enter image description here

Please help its very usrgent, Thanks in advance

0

There are 0 best solutions below