Skip to content

Increase resolution #1

Open
Open

Description

@d47081

Hello and thanks for this amazing library!

I'm trying to use it for CLI captcha generation based on this library.

As understand, there is no way to make image smaller or increase the resolution because symbols are hardcoded
But maybe I have missed some trick or the API option

Here is my captcha example, that takes lot of space in terminal:

2024-04-30_04-36 2024-04-30_04-37

I can operate with the width attribute only but no luck to reduce it less than 50 value:

$image = new \Ixnode\PhpCliImage\CliImage(
    $captcha->get(),
    50 // that is min possible value in my case
);

Activity

  1. bjoern-hempel commented on May 23, 2024

    @bjoern-hempel
    Member

    Hey! Thank you for using my library. I have added a width parameter to the Cli Command with the new version 0.1.3. This shows the use of the second parameter $width from the CliImage class:

    image

    vendor/bin/php-cli-image ci CAPTCHA.jpg --width 30

    It shows the successful use of the parameter width in every interpretation:

    image

    Can you define your issue and problem a little more precisely? What happens if you enter a lower or higher value than 50?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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