Modifying implementation of "Search by Image" to pass along PNG/GIFs

45 views
Skip to first unread message

Tim Petri

unread,
Jul 23, 2021, 8:38:54 PM7/23/21
to Chromium-dev
Hi, 

Today, there are three search engines that implement the Search By Image API in chromium, as seen in prepopulated_search_engines.json. This flow happens on right-click of an image where, if enabled by the default search engine, the context menu provides an option to send that image as a search-by-image request. 

The current logic converts all images to jpeg before issuing the request. We are looking to switch this over to use the original PNGs (and GIFs) instead. All other image formats get converted to JPEG. The main reason we want to do this is to avoid the substitution with black that happens for transparent pixels in PNGs, and be able to handle this ourselves.  

Looking for feedback/concerns and above all PoCs from the Bing and Yandex folks who have worked on this. 

Thank you in advance,
Tim
Reply all
Reply to author
Forward
0 new messages