Skip to content

Conversation

@rpaterson
Copy link

No description provided.

@rpaterson
Copy link
Author

Basically the same as #16 with merge conflicts fixed

// Don't process if we can't find box dimensions
if (!originalWidth || (!settings.widthOnly && !originalHeight)) {
if(!settings.widthOnly)
if ((!settings.heightOnly && !originalWidth) || (!settings.widthOnly && !originalHeight)) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be an added error in case both widthOnly and heightOnly are set

@STRML
Copy link
Owner

STRML commented Dec 2, 2021

Thanks, seems mergeable after a small fix, could you also add to the examples?

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

Successfully merging this pull request may close these issues.

2 participants