Use Schema.org for Article without image property? - image

I have implemented Schema.org in my project, I have added Article section but we did not have image so it shows an error
A value for the image field is required.
How can I fix this error and is there any solution for using Article without image section?

If you don’t have an image, you can’t (and you are not supposed to) fix it.
This is not an error with your use of Schema.org. It just means that you don’t get Google’s Article search feature, which needs an image:
The representative image of the article. Only a marked-up image that directly belongs to the article should be specified.
Ideally Google would mark it as info/warning instead of error in their SDTT.

Related

Lightbox2: Display other picture if named image is lost

I have a lot galleries displayed with Lightbox2 and it works fine.
Now I want to delete the larger version of the pictures, but keep the gallery with the thumbnails for visitors.
How can I manage, that lightbox2 displays an alternative image, if the given file in the html is not existing?
I couldn't find an option in lightbox.js to handle with missing targets.
I had the same question, but after a little research I decided that Lightbox2 is not the right place to handle missing images. Instead, that should be handled at the server or application level.
The web server will respond with a 404 error for any missing resource, whether a web page, image, or anything else. In most cases, it also returns a small HTML page to alert the user (such as this example at Google).
You can usually configure your server or application to return a default 404-style image instead of an HTML page if the requested resource was an image. That will then be displayed to the user instead of the broken image symbol.
How you do this of course depends on the particular server/application stack you are using, but here is a good solution for Apache.

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

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.

Google similar image search API

I'm trying to find out if there is a way to do google similar image searches via an API?
I know the image search api is depreciated but is it still useable?
https://developers.google.com/image-search/
Also... It seems that you can do image searches with the custom search api but I can't seem to work out if a similar image search is possible.
http://thenextweb.com/dd/2012/02/14/googles-custom-search-api-now-supports-image-only-results/
Any leads on advice on working this our would be appreciated.
Thanks!
If you have a URL for a hosted image (using Dropbox, imgur, etc), the answer at https://stackoverflow.com/a/15134958/116891 shows you how to find similar images. Basically,
http://images.google.com/searchbyimage?image_url=YOUR_HOSTED_URL
That is deprecated.
But I need JSON format of similar images result.
So, I try to use google cse but this is not supported searching of similar images.
It's just displayed image search results in a custom domain.
Another method that i try is URL.
http://images.google.com/searchbyimage?image_url=YOUR_HOSTED_URL
But this is not solution what i need.
It is because able to use in the browser. I need JSON.
Conclude, I decide to use Vision API of Google.
This is very simple.
https://cloud.google.com/vision/
You can try on the top.
First, access the URL.
Second, upload your image file on the "Try API".
Third, click "JSON" tab menu on the result.
You can be seen JSON about similar images.

is there a way to display author image in joomla article

I'm currently designing a website for a client and the client is requesting to display the author picture and name on every article. I searched but, can't find an option to do that.
Is there a way to display the author picture on each article?
There are a number of extensions that will let you integrate with Gravatar and other services.
In terms of the Joomla core, you can already link an author to a contact page with an image (when the author is the linked user) and you could write a plugin to pull the image from the contact record since you already have the record id. You could also store the image location as part of the user profile and write a plugin for that.

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