Mobile/Fennec/Android/Updating search engine icons

From MozillaWiki
< Mobile‎ | Fennec‎ | Android
Jump to: navigation, search

To update the search engine icons that appear in the BrowserSearch screen:

  1. Get the highest resolution version of the asset. Currently, we use xxhdpi.
  2. Losslessly compress the asset – for example, use ImageOptim on OS X or trimage on Linux.
  3. Convert the image to base64 encoding. On OS X, I use the base64 utility: base64 <file> | pbcopy
  4. Open the XML file of the asset you'd like to update. The search engine icons are located in mobile/locales/en-US/searchplugins/.
  5. Replace the base64 encoded asset with the new one. This is the text after <Image width="16" height="16">data:image/png;base64, and before </Image>. Be sure to keep the comma after base64! Note also that the width & height values do not change – these are legacy values and do not affect the final size of the asset.
  6. Test it!