• This repository has been archived on 26/Mar/2020
  • Stars
    star
    157
  • Rank 230,706 (Top 5 %)
  • Language
    Ruby
  • License
    Other
  • Created over 13 years ago
  • Updated almost 12 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Dynamic image generation for Compass using ChunkyPNG/PhantomJS.

Compass Magick

Dynamic image generation for Compass using ChunkyPNG/PhantomJS (no dependency on RMagick).

Example

body {
  background: transparent magick-canvas(100px, 100px,
    magick-fill(magick-linear-gradient(red, green, blue))
  ) repeat-x;
}

A CSS3 Sassy Button recreated in Compass Magick:
StanAngeloff.github.com/compass-magick/ (showcases all features)

Installation

Installation is simple via RubyGems. Compass and ChunkyPNG are required.

gem install compass-magick

If you wish to use PhantomJS, please follow the build instructions.

Usage

To start a new Compass project with Magick included:

compass create -r magick my_project

To use Compass Magick within your existing projects, require the plugin from your Compass configuration:

require 'magick'

There is a short tutorial available which should guide you through creating a simple themeable button.

APIs

List of all available commands.

RDoc is also available for the entire project.

Similar Projects

compass-canvas is a Compass plugin that provides a drawing surface similar to the <canvas> element in JavaScript and Turtle graphics in other programming languages. It uses Cairo as a back-end to perform all graphics operations. The project supports anti-aliasing, vector graphics, gradients, masks, clipping, complex operations like drop shadow and many more.

Contribute

Compass Magick is very much a work in progress. Documentation is sparse, speed is a major issue and there are probably a lot of bugs.

You can help by looking at any of the following areas (ordered by priority):

Credits

  • Willem van Bergen for his great work on ChunkyPNG which has been a major source of knowledge while working on the project
  • Chris Eppstein for Compass itself
  • The Ruby community for being awesome and welcoming a stranger

Copyright

Copyright (c) 2011 Stan Angeloff. See LICENSE.md for details.

More Repositories

1

zoey

Small, customisable and lightweight framework for developing mobile apps.
JavaScript
129
star
2

vagrant-shell-scripts

A collection of scripts to ease Vagrant box provisioning using the shell.
Shell
127
star
3

lotte

Automated, headless browser testing (using PhantomJS).
JavaScript
98
star
4

komodo-html-toolkit

[ABANDONED] A growing collection of tools to help you edit & author HTML/XML documents inside Komodo Edit/IDE
JavaScript
31
star
5

dotfiles

~/
Vim Script
21
star
6

php-tinyspec

A one-file framework for test-driven development in PHP 5.3+
PHP
15
star
7

turbovision-html5

HTML5 UI framework based on Borland TurboVision '92
JavaScript
13
star
8

node-paperserve

Quick and dirty web server from your working directory
JavaScript
11
star
9

AmbianceOneiric

[Ubuntu 12.04 only; 14.04 see README] A theme, which despite the name, takes the ’stock Ubuntu Precise 12.04 Ambiance theme and reverts the light menus’ to their former dark design.
CSS
10
star
10

komodo-fuzzy-open

[ABANDONED] Quickly locate and open files using fuzzy matching
JavaScript
10
star
11

komodo-aero-theme

Awesome Windows theme for Komodo Edit.
CoffeeScript
7
star
12

compass-canvas

Canvas drawing support for Compass with Cairo backend(s).
Ruby
6
star
13

komodo-refacto

[ABANDONED] Refactor your code!
JavaScript
5
star
14

longitude

A collection of Ansible playbooks to provision a (mostly) bootstrapped Ubuntu development desktop.
Python
4
star
15

php-guard

Safe-conducts for your PHP. Kills up to 99.9% of bad arguments.
PHP
3
star
16

XOAD

PHP + AJAX = Love
PHP
3
star
17

php4haml

Port of phpHaml to PHP 4
PHP
3
star
18

mod_compile

An on-the-fly compilation utility for Apache 2 with planned support for caching and proper headers.
C
2
star
19

fizzy.vim

User auto-completions based on regular expressions -- automate the boring parts of any programming language.
Vim Script
2
star
20

node-ytremote

Get lazy, watch YouTube on the PC using your mobile device as a remote control.
JavaScript
2
star
21

blog.angeloff.name

tmpfs /home/stan
CSS
1
star
22

css-3drotate

Having fun with CSS 3D, canvas and the GPU
1
star
23

wingman.app

An on-going personal exploration into client-side JavaScript apps with more traditional MVP/MVC feel.
JavaScript
1
star
24

vim-zend55

The dark theme from Zend Studio 5.5 as seen in Vim.
Vim Script
1
star
25

lalias.sh

Zsh shell extension that allows you to have directory-specific command aliases.
Shell
1
star
26

symfony2-performance

Default distribution performance benchmarking in a VM
Shell
1
star