Image style scale and crop not formatting right I had a scale and crop image style created, but I had to move it to code.  So, to re-create it, my code is:

function mymodule_image_default_styles() {
    $styles = array();

    $styles['mymodule_thumb'] = array(
        'label' =&gt; 'MyModule Thumbnail',
        'effects' =&gt; array(
            array(
                'name' =&gt; 'image_scale_and_crop',
                'data' =&gt; array(
                    'width' =&gt; 210,
                    'height' =&gt; 210

                ),
            )
        ),
        'name' =&gt; 'mymodule_thumb',
        'storage' =&gt; IMAGE_STORAGE_NORMAL

    );

    return $styles;
}


It's scaling to the 210px width, but it doesn't seem to be cropping right.

Am I missing something?  Before this, I tried separate scale and crop effects, but got the same result.

EDIT: If it matters, I'm calling image_style_url() and passing the style.
In addition to this code. Try using this

function mymodule_image_default_styles() {
  $styles = array();

  $styles['mymodule_thumb'] = array(
    'label' =&gt; 'MyModule Thumbnail',
    'effects' =&gt; array(
      array(
        'name' =&gt; 'image_scale',
        'data' =&gt; array(
          'width' =&gt; 200,
          'upscale' =&gt; 1,
          'height' =&gt; 200,
        ),
        'weight' =&gt; 0,
      ),
      array(
        'name' =&gt; 'image_crop',
        'data' =&gt; array(
          'width' =&gt; 210,
          'height' =&gt; 210
        ),
      )
    ),
    'name' =&gt; 'mymodule_thumb',
    'storage' =&gt; IMAGE_STORAGE_NORMAL
  );
  return $styles;
}


Hope it works!