上载和调整大小
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了上载和调整大小相关的知识,希望对你有一定的参考价值。
function do_upload() { 'allowed_types' => 'jpg|jpeg|gif|png', 'upload_path' => $this->gallery_path, 'max_size' => 2000 ); $this->load->library('upload', $config); $this->upload->do_upload(); $image_data = $this->upload->data(); 'source_image' => $image_data['full_path'], 'new_image' => $this->gallery_path . '/thumbs', 'maintain_ration' => true, 'width' => 180, 'height' => 150 ); $this->load->library('image_lib', $config); $this->image_lib->resize(); }
以上是关于上载和调整大小的主要内容,如果未能解决你的问题,请参考以下文章