Home » Images » Image_Canvas
A package providing a common interface to image drawing, making image source code independent on the library used.
This package is unmaintained.
Download latest release 0.5.0 (there might be newer Composer installable version)
License: LGPL
Description
A package providing a common interface to image drawing, making image source code independent on the library used.
Documentation
Maintainers
- Jesper Veggerby (nosey) — lead, active
Dependencies
Required
- PHP (>= 4.3.0)
- PEAR Installer (>= 1.8.1)
- Image_Color (>= 1.0.0)
- gd (extension)
Releases
- 0.5.0 (alpha, 2024-12-22)
Release notes
License: LGPL
PR #7: Port to PHP 8
- 0.4.0 (alpha, 2024-01-07)
Release notes
License: LGPL
QA release
PR #3: Fix for incorrect GD version detection
PR #5: Fix error when loading Image_Canvas_Color - 0.3.5 (alpha, 2012-07-27)
Release notes
License: LGPL
QA release
Doc Bug #19253 incorrect-fsf-address
Bug #16992 dotted lines do not show up in SVG
- 0.3.4 (alpha, 2012-01-26)
Release notes
License: LGPL
QA release
Bug #16947 Font-size in GD (with GD2) incorrect
Bug #17448 Font alignment for 90 degrees
Bug #18366 Call to undefined function ps_new()
Bug #18507 SVG output of multi-line axis labels is screwed up.
Bug #18549 setThickness not working on GD / PNG output - 0.3.3 (alpha, 2010-10-25)
Release notes
License: LGPL
Automatically built QA release
Bug #16808 imagefilledpolygon(): You must have at least 3 points in your
array - ghhoriuchiBug #16927 PDF class implementation incomplete? - daveo
Bug #17191 Deprecated: Assigning the return value of new by reference - neufeind
- 0.3.2 (alpha, 2009-08-19)
Release notes
License: LGPL
QA Release.
* Fixed Bug #12064 "Updated all @link to official url (thanks to Torsten Roehr)"
* Fixed Bug #12084 "Set wrong fill color in PDF.php, SVG.php (thanks to Torsten Roehr)"
* Fixed Bug #12122 "Added new driver for SWF output (thanks to Torsten Roehr)"
* Fixed Bug #12744 "Used shape poly instead of polygon in ImageMap (Uwe Steinmann)"
* Fixed Bug #12745 "Make area tag xhtml compliant, added missing '/' (thanks to Christian Weiske)"
* Fixed Bug #12746 "Make img tag xhtml compliant, added missing '/' (thanks to Christian Weiske)"
* Fixed Bug #12747 "Added attribute id to map tag (Uwe Steinmann)"
* Fixed Bug #14199 "Added new driver for PostScript output" - 0.3.1 (alpha, 2007-06-22)
Release notes
License: LGPL
* Modified GD canvas addText() method with TTF fonts - (x, y) parameters now specify the absolute lower-left corner of the text (if angle is 0) instead of the baseline of the first letter, making texts appear incorrectly. This however require fonts to have a steady baseline, like fx. Arial, Verdana, etc. unlike Comic
* Fixed Image_Canvas_PDF to display correctly
* Fixed Request #7285 "UTF-8 in SVGs"
* Fixed Bug #7454 "Vertical axis title is shifted 180 degrees between SVG and PNG output"
* Fixed Bug #8488 "wrong variable name" (thanks to troehr at php dot net)
* Fixed Bug #8556 "SVG.php contains typo" (thanks to troehr at php dot net)
* Fixed Bug #8776 "Fatal error: Call to undefined function: imageantialias()"
* Fixed Bug #9070 "factory method causes PHP error if no GD" (thanks to troehr at php dot net)
* Fixed Bug #9176 "UTF-8 in SVGs does not work (patch included)" (thanks to troehr at php dot net)
* Fixed Bug #10236 "Pie Chart Shading Error when datapoint has 0 value" (thanks to peter_wake at hotmail dot com)
* Fixed Request #11402 "Implement Image_Canvas_SVG::getData()" (thanks to troehr at php dot net) - 0.3.0 (alpha, 2006-03-02)
Release notes
License: LGPL
* Added clipping (GD uses Image_Canvas method involving ImageCopy(), until native support is available throught existing GD functions gdImageSetClip())
* Fixed the way SVG rotates text to now use transform
* Added public reset() method to Image_Canvas
* Fixed Bug #6406 "method _mapFont missing"
* Fixed Request #6632 "Style element assigned with = instead of :"
* Fixed Bug #6769 "ImageMap.php does not check for boolean false with strpos" - 0.2.4 (alpha, 2005-11-08)
Release notes
License: LGPL
* Fixed a bug causing in Image_Canvas_SVG causing grouping to give a "Missing argument..." error (this rendered Image_Graph using SVG broken)
* Fixed a bug causing rectangles not being displayed, if points were given in the wrong order - 0.2.3 (alpha, 2005-10-28)
Release notes
License: LGPL
Fixed Bug #5786 "Error in producing SVG"
* Fixed Bug #5805 "Canvas\Fonts\fontmap.txt is missing" - 0.2.2 (alpha, 2005-09-30)
Release notes
License: LGPL
* Added 'border' and 'cssclass' option to Image_Canvas_GD::toHtml()
* Added image support when using SVG (using embedded base64 encoding)
* Added link ("imagemap") support with SVG
* Made image loading in GD canvas use getimagesize() to determine type instead of relying on extension
* Fixed bug where 'htmltags' were not transferred to image mapping of polygon vertices
* Fixed bug in SVG where pie slices with some specific angles curled the wrong way
* Fixed bug in Image_Canvas_ImageMap::show() and Image_Canvas_ImageMap::save() calling non-existing method _toHtml()
* Fixed bug in Image_Canvas_SVG::polygon() not showing polygon if last point was a spline - addSpline()
* Fixed bug causing line ends not to show if color not exlicitly defined
* Fixed Bug #5066 "Reference Notices" (from Image_Graph)
* Fixed bug #5175 "Unable to define IMAGE_GRAPH_SYSTEM_FONT_PATH outside of Config.php"
* Fixed Bug #5325 "Image/Color.php compatibility with old PHP versions" - 0.2.1 (alpha, 2005-08-08)
Release notes
License: LGPL
* Added Request #4997 "HTML attributes and JS actions in imagemaps" - using 'htmltags' entry
* Fixed bug with fonts, now it's not required for the font to have a name
* Changed examples to use require_once instead of include/require - 0.2.0 (alpha, 2005-08-02)
Release notes
License: LGPL
First released package in PEAR
Changes since last PEPr release:
* Added support for image maps - a separate canvas (Image_Canvas_ImageMap) has been created to accomplish this
* Added support for antialiasing images when using GD (both using native GD method and Image_Graph own implementation)
* Added support for multi line texts
* Added a toHtml() method for to easy facilitate including canvas in HTML (this includes the associated image map, if any)
* Added line ends - only supported in GD canvases currently and not on polygons (yet!)
Bugs
| ID | Status | Type | Version | Date | Summary |
|---|---|---|---|---|---|
| #4997 | Closed | Req | 2005-08-04 | HTML attributes and JS actions in imagemaps | |
| #5175 | Closed | Bug | 2005-08-22 | Unable to define IMAGE_GRAPH_SYSTEM_FONT_PATH outside of Config.php | |
| #5325 | Closed | Bug | 2005-09-07 | Image/Color.php compatibility with old PHP versions | |
| #5786 | Closed | Bug | 2005-10-26 | Error in producing SVG | |
| #5805 | Closed | Bug | 2005-10-28 | Canvas\Fonts\fontmap.txt is missing | |
| #5917 | Bogus | Bug | 2005-11-10 | Linestyles not supported if antialiased by native | |
| #6406 | Closed | Bug | 2006-01-03 | method _mapFont missing | |
| #6632 | Closed | Req | 2006-01-30 | Style element assigned with = instead of : | |
| #6769 | Closed | Bug | 0.2.4 | 2006-02-13 | ImageMap.php doesnot check for boolean false with strpos |
| #7285 | Closed | Req | 0.3.0 | 2006-04-03 | UTF-8 in SVGs |
| #7454 | Closed | Bug | 0.7.2 | 2006-04-21 | Vertical axis title is shifted 180 degrees between SVG and PNG output |
| #8488 | Closed | Bug | 0.3.0 | 2006-08-17 | wrong variable name |
| #8556 | Closed | Bug | 0.3.0 | 2006-08-25 | SVG.php contains typo |
| #8776 | Closed | Bug | 0.3.0 | 2006-09-24 | Fatal error: Call to undefined function: imageantialias() |
| #9070 | Closed | Bug | 0.3.0 | 2006-10-17 | factory method causes PHP error if no GD |
| #9146 | Closed | Bug | CVS | 2006-10-24 | Patch for #8488, #8556, #9070 and custom attributes for SVG tags |
| #9176 | Closed | Bug | 0.3.0 | 2006-10-27 | UTF-8 in SVGs does not work (patch included) |
| #9699 | Wont fix | Bug | 0.3.0 | 2006-12-26 | Canvas/Color.php license does not match package license |
| #10236 | Closed | Bug | 0.3.0 | 2007-03-01 | Pie Chart Shading Error when datapoint has 0 value |
| #11402 | Closed | Req | 0.3.0 | 2007-06-22 | Implement Image_Canvas_SVG::getData() |
| #12064 | Closed | Req | 0.3.1 | 2007-09-17 | Update @link in doc blocks |
| #12084 | Closed | Bug | 0.3.1 | 2007-09-19 | Typos in PDF.php and SVG.php |
| #12122 | Closed | Req | 0.3.1 | 2007-09-26 | Add output driver for Flash (swf) |
| #12744 | Closed | Bug | 0.3.1 | 2007-12-21 | polygon map: wrong area type "polygon", must be "poly" |
| #12745 | Closed | Bug | 0.3.1 | 2007-12-21 | area tag not xhtml-compatible |
| #12746 | Closed | Bug | 0.3.1 | 2007-12-21 | generated img tag not xhtml compliant |
| #12747 | Closed | Bug | 0.3.1 | 2007-12-21 | image map is not xhtml compliant |
| #12961 | Open | Req | 0.3.1 | 2008-01-22 | can't insert svg elements with addText |
| #14199 | Closed | Req | CVS | 2008-06-20 | Adding support for PostScript output |
| #16808 | Closed | Bug | 0.3.2 | 2009-11-20 | imagefilledpolygon(): You must have at least 3 points in your array |
| #16833 | No Feedback | Bug | 0.3.2 | 2009-11-24 | patch for newlines in SVG addText() |
| #16925 | Open | Bug | 0.3.2 | 2009-12-18 | Angled text improperly displayed in SVG. |
| #16926 | Duplicate | Bug | 0.3.2 | 2009-12-18 | Text angled at 45 displayed upside down in SVG |
| #16927 | Closed | Bug | 0.3.2 | 2009-12-18 | PDF class implementation incomplete? |
| #16929 | Open | Bug | 0.3.2 | 2009-12-18 | SVG incorrectly contains absolute path to font file in font-family |
| #16947 | Closed | Bug | SVN | 2009-12-26 | Font-size in GD (with GD2) incorrect |
| #16948 | Open | Bug | CVS | 2009-12-26 | Check if multiline-text working fine across output-drivers |
| #16992 | Closed | Bug | CVS | 2010-01-13 | dotted lines do not show up in SVG |
| #17191 | Closed | Bug | 0.3.2 | 2010-03-04 | Deprecated: Assigning the return value of new by reference |
| #17448 | Closed | Bug | 0.3.2 | 2010-05-31 | Font alignment for 90 degrees |
| #18366 | Closed | Bug | 0.3.3 | 2011-03-16 | Call to undefined function ps_new() |
| #18507 | Closed | Bug | 0.3.3 | 2011-05-06 | SVG output of multi-line axis labels is screwed up. |
| #18549 | Closed | Bug | 0.3.3 | 2011-05-19 | setThickness not working on GD / PNG output |
| #19253 | Closed | Doc | 0.3.4 | 2012-01-27 | incorrect-fsf-address |
| #19797 | No Feedback | Bug | 0.3.5 | 2013-01-23 | Bug in Canvas\GD.php |
| #19954 | Open | Bug | 0.3.5 | 2013-05-22 | GD version regex not correctly identifying 2.1.x |
| #20041 | Open | Bug | 0.3.5 | 2013-08-15 | Declaration "static" missing |