There seems to be no direct way to query a users google profile image with a specific resolution on Android. The documented approach is here: https://developers.google.com/identity/sign-in/android/people
That approach provides an image URL which is of a low resolution (using: GoogleSignInAccount's getPhotoUrl() method).
The corresponding approach on iOS does have a way to get the profile image by specifying a resolution as mentioned here:https://developers.google.com/identity/sign-in/ios/api/interface_g_i_d_profile_data#a8e229bffe211894473058c4ba247553c
The workaround suggested in one of the stackoverflow posts is to do a string replacement in the retrieved URL to get a larger image. Link: Photo size in getPhotoUrl() method Google Identity toolkit
Is there a better way to get a higher resolution google profile image on Android for Google Sign-in?
Related
When utilising Firebase Storage to store imagery, for example, user avatars, is there a way that you can request a smaller, thumbnail sized serving of the image?
I have searched Google and documentation and I have been unable to come up with a result. Currently my app utilising Firebase Storage URLs experiences a minor delay prior to loading images due to the fact that it I am requesting large images to fill tiny avatars.
Is there a resource I am overlooking that specifies the available parameters for this URL? (of which token & alt are two I'm aware of).
Thank you for the assistance in advance.
Auto-resizing images upon read is not a feature of Firebase Storage. The typical solution is to create variants of the images during upload, for example through the Resize Images extension.
i have page in which i have image of watsapp icon. What i want is when i tap on that image it go to watsapp to specific number which will be our company number, so client can text us or send any image or file through watsapp
The easiest way would be through the custom URL scheme as described here: https://faq.whatsapp.com/en/iphone/23559013
Which basically tells you to open a URI like this: whatsapp://send?text=Hello%2C%20World!. You can simply open it by calling to the Device.OpenUri method of Xamarin.Forms. This should work cross-platform for iOS and Android.
If you want to share a photo immediately this isn't possible as far as I know. It is possible to someone that is in your recent chats, by the sharing API, but to my knowledge you can't send it to a random number. At least not for iOS, it might be different for Android.
I know it's possible to use Google API vision to find similar images on the web.
My goal is to find similar images based on my database of images.
I don't want similar images on the web.
Is it possible?
If yes, can you guide me with some links or some advices?
Thanks!
The Google Vision API web detection feature can be used only to return the contents of the image as they relate to the Google Knowledge Graph, as well as the image's relation to other pages and images on the web.
Based on this, it is not currently possible to use it by specifying your own database of images; However, I suggest you to use the Send Feedback button located at the lower left and upper right corners of the Detecting other features public documentation in order to notify to Google about this desired functionality.
You can upload your images to google cloud and do the job.
You have 2 choices: Google product search or AutoML. With product search you can compare an image with a set of images of products. You will find product form image.
You can also use AutoMl, upload some images and train them. You can predict images with AutoMl API in this case.
I saw the deprecation message and the blog post by Google and I'm completely stumped on what will continue to work and what not.
I don't upload images to my account. I understand that this service will no longer be available.
What I do use, is this api: http://www.panoramio.com/map/get_panoramas.php, for showing images near locations on my website.
Will I be able to keep using it?
If so, until when? And shouldn't that be clearly stated?
If not, is there a parallel Google Maps api to get such images? I'm aware of Google Locations api, but I'm more interested in nearby outdoors images, and not places of business and named land marks.
Thank you.
UPDATE: as stated in the comment, the service is indeed down. The image urls we already have are still operational for another year, but we can't search for other existing images anymore. So we made the transition to Flickr. It was very easy and it works great.
It is stated in the link that you provide that after November 4, 2016, you’ll continue to have access to your photos in Panoramio for a year, but take note that you will no longer be able to add new photos, likes, or comments.
I suggest you to check this Google Static Maps API, it lets you embed a Google Maps image on your web page without requiring JavaScript or any dynamic page loading. The Google Static Maps API service creates your map based on URL parameters sent through a standard HTTP request and returns the map as an image you can display on your web page.
I am posting photos to Open Graph actions, they get resized to a thumbnail around 50*50 px .
In order to post a picture with activity, I use image[]=URL in action parameters. However my thumbnail gets very small and in the timeline, people had to click on it and get to my site to see actual picture.
However, Foursquare recently implemented a Open Graph integration to Facebook. Now, if foursquare checkins have photos, they are posted to facebook in a high resolution and they appear in timeline like a real Wall Photo posted. (width = 300 , height = auto). (less resized)
How can we achieve that? Is that a deal between Foursquare and Facebook or is it publicly available feature of FB Open Graph?
This feature is called User Generated Photos - its available to any app where the user actually took the picture on their device. It may not be used to make non-user generated photos large.
Here's the docs: https://developers.facebook.com/docs/opengraph/usergeneratedphotos/