Generate Favicon

Perform a full API request (build, send, parse and save)

generate_favicon()

Generate favicons from an image

Build

Functions for building parts of the API call.

build_favicon_design()

Build the favicon design section of the request

build_json_request()

Build the complete JSON request

build_master_picture()

Build the master picture section of the request

build_settings()

Build the settings part of the request

build_versioning()

Build the versioning part of the request

Send

Functions for sending API requests.

send_request()

Send an API request to realfavicongenerator.net

Parse and Save

Functions to parse and save the API responses

parse_response()

Parse an API response

save_file()

Save the favicon hosted on the realfavicongenerator.net servers

Helper

Helper functions used to build platform-specific parameters.

android_chrome_helper()

Create Android Chrome favicon parameters

coast_helper()

Create Cost favicon parameters

firefox_app_helper()

Create Firefox favicon parameters

ios_helper()

Create iOS favicon parameters

open_graph_helper()

Further details can be found in the realfavicongenerator.net API documentation

safari_pinned_tab_helper()

Create Safari pinned tab favicon parameters

windows_helper()

Create Windows favicon parameters

yandex_browser_helper()

Create Yandex favicon parameters

Utility

Misc. utility functions

local_image()

Encode a local favicon image to be passed to the API

url_image()

Provide an image via url to be passed to the API

remove_null_list()

Create a list and remove NULLs

remove_empty_list()

Create a list excluding empty elements