You can simply do this: echo "<img src='" . $object_image_url . "' 
alt='Image'>";

 Note that it will only work from the Production server as your image is 
hosted on the production server. 

On Wednesday, June 3, 2015 at 11:56:20 AM UTC-4, mohamed hassan wrote:
>
> Salutations Ryan,
>
> I am sorry Ryan i am misunderstand how can display the cropped image from 
> this link ? can you please give me an example how can i execute this ?
>
> Sorry for asking a lot .
>
> Thanks Ryan.
>
> On Wed, Jun 3, 2015 at 6:51 PM, Ryan (Cloud Platform Support) <
> rbruy...@google.com> wrote:
>
>> That link will display the cropped image. You can then display it on your 
>> website as you would any other image link.
>>
>>
>> On Wednesday, June 3, 2015 at 11:36:52 AM UTC-4, mohamed hassan wrote:
>>>
>>> Salutations Ryan,
>>>
>>> I am sorry for not being clarify with you . what i am asking about that 
>>> can i use the ( google-api-php-client ) library for php to get re-sized or 
>>> cropped images  and if not i used Google App engine SDK for php and used 
>>> Cloud Storage Tools class on my locolhost as the following :
>>>
>>> $object_image_file = 'gs://zatrek/contact.jpg';
>>> $object_image_url = 
>>> CloudStorageTools::getImageServingUrl($object_image_file,['size' => 
>>> 400, 'crop' => true]);
>>> echo $object_image_url;
>>>
>>> and i got as response 
>>> http://localhost:8080/_ah/img/encoded_gs_file:emF0cmVrL2NvbnRhY3QuanBn=s400-c
>>>
>>> how can i use this link to get my image cropped ?
>>>
>>> Thanks Ryan .
>>>
>>> On Wed, Jun 3, 2015 at 4:19 PM, Ryan (Cloud Platform Support) <
>>> rbruy...@google.com> wrote:
>>>
>>>> Salutations Mohamed,
>>>>
>>>> I would check out this page on serving an image 
>>>> <https://cloud.google.com/appengine/docs/php/googlestorage/images> and 
>>>> this 
>>>> page for options 
>>>> <https://cloud.google.com/appengine/docs/php/refdocs/classes/google.appengine.api.cloud_storage.CloudStorageTools#method_getImageServingUrl>.
>>>>  
>>>> If you run into issues I would recommend posting on StackOverflow 
>>>> <http://stackoverflow.com/questions/tagged/google-app-engine+php>. You 
>>>> should post what you have done and what error you receive. I would read 
>>>> this post first on how to ask a good question. 
>>>> <http://stackoverflow.com/help/how-to-ask> We do monitor GCP tags on 
>>>> StackOverflow.
>>>>
>>>> On Wednesday, June 3, 2015 at 6:34:39 AM UTC-4, mohamed hassan wrote:
>>>>>
>>>>> Please i downloaded google-api-PHP-client from GitHub from this link 
>>>>> ( https://github.com/google/google-api-php-client ) but i want to 
>>>>> know how can i get images from my buckets resized or cropped using php 
>>>>> code 
>>>>> or should i use any other tool ? please provide me with an example to do 
>>>>> that
>>>>>
>>>>> Thanks .
>>>>>
>>>>  -- 
>>>> You received this message because you are subscribed to a topic in the 
>>>> Google Groups "Google App Engine" group.
>>>> To unsubscribe from this topic, visit 
>>>> https://groups.google.com/d/topic/google-appengine/RIWoaLlLI9o/unsubscribe
>>>> .
>>>> To unsubscribe from this group and all its topics, send an email to 
>>>> google-appengine+unsubscr...@googlegroups.com.
>>>> To post to this group, send email to google-appengine@googlegroups.com.
>>>> Visit this group at http://groups.google.com/group/google-appengine.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/google-appengine/0dc24aad-c5c0-44d2-b04f-16402e33b38b%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/google-appengine/0dc24aad-c5c0-44d2-b04f-16402e33b38b%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>  -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Google App Engine" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/google-appengine/RIWoaLlLI9o/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> google-appengine+unsubscr...@googlegroups.com.
>> To post to this group, send email to google-appengine@googlegroups.com.
>> Visit this group at http://groups.google.com/group/google-appengine.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-appengine/e42c0b5b-d27c-43fe-a52e-853fbb9859f4%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/google-appengine/e42c0b5b-d27c-43fe-a52e-853fbb9859f4%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/3b341871-e2bd-4bdd-aafa-6eca929f2664%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to