Open RobertCordes opened 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
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' }
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 ...
Hey, sorry that it took so long. Setting the level: 0
fixed it for me. Thank you so much!
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!
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 ... ;)
Yeah, you're right ;)
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' }