<commit_before># motion-assets

motion-assets allows RubyMotion projects to use ImageMagick to generate all the icons sizes.


## Installation

You need to have ImageMagick installed: 

    ```
    $ brew install imagemagick
    ```

And the gem installed: 

    ```
    $ [sudo] gem install motion-assets
    ```

Or if you use Bundler:

    ```ruby
    gem 'motion-assets'
    ```


## Setup

In the `Rakefile`, set the path your base image :

   ```ruby
   Motion::Project::App.setup do |app|
      # ...
      app.assets.base_icon = "./src_images/icon-1024x1024.png"
   end
   ```

## Configuration

You can add or remove icons :

    ```ruby
    Motion::Project::App.setup do |app|
      # ...
      app.assets.icons << 'CustomSize.png|32x32'
      app.assets.icons.delete('Icon-60@2x.png|120x120')
    end
    ```

## Tasks

To tell motion-assets to generate the assets :

```
$ [bundle exec] rake assets:generate
```


note : the sample icon comes from the greal Pixemaltor tool, http://www.pixelmator.com/<commit_msg>formating<commit_after># motion-assets

motion-assets allows RubyMotion projects to use ImageMagick to generate all the icons sizes.


## Installation

You need to have ImageMagick installed: 

```
$ brew install imagemagick
```

And the gem installed: 

```
$ [sudo] gem install motion-assets
```

Or if you use Bundler:

```ruby
gem 'motion-assets'
```


## Setup

In the `Rakefile`, set the path your base image :

```ruby
Motion::Project::App.setup do |app|
  # ...
  app.assets.base_icon = "./src_images/icon-1024x1024.png"
end
```

## Configuration

You can add or remove icons :

```ruby
Motion::Project::App.setup do |app|
  # ...
  app.assets.icons << 'CustomSize.png|32x32'
  app.assets.icons.delete('Icon-60@2x.png|120x120')
end
```

## Tasks

To tell motion-assets to generate the assets :

```
$ [bundle exec] rake assets:generate
```


note : the sample icon comes from the greal Pixemaltor tool, http://www.pixelmator.com/
{'fraction_non_alphanumeric': 0.1345565749235474, 'fraction_numerical': 0.021406727828746176, 'mean_word_length': 3.2581344902386116, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6549905', 'n_tokens_mistral': 717, 'n_tokens_neox': 637, 'n_words': 191}