Open jitendravyas opened 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.
Yes I'v already added that. See screenshot of my config file http://screenpresso.com/=ppoRe
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.
You need to use 'compass-rails' gem and inside application.rb require compass-magick like this:
config.compass.require "magick"
@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"
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