Closed stassop closed 12 years ago
I hadn't realised generated_images_dir
was available, I will have a look at fixing this over the weekend.
Thanks man. Actually, Compass-Magick is a very useful tool, because it compensates for the lacking functionality that Chris Eppstein said he wasn't going to implement.
The magick-sprite function doesn't seem to allow saving generated images to another folder. The generated image URL is automatically prefixed with the images_dir folder. images_dir and generated_images_dir are part of Compass configuration.
While in my config.rb I have
images_dir = "images"
generated_images_dir = "../resources/public/img"
background-image: magick-sprite("generated_icon", magick-canvas(50px, 250px, magick-compose(magick-canvas("icon.png"), 0, 0)));
Generates
background-image: url('/images/generated_icon.png');
generated_images_dir from config.rb is not respected.