Skip to content

Multiple image resize recursivelly ends up with fatal error #22

@umpirsky

Description

@umpirsky

I want to resize all images inside this folder recursively (and keep folder structure).

Here is my config:

image_resize: {
      resize: {
        options: {
          width: 400,
        },
        expand: true,
        src: '<%= yeoman.app %>/images/menu/**/*',
        dest: '<%= yeoman.dist %>/thumbnails/'
      }
    }

When I run it:

$ grunt image_resize
Running "image_resize:resize" (image_resize) task
Fatal error: Cannot read property 'width' of undefined


Execution Time (2015-03-29 00:24:10 UTC)
loading tasks         2ms  ▇▇▇ 3%
image_resize:resize  77ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 97%
Total 79ms

Code is available on umpirsky/stajesti.rs@24f3b76.

I am aware of #14 and #11, but looks like it is not my case.

I noticed that it resizes successfully only for first folder, and then fails with this error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions