<commit_before>h1. FastImage Resize

h4. FastImage Resize is an extremely light solution for resizing images in ruby by using libgd

FastImage Resize will resize gifs, jpegs, and png files.

It uses resampling to get good looking results.

And it doesn't rely on installing external libraries such as RMagick (which relies on ImageMagick or GraphicsMagick) or ImageScience (which relies on FreeImage).

h2. Examples

<pre>
<code>
  require 'fastimage_resize'

  FastImage.resize("http://stephensykes.com/images/ss.com_x.gif", "my.gif", 100, 20)
  => 1
</pre>
</code>

The file my.gif is created locally, containing the resized image.
<commit_msg>Minor doc upd<commit_after>h1. FastImage Resize

h4. FastImage Resize is an extremely light solution for resizing images in ruby by using libgd

FastImage Resize will resize gifs, jpegs, and png files.

It uses resampling to get good looking results.

And it doesn't rely on installing external heavy libraries such as RMagick (which relies on ImageMagick or GraphicsMagick) or ImageScience (which relies on FreeImage).

h2. Examples

<pre>
<code>
  require 'fastimage_resize'

  FastImage.resize("http://stephensykes.com/images/ss.com_x.gif", "my.gif", 100, 20)
  => 1
</pre>
</code>

The file my.gif is created locally, containing the resized image.

{'fraction_non_alphanumeric': 0.08012326656394453, 'fraction_numerical': 0.01386748844375963, 'mean_word_length': 4.504237288135593, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '5645810', 'n_tokens_mistral': 436, 'n_tokens_neox': 400, 'n_words': 167}