All Projects → GroupeCurious → ngx-image-drawing

GroupeCurious / ngx-image-drawing

Licence: MIT license
Angular module to draw on images

Programming Languages

typescript
32286 projects
HTML
75241 projects
SCSS
7915 projects

Projects that are alternatives of or similar to ngx-image-drawing

deployserver
Deploy your project automatically when git branch was updated.
Stars: ✭ 24 (-42.86%)
Mutual labels:  module
template-nm
Scaffold out a node module
Stars: ✭ 30 (-28.57%)
Mutual labels:  module
default-gateway
Get the default network gateway, cross-platform.
Stars: ✭ 77 (+83.33%)
Mutual labels:  module
jsberry
JSBerry is open source modular simple architecture for building Node.js applications.
Stars: ✭ 85 (+102.38%)
Mutual labels:  module
WireBirb
A scapy based module for programming offensive and defensive networking tools easier than before.
Stars: ✭ 16 (-61.9%)
Mutual labels:  module
module-invalidate
Invalidate node.js modules loaded through require()
Stars: ✭ 19 (-54.76%)
Mutual labels:  module
CodeforcesApiPy
Implementation of https://codeforces.com API
Stars: ✭ 17 (-59.52%)
Mutual labels:  module
twbs-helper-module
Laminas (formerly Zend Framework) module for easy integration of Twitter Bootstrap
Stars: ✭ 18 (-57.14%)
Mutual labels:  module
puppetlabs-acl
ACL (Access Control List) module
Stars: ✭ 20 (-52.38%)
Mutual labels:  module
theme-next-three
JavaScript 3D library for NexT.
Stars: ✭ 27 (-35.71%)
Mutual labels:  module
tracker-issues
Issue tracking system and Workflow documents integrated to Humhub
Stars: ✭ 28 (-33.33%)
Mutual labels:  module
bs-dynamic-import
📦🚀 BuckleScript dynamic import interop on JavaScript environment
Stars: ✭ 31 (-26.19%)
Mutual labels:  module
puppetlabs-puppet agent
Module for managing Puppet-Agent
Stars: ✭ 39 (-7.14%)
Mutual labels:  module
fury-kubernetes-opa
Kubernetes Fury OPA. Policy enforcement for your Kubernetes Cluster
Stars: ✭ 34 (-19.05%)
Mutual labels:  module
icingaweb2-module-pdfexport
PDF export functionality for Icinga Web 2
Stars: ✭ 27 (-35.71%)
Mutual labels:  module
puppetlabs-dns
A Puppet DNS records management module for DNSimple, DNSMadeEasy and AWS Route53
Stars: ✭ 23 (-45.24%)
Mutual labels:  module
kuu
Modular Go Web Framework based on GORM and Gin.
Stars: ✭ 15 (-64.29%)
Mutual labels:  module
duckpy
A simple Python library for searching on DuckDuckGo.
Stars: ✭ 20 (-52.38%)
Mutual labels:  module
Neural-Plot-Development
A Library for visualizing Neural Networks of the TensorFlow/Keras models.
Stars: ✭ 16 (-61.9%)
Mutual labels:  module
AppSystemizer
AppSystemizer
Stars: ✭ 52 (+23.81%)
Mutual labels:  module

Ngx Image Drawing

Screenshot

Ps. No animals were harmed in taking this picture :P

Description

This module allow to draw on pictures and export the result. (Uses canvas & fabric.js)

Installation

npm install --save ngx-image-drawing

Usage

Add the ImageDrawingModule to the imports of the module which will be using the drawing module.

import { NgModule } from '@angular/core';
import { ImageDrawingModule } from 'ngx-image-drawing';

@NgModule({
    imports: [
        ...
        ImageDrawingModule
    ],
    declarations: [
        ...
    ],
    exports: [
        ...
    ],
    providers: [
        ...
    ]
})
export class YourModule {
}

You can now use in a component like so

<image-drawing
    [src]="imageUrl"
    outputMimeType="'image/jpeg'"
    outputQuality="0.8"
    (save)="save($event)"
    (cancel)="cancel()">
</image-drawing>

Inputs

  • src: string : Image url
  • i18n: I18nInterface? : Object with all text used (default value : 'I18nEn' )
  • outputMimeType: string? : Mime Type of the output image, can be image/png, image/jpeg or image/webp
  • outputQuality: number?: Number between 0 and 1 to determine the quality of the ouput image (if mimeType is jpeg or webp)
  • loadingTemplate: TemplateRef<any>? : Image loading template
  • errorTemplate: TemplateRef<any>? : Image loading error template
  • enableTooltip: boolean? : Enable / disable tooltip for toolbar buttons/actions (default value: true)
  • tooltipLanguage: string? : Language of tooltip (en or fr) (default value: en)
  • width: number? : Width of the canvas (needed if no src given)
  • height: number? : Height of the canvas (needed if no src given)
  • forceSizeCanvas: boolean : Force the canvas to width and height of image or with those specified (default true)
  • forceSizeExport: boolean : Force the exported image to width and height with those specified (default false)
  • borderCss: string? : Add a border to the canvas in CSS (default value: none, example: 1px solib black)
  • enableRemoveImage: boolean : Enable the option to remove the image loaded (default false)
  • enableLoadAnotherImage: boolean : Enable the option to load another image (default false)
  • showCancelButton: boolean : Enable the cancel button (default true)
  • colors: { string: string }? : Colors available for users (default black, white, yellow, red, blue, green, purple)
  • drawingSizes: { string: string }? : Sizes available for users (default 5, 10, 25px)

Actions

  • save - Action on save button click, use $event to get the new edited image
  • cancel - Action on cancel button click

Maintainers

Contributors

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].