I am using pdfkit node js module to generate pdf document. Here what happens is when i upload resolution of 1024*768 pixels image is croped and it is not adjustable like typical pdf document, I tried all the options in pdf kit but no luck.
. I can generate pdf with low resolution images propely. The problem is with very high resolution images.
eg: doc.image('tmp/'+filename);