You can use the inurl: operator in a query with the Image Search API. I haven't tried it with the Custom Search API's image search functionality. But here's the thing: if you already know the url of the image you want; you just want it scaled, why not build a simple image scaler in PHP or Perl using ImageMagick. You could then pass the url and the desired dimensions to this scaler on your server, it would fetch and scale the image, and you wouldn't have to wait for a round trip to Google for the search results, run through them to make sure the image you really wanted was in there, and then go get the thumbnail for that image. It would also give you the flexibility to cache the image somewhere on your own server and/or return it in any arbitrary size you like, rather than the single thumbnail option Google offers.
jg On Wed, Aug 7, 2013 at 12:38 AM, Kuldeep Chowhan <[email protected]>wrote: > Is there a way to query for a image using an Url meaning is there a api > which is similar to "Search by Image" functionality so that i can multiple > sizes of the same image. > > -- > -- > You received this message because you are subscribed to the Google > Groups "Google AJAX APIs" group. > To post to this group, send email to > [email protected] > To unsubscribe from this group, send email to > [email protected] > To view this message on the web, visit > > https://groups.google.com/d/msgid/google-ajax-search-api/516abe7f-4803-4c86-80e2-2dd5f4a28e30%40googlegroups.com > For more options, visit this group at > http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "Google AJAX APIs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Jeremy R. Geerdes Generally Cool Guy Des Moines, IA If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church! http://www.debraheightswesleyan.org -- -- You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] To view this message on the web, visit https://groups.google.com/d/msgid/google-ajax-search-api/CAF4cwg_eiRNTVCXryXA_umgT9Pi6e0XnY5scs66t-GPCj6j%2BsA%40mail.gmail.com For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
