3 Replies Latest reply on Aug 27, 2013 1:45 PM by George_Johnson

    Is it possible to downsample an image with javascript?

    turpentine3985

      A colleague of mine has created a PDF with functionality in place to allow the user to add pictures into predetermined locations in the document.  His concern is that without the ability to downsample these photos automatically, the users may end up attaching photos from their 10+ MP cameras and this would result in enormous PDF documents.

       

      Is it possible to downsample these images automatically with javascript?  The dimensions of the images can remain unchanged, but the resolution must reduce to bring down the potential size of the resulting PDF.

       

      Any advice or pointers would be welcome.

      Thank you