-
Notifications
You must be signed in to change notification settings - Fork 142
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
width and height should be allowed to be excluded (no defaults) #189
Labels
Comments
Hi @crisog, you can set width and height to |
yakovmeister
pushed a commit
that referenced
this issue
Nov 20, 2023
* feat(preserveAspectRatio): added option to preserve aspect ratio When set to true and both width and height are specified, they are interpreted as the minimum width and minimum height, respectively. If set to true with only the width specified, the height will be automatically determined while preserving the aspect ratio, and vice versa. fixes #88, #189
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've been using pdf-image but switched to this library as the former only supports writing to the file system.
I've encountered an issue with this library regarding its default settings for width and height. These default values interfere with the behavior of the underlying library which already does a good job when these options are not specified.
I think there should be a way to omit specifying width and height when invoking GraphicsMagick, thus leveraging its native capabilities for better results.
Kind of related to #88
The text was updated successfully, but these errors were encountered: