StanAngeloff / compass-magick

Dynamic image generation for Compass using ChunkyPNG/PhantomJS.
http://StanAngeloff.github.com/compass-magick/
Other
157 stars 4 forks source link

I'm not getting the output, but no error #16

Open jitendravyas opened 12 years ago

jitendravyas commented 12 years ago

CSS Output I'm getting as same as Sass. I'm on Windows 7.

// Sass body { background: transparent magick-canvas(320px, 200px, magick-fill(yellow) ); }

//CSS output

body { background: transparent magick-canvas(320px, 200px, magick-fill(yellow)); }

I use compass.app and I have installed ChunkyPNG, Oily png and compass magick

StanAngeloff commented 12 years ago

Make sure you have require 'magick' in your config.rb file? This should include the Ruby files needed for Compass Magick to work.

jitendravyas commented 12 years ago

Yes I'v already added that. See screenshot of my config file http://screenpresso.com/=ppoRe

StanAngeloff commented 12 years ago

OK, I just tried this using command-line compass and it works. I used your config.rb as shown on the screenshot and the .scss file you are trying to compile. I can confirm this resulted in an image.

I am not sure how Compass.app works, but you should probably try and confirm if it's compiling on the command-line first.

martincik commented 12 years ago

You need to use 'compass-rails' gem and inside application.rb require compass-magick like this:

    config.compass.require "magick"
tka commented 12 years ago

@jitendravyas how did you install compass-magick? if you use compass.app, you should follow https://github.com/handlino/CompassApp/wiki/Use-compass-extensions. in this case you need download compass-magick from https://github.com/StanAngeloff/compass-magick/zipball/master , then unzip , rename folder StanAngeloff-compass-magick-7bc5177 to magick, and move magick folder to "%HOMEPATH%.compass\extensions"