StanAngeloff / compass-magick

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

The magick-sprite function does not respect generated_images_dir #15

Closed stassop closed 12 years ago

stassop commented 12 years ago

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.

StanAngeloff commented 12 years ago

I hadn't realised generated_images_dir was available, I will have a look at fixing this over the weekend.

stassop commented 12 years ago

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.