jkphl / grunt-iconizr

SVG + PNG icon kit generator — Grunt plugin wrapping around node-iconizr that creates a CSS icon kit from a bunch of SVG files, serving them as SVG / PNG sprites or embedded data URIs along with suitable CSS / Sass / LESS / Stylus etc. stylesheet resources and a JavaScript loader for easy integration into your HTML documents
http://iconizr.com
MIT License
104 stars 9 forks source link

ENOTDIR #5

Open RobertCordes opened 10 years ago

RobertCordes commented 10 years ago

When I run the iconizr task, the SVG and PNG sprites get created successfully, but it doesn't create the CSS or SASS.

In the terminal it says the following: { [Error: spawn ENOTDIR] code: 'ENOTDIR', errno: 'ENOTDIR', syscall: 'spawn' }

jkphl commented 10 years ago

Hi @RobertCordes,

thanks for reporting this, and sorry that I can't be more responsive right now.

Could you please try to figure out if it's the PNG optimization that causes these troubles? You can easily do so by using the level: 0 configuration. Which platform are you on? Mac (if so, please also see #4)?

Cheers, Joschi

iansoper commented 10 years ago

I was having the same error and I set level: 0 in the config and that fixed it, the task was able to complete.

I have verbose set to 3, and this is the error i was getting before:

· Optimized PNG image "icons.png" ... ERROR { [Error: spawn ENOTDIR] code: 'ENOTDIR', errno: 'ENOTDIR', syscall: 'spawn' }

jkphl commented 10 years ago

hi @iansoper,

thanks for your report / confirmation!

May I assume that you are on a Mac as well? (@RobertCordes didn't answer my question yet ...) It seems that there are some Mac specific problems with one of the involved PNG optimization tools (pngcrush, pngquant and optipng). I could reproduce this on the MacBook of a friend of mine, but I didn't have the time to track it further down yet (unfortunately, it might be that I won't be able to do so for the next couple of weeks, as I'm usually not on a Mac and I'll go on a longer vacation shortly ... I'll see what I can do before ...).

level: 0 is practically disabling PNG optimization, so the fallback images will potentially be some bytes bigger that with the optimization enabled. They'll work anyway, however.

Thanks for your patience regarding this issue ...

RobertCordes commented 10 years ago

Hey, sorry that it took so long. Setting the level: 0 fixed it for me. Thank you so much!

RobertCordes commented 10 years ago

Hi @jkphl,

I’ve now tested it on two Macs and in both cases I’ve got the same error. But as I said, setting level: 0 fixed it. Thanks!

jkphl commented 10 years ago

Great that it works for you now, @RobertCordes. However, I'll still reopen this issue, as setting level to zero is not a proper long term solution. I'd rather have to fix the source of this problem ... ;)

RobertCordes commented 10 years ago

Yeah, you're right ;)