Comments (10)
Hey,
glad you like iconizr. I guess the only thing you're missing is the --css
(and / or --sass
) switch to tell iconizr to produce the CSS resources. You don't see them as well, right? So your command should e.g. be
iconizr --css --png 32768 --out css/png img/svg
The string argument after the --css
switch is optional, but the switch itself is required.
Does this work for you now?
from iconizr.
Hi,
Thanks for the quick response. Its giving me this error, in terminal:
Warning: date(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /iconizr-master/iconizr.phps on line 611
I have recently upgraded to OSX Mavericks... If that makes any difference, that is :)
from iconizr.
I just removed the date reference, i believe it was only setting the year for your copy right line, it ran fine (no error/warnings) but still no png sprite... so i don't think thats the blocker.odd
from iconizr.
Good morning!
Well, first of all, the message you posted says it all:
- It is a PHP warning, not an error, so the script should still perform well despite of this message.
- You get this message because of the setting
date.timezone
not properly set in yourphp.ini
. This is exactly what the message reads and has nothing to do with iconizr. So go and fix this in yourphp.ini
and the warning will disappear.
I've never tried running iconizr on a Mac / OSX, although I can imagine that it just runs fine there. Have you double-checked that you match all requirements, especially proper GD support in your PHP installation? Sorry but I can't give you any support on preparing your PHP installation the right way.
As a start, I'd recommend running the example included in the iconizr distribution. Please read these instructions on how to do so. However, you should empty (or remove) the subfolders css
and sass
prior to running the command in order to see if iconizr works as expected.
In any case, as you apparently work on a Mac, I'd love to hear your results, especially regarding the additional tools you used with success. I have no idea which of the exist under OSX ...
from iconizr.
Hi!
Are you still working on this? Any chance you're going to feedback once more? Otherwise I'd close this issue soon ...
Cheers, Joschi
from iconizr.
Hi, sorry, still no joy.
I ending up manually making a png sprite in the end. My project has ramped up considerably, so no real time to investigate, so feel free to close this, and i'll make a new one on the next project when i have time to work it out.
Thanks for your help though.
from iconizr.
Alright, will close this issue then. I wish you good luck with your project and please feel free to get in touch with me if I can help you further! Cheers!
from iconizr.
Hi there!
My last attempt was
iconizr --verbose --css icons --prefix ic --out out icons/
and i'm facing these errors at png-optimization step:
Optimizing PNG images ...
Warning: filesize(): stat failed for /Users/alexey.ostrovskiy/Projects/icons/test/out/icons//Users/alexey.ostrovskiy/Projects/icons/test/out/icons/iconmonstr-gamepad-13-icon.png in /Users/alexey.ostrovskiy/Projects/icons/iconizr/iconizr.phps on line 914
Warning: filesize(): stat failed for iconmonstr-gamepad-13-icon in /Users/alexey.ostrovskiy/Projects/icons/iconizr/iconizr.phps on line 914
Warning: file_get_contents(iconmonstr-gamepad-13-icon): failed to open stream: No such file or directory in /Users/alexey.ostrovskiy/Projects/icons/iconizr/iconizr.phps on line 977
Warning: filesize(): stat failed for /Users/alexey.ostrovskiy/Projects/icons/test/out/icons//Users/alexey.ostrovskiy/Projects/icons/test/out/icons/iconmonstr-gamepad-5-icon.png in /Users/alexey.ostrovskiy/Projects/icons/iconizr/iconizr.phps on line 914
Warning: filesize(): stat failed for iconmonstr-gamepad-5-icon in /Users/alexey.ostrovskiy/Projects/icons/iconizr/iconizr.phps on line 914
Warning: file_get_contents(iconmonstr-gamepad-5-icon): failed to open stream: No such file or directory in /Users/alexey.ostrovskiy/Projects/icons/iconizr/iconizr.phps on line 977
Warning: filesize(): stat failed for /Users/alexey.ostrovskiy/Projects/icons/test/out/icons//Users/alexey.ostrovskiy/Projects/icons/test/out/icons/iconmonstr-script-icon.png in /Users/alexey.ostrovskiy/Projects/icons/iconizr/iconizr.phps on line 914
Warning: filesize(): stat failed for iconmonstr-script-icon in /Users/alexey.ostrovskiy/Projects/icons/iconizr/iconizr.phps on line 914
Warning: file_get_contents(iconmonstr-script-icon): failed to open stream: No such file or directory in /Users/alexey.ostrovskiy/Projects/icons/iconizr/iconizr.phps on line 977
Output folder contains only svg sprite.
from iconizr.
hi @ostroffsky,
thanks for the error log! Yes, you were right — there was a file path bug when no PNG optimization could be applied (due to missing Pngcrush / pngquant / OptiPNG binaries). Should be fixed with release bf64374 now.
Cheers,
Joschi
from iconizr.
Thank you, now it works fine!
from iconizr.
Related Issues (20)
- Add support for LESS output HOT 2
- Generator is stuck HOT 2
- Support for generic image sprites and not just SVG HOT 1
- Redundant data when using SVGs at multiple sizes HOT 1
- Web version ignores dim class opt-out
- Add support for Stylus output
- Confusing usage of SCSS version HOT 3
- Rename dims class HOT 5
- Publish latest release to npm HOT 1
- Flood of process HOT 1
- Icons come out broken HOT 1
- Cant remove dimension classes HOT 2
- Calling svgo HOT 1
- Animated pseudo effects? HOT 1
- PNG sprite isn't being created HOT 8
- Web version fails when your SVG has a "fill" HOT 2
- Default icon height don't work
- Hi there HOT 1
- Negative countdown HOT 2
- SVG2 (SVG 1.3) incompatible.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iconizr.