Cakephp:$ this-> Thumb-> show()无法在实时服务器

时间:2016-07-08 06:54:49

标签: cakephp image-resizing jcarousel

我正在使用 cakephp版本2.5.5 ,我想在显示时调整图像大小,为此我使用$ this-> Thumb-> show()来自 phpThumb ,它只能在localhost而不是在实时服务器上运行

$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
                                    )

                                );

其实我正在使用jcarousel滑块一次显示图像3,因为这个图像应该是相同的比例,所以我需要调整大小图像来显示滑块

Localhost图像滑块 enter image description here

Live Server图像滑块 enter image description here

请帮助它非常紧急,提前致谢

0 个答案:

没有答案