sae中缩图问题

#1 zhgzzy

下面的代码图片已经上传成功了,就是缩图不了,请jake看一下哪里有问题???
 //上传文件并返回地址
        $s = new SaeStorage();
    $file_url = $s->upload( $domain , $new_file_name , $tmp_name);
  //缩图
  $f = new SaeFetchurl();
  $img_data = $f->fetch($file_url);
  $img = new SaeImage();
  $img->setData( $img_data );
  $img->resize(500);
  $img->exec($file_ext,true);

2011-11-09 12:41:50

#2 jake

分开上传和缩图两步试试。

你的代码差不多和SAE的实例代码一样,没看出来有什么问题,分开来都用官方代码试试。
http://apidoc.sinaapp.com/sae/SaeStorage.htmlupload
http://apidoc.sinaapp.com/sae/SaeImage.html

2011-11-09 12:54:09

#3 zhgzzy

好象是只能缩,不能把重存

2011-11-09 13:33:59