Git Product home page Git Product logo

pwabuilder-image-generator's Introduction

Please use our main repository for any issues/bugs/features suggestion.

App Image Generator

A web tool that generates images for various app platforms. Used by PWABuilder.com.

See a version of the website at http://appimagegenerator-prod.azurewebsites.net/.

Written in C# and ASP.net 4.5.2.

Origionally written by Peter Daukintis

Usage

POST to /api/image with the following Form Data:

Option Type Description
fileName bytes (Blob or File in JS) The bytes of the file from which to generate all the image of the target platform(s)
platform "android" | "chrome "| "firefox" | "ios" | "msteams" | "windows10" | "windows11" The platforms to generate the images for. To use multiple platforms, add this field multiple times to the form data
padding number How much padding to add to generated images. Must be between 0 and 1, where 0 is no padding and 1 is maximum. 0.3 is a reasonable value. Some platforms, such as Windows 11, control padding per-image. In such cases, this value will be ignored.
color string Optional. The background color to fill in the images' padding and non-square areas. The string can be a well-known color ("blue"), a hex color ("#ffeedd"), a hex color with alpha (#2828ab73), or "transparent". If omitted or null, the background color will be chosen from pixel (0,0) in the source image.

pwabuilder-image-generator's People

Contributors

judahgabriel avatar boyofgreen avatar martinkearn avatar marcerodriguez avatar ckgrafico avatar lukealvarez avatar rnrneverdies avatar gerardlopez avatar jgw96 avatar lee-leonardo avatar nmetulev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.