Is it possible to get larger image size for company logos via the Linkedin API? - image

See the one that comes back from
https://api.linkedin.com/v1/companies/id=1337:(id,name,logo-url)
it's quite small! https://media.licdn.com/mpr/mpr/p/6/005/056/054/057ffb7.png
Would be great if could get a larger version
(note, the apigee console here may be helpful)

The information you're looking for is in the member profile field documentation on LinkedIn's developer website: https://developer.linkedin.com/docs/fields/basic-profile
picture-urls::(original)
A URL to the member's original unformatted profile picture. This
image is usually larger than the picture-url value above.

Related

Yammer - User Profile Picture In Embedded Topic Feed

I have a website that shows all the posts from Yammer regarding a particular topic in the Yammer Embedded Feed. However, the feed does not show the profile picture of the User who has posted in that topic.
Is there any way I can achieve this feature? Thanks in advance.
Make sure your container is at least 400 pixels wide. Otherwise, I believe it uses a "skinny" version of the display which does not include the profile photos. See this page for more info: https://developer.yammer.com/docs/feed-events (paragraph Skinny mode).
Corinne

post full image on user wall

I m using latest php sdk. I can post to wall with this api. message,picture can be posted to user wall. But the picture is as thumbnail and as link.
Bu I saw some apps on facebook which post full image in wall.
How can I do this. So that PHP genered image can be posted to user wall with full size.
thanks
You probably want to look into Explicit Sharing on open graph actions. By marking an action as explicitly sharing, the post is treated like a status update and has a chance to be shown as a standalone story with a full size picture (such as Instagram, Foursquare, etc.)

Direct URL to "I'm Feeling Lucky" for images

I have a website for book reviews. I offer a link to the Amazon entry of the books. I discovered after a bit of research that the direct URL for Google's "I'm Feeling Lucky" is:
http://www.google.com/search?hl=en&q=TITLE+AUTHOR+amazon&btnI=745
Which works magic because then I don't have to manually include the Amazon link in my database and directly links to the Amazon page (works 99.99% of the times).
I was wondering if there was an equivalent for images (whether Google or some alternative) to retrieve an image URL based on keywords only (for the purpose of getting the book cover image).
There's no such thing for Google Images, but you might be able to use another web service to do what you want. I noticed that when you're searching for a book, the first image result isn't always the cover of it. Sometimes it's a photo of the author, sometimes it's some image from book's review, so you can hardly rely on that.
It should not be hard to parse the amazon page and get the image and link but google has an API to google books that return all informations about a book in JSON format, you can try it online on the API Explorer (the cover are on the results too). Click here to see an example (click "Execute" to run it).
Unfortunately public Google search engine doesn't support that. You should use Custom Search API to implement such feature in your application. Alternatively use XGoogle (unofficial Python wrapper to Google Search services, see google_dl tool for example).
Other suggestions is to use:
YQL by Yahoo (see yql-tables repo at GitHub for examples).
Use alternative search engines.
E.g. In Wolfram Alpha you can type: "show image of laptop" and it'll give you the first popular picture, however you need to use Wolfram|Alpha APIs or some script (see this ChatBot for example) to pick up the direct link.

Download Images from wikipedia by Music Category and Handling Updates

I am trying to get Music Artist images and Album Art information from Wikipedia. Has anyone tried this before?
I searched around and found few links with relevant information
http://commons.wikimedia.org/w/index.php?title=Special:Search&ns0=1&ns6=1&ns12=1&ns14=1&ns100=1&ns106=1&redirs=0&search=buitenzorg&limit=10&offset=0 - search images for buitenzorg
http://www.mediawiki.org/wiki/API:Allimages - All images API call to fetch image urls from wiki
But could not find a way to download all the images from Music category and run deltas for updates after the initial download. Any pointers to the solution will be helpful.
I searched everywhere and finally I went with below mentioned implementation.
Here's the api documentation: http://www.mediawiki.org/wiki/API:Main_page
Call wikipedia API for artist page
Look at the player card info given on the right, and get the image name.
Make another wikimedia call to get Image download url.
Download the actual image.
For deltas, the only way is to hit wikipedia APIs again with image name and check for updates.
The other work around for this is setting your own wikimedia server, which will handle deltas.
See here http://www.mediawiki.org/wiki/Manual:Installation_guide

Dynamically shrink an image with Google Images API, but do not enlarge

Google provides an excellent way to resize images dynamically; simply append =sXX to the image URL. This is perfect if you want to shrink an image, but if the image is smaller than the size specified, it enlarges it, giving it a pixelated effect.
Is there an easy way to say "don't enlarge, only shrink" when using serving URLs with a specified size?
UPDATE
This functionality is now a feature request at GAE. Vote it up if you'd like to see it!
As stated in my comments above, this isn't possible.
Although I have no use of the image framework I can see how your request would be useful. May I suggest posting a Feature Request on the Google App Engines Issues BB?
After posting the request, update your StackOverflow question with a link to your Feature Request so that other users can +1 the request.
Here's the link to the GAE Issues Page. Although this is not a bug, you will need to click the New Issue button to request a feature.
What you could do is store the size of the image in the datastore so when you need the image to be a certain size, you can check in the datastore to see what size it is and add the =sXX accordingly.

Resources