FigureSlice

command module
v0.0.0-...-fac9772 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2023 License: MIT Imports: 5 Imported by: 0

README

FigureSlice

Go to the website


About

Figure Slice is a web tool for clipping images with various shapes. The in-browser editor lets you create shapes that go over your image and act as a mask. When the image is processed you will only get the parts of the image that are seen through the shapes drawn. Changing the opacity of each shape is also possible.


editor

How to use

The website has clear and concise instructions when it comes to actually using the editor. If something is unclear or you find a bug that is not listed below, please feel free to create an issue.



How it works

The editor is made with plain javascript and DOM manipulation. The shapes drawn are just divs with a displaced background image relative to the source image. When done, the shapes positions and sizes are scaled to match the dimensions of the source image.

The code for the image editing process is found in the img directory. The shapes sent from the editor are drawn to a blank image buffer and that buffer is used as a mask when drawing the new image with the standard Go image/draw library.


example

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL