pdf2image icon indicating copy to clipboard operation
pdf2image copied to clipboard

width and height should be allowed to be excluded (no defaults)

Open crisog opened this issue 1 year ago • 1 comments

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 https://github.com/yakovmeister/pdf2image/issues/88

crisog avatar Oct 14 '23 10:10 crisog

Hi @crisog, you can set width and height to undefined and allow the underling library to set aspect ratio. You can find some examples -> https://github.com/yakovmeister/pdf2image/issues/88#issuecomment-1817514947

mskec avatar Nov 18 '23 14:11 mskec