GithubHelp home page GithubHelp logo

victoriaquasar / csharpapiimageconverter Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 3.0 1.57 MB

ASP.NET Rest API example for real-time image conversion from "base64" codes.

C# 87.73% JavaScript 12.27%

csharpapiimageconverter's Introduction

CSharpApiImageConverter

Rest API example for real-time image conversion from "base64" codes.

Usage

General

Currently this project is an image converter example, being able to accept a Base64 code of any type and convert it to the following types:

  • png
  • jpg
  • bmp

POST - From direct base 64 code

Use dotnet run and access the endpoint /convert/ with a POST request providing the file and output arguments as Base64 and output type.

GET - From url

Use dotnet run and access the endpoint /convert/ with a GET request providing the file and output arguments as URL path and output type.

Manual Testing

To test the API you might go to the endpoint /test/ and paste the "ManualTests/ConversionTest.js" in the console, by the default code you will be redirected to a Lore Picsum image converted by the AspImageConverter.

Unit Tests

The project uses XUnit to setup unit tests, currently passing in the tests:

  • ImageConversionIntegrity (More info in the test)

csharpapiimageconverter's People

Contributors

scarletquasar avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.