4

I am not able to set the dpi of an Image object. The last line in the code is always throwing me an error message.. please see below :

import PythonMagick
from PythonMagick import Image 
p = PythonMagick.Image()    
p.density('300')     # --> This is the line where the error occurs

The error is as follows :

Traceback (most recent call last):

File "<ipython-input-45-3dabab8b125b>", line 2, in <module>
p.density('300')

ArgumentError: Python argument types in
   Image.density(Image, str)
did not match C++ signature:
  density(class Magick::Image {lvalue})
  density(class Magick::Image {lvalue}, class Magick::Point)
RRaj
  • 41
  • 2
  • Can you add the errore message, please? – Kerberos Aug 16 '18 at 16:58
  • @Kerberos ... It is added above.... sorry i added that along with the code. I am new to posting in stack overflow, so when i tried to send the error along with the code, it got formatted the same way. Sorry about that . – RRaj Aug 17 '18 at 11:43

0 Answers0