You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.
The quality setting has no effect on the appearance or signature of PNG and MNG images, since the compression is always lossless.
Not all combinations of compression level, strategy, and PNG filter type can be obtained using the -quality option. For more precise control, you can use the PNG:compression-level=N, PNG:compression-strategy=N, and PNG:compression-filter=N defines, respectively, instead. See -define. Values from the defines take precedence over values from the -quality option.
After I execute "brew install graphicsmagick" it worked for me
const BLUR_RATIO = 4;
let pdfImage = new PDFImage(pdfName, {
graphicsMagick: true,
convertOptions: {
'-density': ''+72*BLUR_RATIO,
'-resize': Math.round(100/BLUR_RATIO)+'%'
}
});
@TylerCreator Looking at your code, I wondered if your density value was even valid given that code (which does work) and I wanted to throw this out there as a more readable and safer approach: (72 * BLUR_RATIO).toString()
Did you get things working as you wanted? I'm working along the same path right now, though no issue yet. I'm just doing my research first.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Setting quality option doesn't work for me. What should i put to
convertOptions: {
"-quality": "???"
"-???" : "???"
}?
The text was updated successfully, but these errors were encountered: