Coder Social home page Coder Social logo

svgnest-batch's Introduction

SVGnest batch

An image showing the application

About

This script uses the svg nesting library SVGnest by the awesome Jack Qiao. You can drag and drop files to process multiple files after each other. Handy when you have to process multiple files (with the same settings).

DISCLAIMER: This script was written for a very specific use case, so you might have to adapt things for your needs 😞

How to run

  1. Download everything
  2. Serve using a localhost (otherwise it will not work, because SVGnest is using a webworker)
  3. Done.

Note: If you don't know how to set up a localhost, use an extension like Web Server for Chrome.

How to use

Drag and drop an .svg file into the window (multiple also work). After being processed, they will be saved into your downloads folder.

Limitation 1: The .svg has to contain the bin (where other elements are packed into) and be tagged by a class named 'bin'.

Limitation 2: Settings are hardcoded into the index.html file. Change these to change settings.

Limitation 3: Supports only 1 iteration for now.

Limitation 4: The exported files will have numbers counting upwards (e.g. 001, 002, etc.), but every second file will have an m added to it (I mentioned it before—very specific use case ...).

License

My code is public domain, but please check [https://github.com/Jack000/SVGnest](Jack000's repository) for details on SVGnest.

svgnest-batch's People

Contributors

stephanbogner avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

ychuan1115

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.