Zend Framework

Color management in Zend/Barcode/Renderer/Pdf.php

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.10.5
  • Fix Version/s: 1.10.6
  • Component/s: Zend_Barcode
  • Labels:
    None

Description

Zend/Barcode/Renderer/Pdf.php
Rows 151,155 and 188,192
Change from:
$color = new Zend_Pdf_Color_RGB(
($color & 0xFF0000) >> 16,
($color & 0x00FF00) >> 8,
$color & 0x0000FF
);
to:
$color = new Zend_Pdf_Color_RGB(
(($color & 0xFF0000) >> 16) / 256.0,
(($color & 0x00FF00) >> 8) / 256.0,
($color & 0x0000FF) / 256.0
);

Activity

Hide
Mickael Perraud added a comment -

Will do it soonly, but with:

$color = new Zend_Pdf_Color_RGB(
    (($color & 0xFF0000) >> 16) / 255.0,
    (($color & 0x00FF00) >> 8) / 255.0,
    ($color & 0x0000FF) / 255.0
);

Thanks for the report

Show
Mickael Perraud added a comment - Will do it soonly, but with:
$color = new Zend_Pdf_Color_RGB(
    (($color & 0xFF0000) >> 16) / 255.0,
    (($color & 0x00FF00) >> 8) / 255.0,
    ($color & 0x0000FF) / 255.0
);
Thanks for the report
Hide
Mickael Perraud added a comment -

Fixed in r22418 & applied on 1.10 branch with r22419

Show
Mickael Perraud added a comment - Fixed in r22418 & applied on 1.10 branch with r22419

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: