1. Hideo Hattori
  2. pgmagick
  3. Issues
Issue #7 resolved

Unicode filenames causes issues

crux_op
created an issue

If a unicode name is passed to the API Image class, then quantize() will fail to allocate memory. However, the Image API will happily accept unicode filenames.

This fails:

image = ApiImage(u'test.jpg') image.quantizeColorSpace(ColorspaceType.RGBColorspace) image.quantize()

This succeeds:

image = ApiImage('test.jpg') image.quantizeColorSpace(ColorspaceType.RGBColorspace) image.quantize()

Comments (2)

  1. Log in to comment