Giter Club home page Giter Club logo

image-in-browser.examples's Introduction

Overview

This project contains a set of examples of using library image-in-browser.

All tests are located in the examples folder.

Files with examples are divided into sections according to the subject of the example.

Each example is a separate Typescript file and is independent from other examples.

NOTE: There is also a _utils folder. Unlike other folders, it doesn't contain examples, but stores some helpers and commonly used functions that are used as syntactic sugar in the examples.

How to run and debug?

To run the examples, it is most convenient to use the VSCode IDE, for which the corresponding launch scripts have already been prepared.

To run the example:

  • open the file with the example you want to run or debug
  • press F5 in VSCode

The environment will launch the build process in the background, and then launch the currently open example for execution and debugging.

Quick links to examples

Getting basic information about image

Getting basic information about a PNG image

Getting basic information about a PSD image

Getting basic information about a PVR image

Getting basic information about a WebP image

Displaying a MemoryImage on a canvas

Displaying a PNG image on a canvas

Conversion

Сonversion from PNG to BMP

Сonversion from PNG to GIF

Сonversion from PNG to ICO

Сonversion from PNG to JPG

Drawing

Overlaying images on top of each other

Drawing lines on the image

Drawing pixels of different colors

Drawing filled rectangles

Filling the entire image with a solid color

Working with EXIF data

Writing and reading EXIF data of JPG image

Removing EXIF data from JPG image

Filters

Applying a contrast filter

Applying a monochrome filter

Applying a sepia filter

MemoryImage features

Getting MemoryImage bytes in a specific order

Iterating over MemoryImage pixels

Transformations

Cropping images in a circle shape

Flip image

Rotating an image

Links

Link to the project these examples are for:

image-in-browser (GitHub)

image-in-browser.examples's People

Contributors

yegor-pelykh avatar

Watchers

 avatar  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.