Skip to content

Call resolutionUnits() raises TypeError: No to_python (by-value) converter found for C++ type: MagickCore::ResolutionType #22

@carygravel

Description

@carygravel

The following code:

import subprocess
import PythonMagick
subprocess.run(["convert","-units","PixelsPerCentimeter","-density","300","xc:white","test.jpg"])
print(PythonMagick.Image("test.jpg").resolutionUnits())

produces TypeError: No to_python (by-value) converter found for C++ type: MagickCore::ResolutionType.

I would have expected a string containing PixelsPerCentimeter, or for other images PixelsPerInch or Undefined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions