Monday, 9 September 2013

PythonMagick: Convert RGB to Grayscale

PythonMagick: Convert RGB to Grayscale

I found this description link_1, link_2.
Trying to do so
import PythonMagick
img = PythonMagick.Image('file.png')
img.colorSpace('GRAYColorspace')
Return this
ArgumentError: Python argument types in
Image.colorSpace(Image, str)
did not match C++ signature:
colorSpace(class Magick::Image {lvalue})
colorSpace(class Magick::Image {lvalue}, enum MagickCore::ColorspaceType)
How to do it?

2 comments:

  1. KBC is india's Most awaiting TV Show to give you chance to win bumper cash prizes in KBC Show, Register in KBC and Win extra cash to change your fate. Its all about KBC. check KBC Winner List 2020

    ReplyDelete