Git Product home page Git Product logo

flutter-asset-converter's Introduction

Flutter Asset Converter

Description

flutter-asset-converter is a shell script which aim to help with @2x, @3x, etc. naming convention for images.
Most design tools export assets with @2x, @3x naming convention, but flutter uses folders named 2.0x, 3.0x instead.
With this script you can restructure and rename folders containing assets with @Nx postfixes and use them with flutter.

VERSION: 1.0.0

USAGE:
    ./flutter-asset-converter.sh ~/assets

DESCRIPTION:
    This script aim to rename assets exported in @2x, @3x, etc. naming convention to flutter asset convention.

    - assets - the asset-folder, containing n sub folders with following asset-structure:
      - asset1
        - vector.png
        - [email protected]
        - [email protected]
      - asset2
        - vector.png
        - [email protected]
        - [email protected]
      - ...

AUTHOR:
    Rafael M.

EXAMPLE:
    ./flutter-asset-converter.sh ~/Development/Project/Assets/Export

๐Ÿšจ Note: bare script -> no error check or anything fancy yet -> use at own risk ๐Ÿšจ

Usage

  1. Clone

     git clone https://github.com/rafaelmaeuer/flutter-asset-converter
     cd flutter-asset-converter
     chmod +x flutter-asset-converter.sh
    
  2. Run

     device:flutter-asset-converter$ ./flutter-asset-converter ~/assets
     start
     process asset1
     process asset2
     process asset3
     process asset4
     process asset5
     done
    

Links

License

This script follow MIT license.

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.