gleero / grunt-favicons

Generate favicon.ico and icons for iOS, Android and WP8
MIT License
233 stars 48 forks source link

Task stop to working #60

Open fredw opened 9 years ago

fredw commented 9 years ago

Recently the task doesn't work anymore. The task is locked without generating any image.

Settings:

{
   options: {
        debug: true,
        precomposed: false,
        trueColor: true,
        appleTouchBackgroundColor: 'none',
        tileColor: 'none'
    },
    icons: {
        src: 'resources/images/favicon.png',
        dest: 'resources/build/images/favicons/'
    }
}

On terminal:

grunt favicons
Running "favicons:icons" (favicons) task
Resizing images for "resources/images/favicon.png"...
convert resources/images/favicon.png -resize 16x16 resources\build\images\favicons\16x16.png

My environment:

Windows 8
ImageMagick 6.9.1-2 Q16 x64 2015-04-14
Node.js v0.12.3
Petah commented 9 years ago

Did some digging looks like exec sync is not working?


Running "favicons:build" (favicons) task
[D] Task source: C:\work\typhoon\typhoon-front-end\node_modules\grunt-favicons\tasks\favicons.js
Verifying property favicons.build exists in config...OK
Files: private/images/favicon.png -> public/images/favicon
Options: debug, trueColor=false, precomposed, HTMLPrefix="", appleTouchBackgroundColor="auto", appleTouchPadding=15, windowsTile, coast=false, sharp=0, tileBlackWhite, tileColor="auto", firefox=false, apple, regular, firefoxRound=false, firefoxManifest="", androidHomescreen=false, indent="\t", getLowResolutionImagePath=undefined
run

convert private/images/favicon.png -polaroid 180 -resize 1x1 -colors 1 -alpha off -unique-colors txt:- | grep -v ImageMagick | sed -n 's/.*\(#[0-9A-F]*\).*/\1/p'
convert private/images/favicon.png -polaroid 180 -resize 1x1 -colors 1 -alpha off -unique-colors txt:- | grep -v ImageMagick | sed -n 's/.*\(#[0-9A-F]*\).*/\1/p' undefined undefined
create pipes
pipes created
(convert private/images/favicon.png -polaroid 180 -resize 1x1 -colors 1 -alpha off -unique-colors txt:- | grep -v ImageMagick | sed -n 's/.*\(#[0-9A-F]*\).*/\1/p' > C:\Users\USER\AppData\Local\Temp/sync-exec-360354202/stdout 2> C:\Users\USER\AppData\Local\Temp/sync-exec-360354202/stderr ); echo $? > C:\Users\USER\AppData\Local\Temp/sync-exec-360354202/status ; echo 1 > C:\Users\USER\AppData\Local\Temp/sync-exec-360354202/done

Running

convert private/images/favicon.png -polaroid 180 -resize 1x1 -colors 1 -alpha off -unique-colors txt:- | grep -v ImageMagick | sed -n 's/.*\(#[0-9A-F]*\).*/\1/p'

works fine, but

(convert private/images/favicon.png -polaroid 180 -resize 1x1 -colors 1 -alpha off -unique-colors txt:- | grep -v ImageMagick | sed -n 's/.*\(#[0-9A-F]*\).*/\1/p' > C:\Users\USER\AppData\Local\Temp/sync-exec-360354202/stdout 2> C:\Users\USER\AppData\Local\Temp/sync-exec-360354202/stderr ); echo $? > C:\Users\USER\AppData\Local\Temp/sync-exec-360354202/status ; echo 1 > C:\Users\USER\AppData\Local\Temp/sync-exec-360354202/done

does not.

codeengie commented 8 years ago

I am having the same issue. I'm on Win7x64 node 4.2.2 imageMagick-6.9.2-5-Q16-x64

module.exports = {
options: {
debug: true
},
icons: {
src: 'images/favicon.png',
dest: 'build/assets/images'
}
}