CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Images not showing on badge
Pages: [1]

Author Topic: Images not showing on badge  (Read 511 times)

Simon147

  • I post occasionally
  • **
  • Posts: 96
  • Karma: 3
  • CiviCRM version: 4.4.6
  • CMS version: Drupal 7.30
  • MySQL version: 5.0.92
  • PHP version: 5.2.9
Images not showing on badge
August 19, 2014, 01:16:37 pm
Playing around with CiviEvent and tried to add logos to the badge design (CiviCRM v. 4.4.2, one of the images is a PNG and the other a JPG).

When doing this, I get a whole lot of error messages:

Code: [Select]

    Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg: JPEG library reports unrecoverable error: in TCPDF->Image() (line 7017 of /home/tedxlaus/public_html/wiki/sites/all/modules/civicrm/packages/tcpdf/tcpdf.php).
    Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: 'http://wiki.tedxlausanne.org/site/plugins/files/civicrm/custom/plugins/civicrm/civicrm/persist/contribute/images/TEDxLausanne_framed.jpg' is not a valid JPEG file in TCPDF->Image() (line 7017 of /home/tedxlaus/public_html/wiki/sites/all/modules/civicrm/packages/tcpdf/tcpdf.php).
    Warning: imagejpeg() expects parameter 1 to be resource, boolean given in TCPDF_IMAGES::_toJPEG() (line 148 of /home/tedxlaus/public_html/wiki/sites/all/modules/civicrm/packages/tcpdf/include/tcpdf_images.php).
    Warning: imagedestroy() expects parameter 1 to be resource, boolean given in TCPDF_IMAGES::_toJPEG() (line 149 of /home/tedxlaus/public_html/wiki/sites/all/modules/civicrm/packages/tcpdf/include/tcpdf_images.php).
    Notice: getimagesize() [function.getimagesize]: Read error! in TCPDF_IMAGES::_parsejpeg() (line 163 of /home/tedxlaus/public_html/wiki/sites/all/modules/civicrm/packages/tcpdf/include/tcpdf_images.php).
    Warning: imagecreatefrompng() [function.imagecreatefrompng]: 'http://wiki.tedxlausanne.org/site/plugins/files/civicrm/custom/plugins/civicrm/civicrm/persist/contribute/images/v14logo_unil_75.png' is not a valid PNG file in TCPDF->Image() (line 7017 of /home/tedxlaus/public_html/wiki/sites/all/modules/civicrm/packages/tcpdf/tcpdf.php).
    Warning: imageinterlace() expects parameter 1 to be resource, boolean given in TCPDF_IMAGES::_toPNG() (line 126 of /home/tedxlaus/public_html/wiki/sites/all/modules/civicrm/packages/tcpdf/include/tcpdf_images.php).
    Warning: imagepng() expects parameter 1 to be resource, boolean given in TCPDF_IMAGES::_toPNG() (line 128 of /home/tedxlaus/public_html/wiki/sites/all/modules/civicrm/packages/tcpdf/include/tcpdf_images.php).
    Warning: imagedestroy() expects parameter 1 to be resource, boolean given in TCPDF_IMAGES::_toPNG() (line 130 of /home/tedxlaus/public_html/wiki/sites/all/modules/civicrm/packages/tcpdf/include/tcpdf_images.php).

CiviCRM can then generate the badges, but the images don't show.

Any idea what's wrong?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Images not showing on badge

This forum was archived on 2017-11-26.