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

Croppa: No pad color specified #222

Closed
b1nj opened this issue Jun 10, 2024 · 4 comments
Closed

Croppa: No pad color specified #222

b1nj opened this issue Jun 10, 2024 · 4 comments

Comments

@b1nj
Copy link

b1nj commented Jun 10, 2024

I have this exception : "Croppa: Pad option needs width and height"
Color is not optional? However, there is a default color

$rgbArray = $options['pad'] ?: [255, 255, 255];

@sdebacker
Copy link
Collaborator

sdebacker commented Jun 11, 2024

The default color is white, but the width and height are required, example: <img src="{{ Croppa::url('storage/image.webp', 300, 200, ['pad']) }}" />

@b1nj
Copy link
Author

b1nj commented Jun 11, 2024

Sorry the message is Croppa: No pad color specified" with

throw new Exception('Croppa: No pad color specified');

@sdebacker
Copy link
Collaborator

Ok, I see, it should be fixed now.

@b1nj
Copy link
Author

b1nj commented Jun 11, 2024

Perfect !

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