Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImagickException: The width and height must be greater than zero #27

Closed
kaetaen opened this issue Mar 17, 2022 · 5 comments
Closed

ImagickException: The width and height must be greater than zero #27

kaetaen opened this issue Mar 17, 2022 · 5 comments

Comments

@kaetaen
Copy link

kaetaen commented Mar 17, 2022

This error occurs when mapping large images.

@ArianNexux
Copy link

Did you find a solution?
I'm getting the same error!

@ArianNexux
Copy link

I solved this problem compressing the image, I used a service to do it and after that i send the image processed to the script omr.

@kaetaen
Copy link
Author

kaetaen commented Mar 22, 2022

@ArianNexux I found the source of the error

the problem is the resolution of the checkbox

positions x2 and y2 cannot be less than or equal to positions x1 and y1

This error is caused by a code snippet that I don't quite understand how it works.

File: ImagickScanner.php
Lines: 213 and 214

Right, work fine:

targets": [
      {
        "x1": 50,
        "y1": 10,
        "x2": 51,
        "y2": 11,
        "id": "Satisfação: Ruim",
        "type": "rectangle",
        "tolerance": 10
      }
    ]

Error:

targets": [
      {
        "x1": 50,
        "y1": 10,
        "x2": 50,
        "y2": 10,
        "id": "Satisfação: Ruim",
        "type": "rectangle",
        "tolerance": 10
      }
    ]

@kaetaen kaetaen closed this as completed Mar 22, 2022
@ArianNexux
Copy link

Thank you @kaetaen

@ArianNexux
Copy link

@kaetaen Could you send me your Discord?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants