StanAngeloff / compass-magick

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

1px wide gradients not rendered #11

Closed moll closed 10 years ago

moll commented 13 years ago

I'm generating some 1px wide gradients to use as repeatable backgrounds. For some reason, they're rendered in single color when they're only a pixel wide. Oily_png installed.

magick-canvas(1px, 100px, magick-fill(magick-linear-gradient(yellow, black)));

1px wide looks like this (repeat-y'ed for screenshot): Wrong

Increasing width to, say, 3px: 3px

StanAngeloff commented 13 years ago

Unfortunately this is a limitation of the current gradient fill algorithm. Do you really need 1px gradients, in most cases it is more efficient if you tile a larger image (especially in IE)?