title: How to set a resolution/density in JPEG/PNG image in Javascript?
body: <p>I need to change the resolution/density in JPG/PNG type of images in javascript. The reason I need to do this is so that I can send the image to a third party API which will then know how many pixels per inch (DPI/PPI) to print based on the resolution/density metadata.</p>
  
  <p>Are there any such solution in javascript?</p>