<div dir="ltr"><br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Quimby Extension</b> <span dir="ltr"><<a href="mailto:search.by.image.extension@gmail.com">search.by.image.extension@gmail.com</a>></span><br>
Date: Tue, Apr 16, 2013 at 3:45 PM<br>Subject: Re: Feature request: add a "Search by Image option" to the Firefox right-click context menu<br>To: Jared Wein <<a href="mailto:jwein@mozilla.com">jwein@mozilla.com</a>><br>
Cc: Alex Jordan <<a href="mailto:alexander3223098@gmail.com">alexander3223098@gmail.com</a>>, <a href="mailto:dev-apps-firefox@lists.mozilla.org">dev-apps-firefox@lists.mozilla.org</a><br><br><br><div dir="ltr">Hi Jared and Alex,<div>
    Thank you for your reply. Bug 787875 seems like a good thread for us to track. I will add my comments there from now on.</div><div>    As far as I know, There is no standardized API for this kind of reverse image search feature. We know that currently there are three websites that provide such a service: TinEye, Google (us), and Baidu. I know how Google Search by Image works, but for TineEye and Baidu, I can only venture a guess.</div>

<div>    For example, assuming that we are interested in an image on the web with the following URL:</div><div><a href="http://www.theplace2.ru/archive/transformers_2/img/Transformers_2_Reven-9.jpg" target="_blank">http://www.theplace2.ru/archive/transformers_2/img/Transformers_2_Reven-9.jpg</a>. Plug this into each of the services gives the following result:<br>

</div><div><br></div><div><br></div><div>TinEye</div><div><a href="http://tineye.com/search/fbb16280130adeefc8c5626becffa3eecef6e47e/" target="_blank">http://tineye.com/search/fbb16280130adeefc8c5626becffa3eecef6e47e/</a><br>

</div><div><br></div><div>Google</div><div><div><a href="http://www.google.com/searchbyimage?image_url=http://www.theplace2.ru/archive/transformers_2/img/Transformers_2_Reven-9.jpg" target="_blank">http://www.google.com/searchbyimage?image_url=http://www.theplace2.ru/archive/transformers_2/img/Transformers_2_Reven-9.jpg</a></div>

<div><br></div><div>Baidu ShiTu</div><div><div><a href="http://stu.baidu.com/i?objurl=http%3A%2F%2Fwww.theplace2.ru%2Farchive%2Ftransformers_2%2Fimg%2FTransformers_2_Reven-9.jpg&filename=&rt=0&rn=10&ftn=searchpcstu&ct=1&stt=0&tn=baiduimagepc&tab=0&oritn=face&pn=0&oritn=face" target="_blank">http://stu.baidu.com/i?objurl=http%3A%2F%2Fwww.theplace2.ru%2Farchive%2Ftransformers_2%2Fimg%2FTransformers_2_Reven-9.jpg&filename=&rt=0&rn=10&ftn=searchpcstu&ct=1&stt=0&tn=baiduimagepc&tab=0&oritn=face&pn=0&oritn=face</a></div>

<div><br></div></div></div><div><br></div><div>Both Google and Baidu use GET requests with their respective domain names and two special sets of cgi parameters:</div><div>"searchbyimage?image_url=" for Google, and</div>

<div>"i?objurl=...&rt=0&rn=10&ftn=searchpcstu&ct=1&tn=baiduimagepc" for Baidu.</div><div><br></div><div>However, TinEye seems to use a POST request for even URLs that's pasted to their search box.</div>

<div>I am not sure if they ever use GET, but if they do, then the suggestion from <a href="mailto:t8av@yahoo.com" target="_blank">t8av@yahoo.com</a> on the bug thread about using X=path could potentially work.</div><div>
<br></div>
<div>Also, after talking to some Chrome folks, it seems that Open Search API does not already support this feature, so we would need to add it for other search providers if they are going to support this in the future; though there does not seem to be any on the horizon. If you have any suggestion or initial thoughts about this API, we would love to hear them. Thanks a lot!</div>

<div><br></div><div><br></div><div>Best Regards</div><div>Howard</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Apr 14, 2013 at 5:45 PM, Jared Wein <span dir="ltr"><<a href="mailto:jwein@mozilla.com" target="_blank">jwein@mozilla.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>----- Original Message -----<br>
> From: "Alex Jordan" <<a href="mailto:alexander3223098@gmail.com" target="_blank">alexander3223098@gmail.com</a>><br>
> To: "search by image extension" <<a href="mailto:search.by.image.extension@gmail.com" target="_blank">search.by.image.extension@gmail.com</a>><br>
> Cc: <a href="mailto:dev-apps-firefox@lists.mozilla.org" target="_blank">dev-apps-firefox@lists.mozilla.org</a><br>
> Sent: Saturday, April 13, 2013 9:01:32 PM<br>
> Subject: Re: Feature request: add a "Search by Image option" to the Firefox   right-click context menu<br>
><br>
> On Apr 13, 2013 4:30 PM, <<a href="mailto:search.by.image.extension@gmail.com" target="_blank">search.by.image.extension@gmail.com</a>> wrote:<br>
> ><br>
> > Dear Firefox team,<br>
> >     I hope this is the right place to put in a feature request. I<br>
> >     work<br>
> for the Google Search by Image team, and we have a Firefox extension<br>
> for<br>
> enabling this functionality in Firefox (<br>
> <a href="https://addons.mozilla.org/en-US/firefox/addon/search-by-image-by-google/reviews/" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/search-by-image-by-google/reviews/</a><br>
> ).<br>
> >     I was wondering if it is possible to create a default Firefox<br>
> right-click context menu entry for any image on a web page. Clicking<br>
> on<br>
> that  would initiate a "search by this image" request to Google (us),<br>
> TinEye, Baidu, or any other reverse image search providers. It would<br>
> create<br>
> utility for users who are interested to know more about any image on<br>
> the<br>
> web. Please let us know if this is feasible, and we would love to<br>
> contribute in any way we can. Thanks!<br>
> ><br>
> > Best Regards<br>
> > Howard<br>
> This list is old; I think the new one's dev-firefox. Even better than<br>
> posting in a mailing list, you could file a bug[1].<br>
><br>
> [1]<a href="http://bugzilla.mozilla.org" target="_blank">bugzilla.mozilla.org</a><br>
<br>
</div></div>Hi Howard,<br>
<br>
Thanks for the email. As Alex mentioned, <a href="https://mail.mozilla.org/listinfo/firefox-dev" target="_blank">https://mail.mozilla.org/listinfo/firefox-dev</a> is the preferred mailing list that we are switching to.<br>


<br>
Having a context-specific image search could be a useful feature for Firefox. Is there a standardized API that defines how the various image search websites handle requests?<br>
<br>
This would probably be something we would need to add to the open search API. Do you have recommendations for that or does the Open Search API already support this?<br>
<br>
Bug 787875 (<a href="http://bugzil.la/787875" target="_blank">http://bugzil.la/787875</a>) was filed to request this feature, so no new bug needs to be filed.<br>
<br>
Thanks!<br>
<span><font color="#888888">Jared<br>
</font></span></blockquote></div><br></div>
</div></div></div><br></div>