[cairo] Regression in libpng-1.5.2 affecting cairo

Ross Alexander Ross.Alexander at EMEA.NEC.COM
Thu Jul 7 02:33:21 PDT 2011

This is just a heads up that libpng-1.5.2 has a regression which causes corrupted output.  The example below produces a square block of green.  Libpng-1.5.4rc1 produces the correct result (block of blue).

  cairo_surface_t* surface = cairo_image_surface_create(CAIRO_FORMAT_RGB24, width, height);
  cairo_t *cr = cairo_create(surface);
  cairo_rectangle(cr, 0, 0, width, height / 3);
  cairo_set_source_rgb(cr, 0.0, 0.0, 0.8);
  cairo_surface_write_to_png(surface, "libpng-cairo.png");

Ross Alexander
SAP Basis
NEC Europe Ltd
European Information Systems
Tel:     +44 20 8752 3394

IMPORTANT: The information contained in this e-mail and attachment (if any) is intended for the person to whom it is addressed and may contain confidential and/or privileged information. The contents of this message may contain personal views which are not the views of NEC Europe Ltd or its subsidiaries, unless specifically stated. You should not copy, retain, forward or disclose its contents to anyone else, or take any action based upon it, if it is not addressed to you personally.  If you have received this e-mail in error please contact the sender immediately. Any legally binding agreement resulting from its content must be made separately in a printed

NEC Europe Limited | Registered Office: NEC House, 1 Victoria Road, London W3 6BL | Registered in England 2832014

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20110707/5d967124/attachment.html>

More information about the cairo mailing list