SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2000
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS or ImageMagick?

    I need to make a bar graph that contains one bar. It is color coded based on the level. It has 3 colors, similar to this:
    http://img408.imageshack.us/img408/2320/bargraph.jpg

    Would I be better off making the dynamic image with ImageMagick or should I just use CSS to manipulate 1px slices of each color to recreate the entire image?

  2. #2
    Twitter: @AnthonySterling silver trophy AnthonySterling's Avatar
    Join Date
    Apr 2008
    Location
    North-East, UK.
    Posts
    6,111
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Unless you actually need the image, or expect users to use it, I'd go for CSS for performance reasons.
    @AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •