-
Notifications
You must be signed in to change notification settings - Fork 44
Multiple image resize recursivelly ends up with fatal error #22
Copy link
Copy link
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels