lack of PNG and JPEG support

Bug #901525 reported by Christopher Hall
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-gd (Debian)
Fix Released
Unknown
python-gd (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

It appears that the python-gd package in Kubuntu 11.10 oneiric was compiled without PNG or JPEG support

the installed package is:
Package: python-gd
Versions: 0.56+dfsg-2ubuntu1

The error can be seen quite easily by starting a python shell then:

>>> import gd
>>> gd.image('file.png')
unsupported file type (only .gif|.png|.jpeg|.jpg|.gd|.gd2|.xbm|.xpm accepted)

The error is confusing because it implies support, when there is none.

However, there is a simple work-around by just using the _gd.so file from 11.04 pacakge.

Tags: multiarch
Revision history for this message
Julian Taylor (jtaylor) wrote :

the build process is only looking in /usr/lib for the png and jpg libraries, as these have been multiarched they are not found there anymore and the features are not built.
the build process needs to be adapted for multiarch.

Changed in python-gd (Ubuntu):
status: New → Triaged
Julian Taylor (jtaylor)
tags: added: multiarch
Changed in python-gd (Debian):
status: Unknown → New
Changed in python-gd (Debian):
status: New → Fix Committed
Changed in python-gd (Debian):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-gd - 0.56+dfsg-3

---------------
python-gd (0.56+dfsg-3) unstable; urgency=low

  * Generate python-gd-dbg.
    + Thanks to Matthias Klose.
  * Update B-D:
    + Add libx11-dev.
    + Change libjpeg62-dev to libjpeg-dev. (Closes: #635490)
    + Change libpng12-dev to libpng-dev.
    + Update debhelper to v8.
    + Version python-all-* build-deps on 2.6.6-3~
  * Detect multiarch libraries. (Closes: #651726 LP: #901525)
  * Bump Standards-Version to 3.9.2 (no changes).
  * Switch compat level 7 to 8.
  * Use binary compression package.
    + Thanks to Raphaël Hertzog.
  * Refresh patches offset.
  * Set Python Modules Team as Maintainer.
  * Add myself to Uploaders.
  * Add Vcs-Svn and Vcs-Browser fields.
  * Remove 02_setup.diff for not override CFLAGS.
  * Export CFLAGS and LDFLAGS from dpkg-buildflags
    in debian/rules, to use hardening flags.
  * Add override_dh_clean in debian/rules, to clean
    properly.
  * Add get-packaged-orig-source target in debian/rules
    to get DFSG upstream tarball.
    + Document how to get the tarball in README.source.
  * Update copyright file to DEP5 rev 174.
    + Extend copyright holder years.
    + Use right BSD license.
    + Add documentation license.
    + Use GPL-2+ license in debian packaging.
  * Remove Provides: ${python:Provides} in d/control.
  * Wraps the package lists with wrap-and-sort.

 -- Julián Moreno Patiño <email address hidden> Sat, 04 Feb 2012 22:47:46 +0200

Changed in python-gd (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.