codeigniter中的图像大小调整功能无法调整图像大小

时间:2017-03-03 14:28:29

标签: codeigniter

我有以下代码:

random.seed(1234)  # Specify a random seed

n = 500
for i in range(n):
    x = random.uniform(-4 4)
    y = random.uniform(-4,4)
    z = random.uniform(-4,4)

    pos = vector(x,y,z)

    # Make sure pos is not too close to both positive and negative charge
    if abs(pos - charge1.pos) > 1 and abs(pos - charge2.pos) > 1:
    # Create an arrow if it's far enough from both charges
    a = arrow(pos=pos, axis= Efield(pos, charge1) + Efield(pos,charge1))

我的图片上传成功。即使if($this->upload->do_upload()) { $data = array('upload_data' => $this->upload->data()); $configer = array( 'image_library' => 'gd2', 'source_image' => $data['upload_data']['full_path'], 'maintain_ratio' => TRUE, 'width' => 1024, 'height' => 350, ); $this->image_lib->clear(); $this->image_lib->initialize($configer); $this->image_lib->resize(); $upl_filename = $data['upload_data']['file_name']; $imageUpdateData = array($entity.'_image' => $upl_filename); $this->db->where($entity.'_id',$id); $queryImage = $this->db->update($entity,$imageUpdateData); $image1_success = 1; $image1_msg = "$entity updated successfully"; } 工作正常(因为我试图在函数工作时打印一条消息)。

但是,图像没有调整大小。我做错了什么?

0 个答案:

没有答案