-
Notifications
You must be signed in to change notification settings - Fork 87
how to edit image's property? such as: quality, width, height #22
Comments
The quality flag doesn't seem to do much for me, the image contained in my test PDF is of very high quality but it comes out heavily pixilated even at medium sizes using the linked options. |
We should be using the -size tag to specify an input size but it's ignoring it. |
Many ImageMagick options must come after the filename, see this example http://stackoverflow.com/a/6605085 Update: It seems that this is actually working despite the ordering |
The const pdfImageOpts = {
outputDirectory: path.join(__dirname, './wmReports/images'),
convertExtension: 'jpg',
convertOptions: {
'-colorspace': 'RGB',
'-interlace': 'none',
'-density': '300',
'-quality': '100'
}
};
const pdfImage = new PDFImage(file, pdfImageOpts);
pdfImage.convertPage… // etc. etc.. |
almost 3 years later but did you find any solution to avoid the pixilized output image? |
Had the same problem, the |
No description provided.
The text was updated successfully, but these errors were encountered: