我可以在非app引擎项目中使用GAE的CloudStorageTools吗?

时间:2014-12-03 12:58:42

标签: php google-app-engine google-cloud-storage

我的应用正在使用Google云端存储来存储图片。我的应用不在谷歌应用引擎上。 我希望能够上传一张大图像并让谷歌服务调整大小的图像版本,如下所述: https://cloud.google.com/appengine/docs/php/googlestorage/images

根据上面的链接,我需要使用:

$object_image_file = 'gs://my-bucket/myfile.png';
$object_image_url = CloudStorageTools::getImageServingUrl($object_image_file,
                                            ['size' => 400, 'crop' => true]);

问题是CloudStorageTools是app引擎SDK的一部分,我无法让它在常规服务器上运行。

如何在应用引擎之外使用此类?

是否可以使用谷歌云存储并调整图像大小?

我正在使用PHP。

1 个答案:

答案 0 :(得分:2)

不,你不能在App Engine之外使用它。