title: Unable to resize image and maintain transparency
body: <p>The below code resizes an image.  Unfortunately the image which is a vertical image has black bars on the sides.  It looks as though the transparent, or blank space is being filled with black.  I've tried setting the background color to white, and using alphaRGB but can't seem to shake it.</p>
  
  <pre><code>    OrderProductAssetEntity orderProductAssetEntity = productAssets.get(jobUnitEntity.getId());
      File asset = OrderProductAssetService.getAssetFile(orderProductAssetEntity);
      if (asset.exists()) {
          //resize the asset to a smaller size
          BufferedImage resizedImage = new BufferedImage(200, 200, BufferedImage.TYPE_INT_RGB);
          Graphics2D g = resizedImage.createGraphics();
          g.setBackground(Color.WHITE);
          g.drawImage(ImageIO.read(asset), 0, 0, width, height, null);
          g.dispose();
  
          jobUnitImages.put(orderProductAssetEntity.getOriginalLocation(), new PDJpeg(document, resizedImage));
      } else {
          jobUnitImages.put(orderProductAssetEntity.getOriginalLocation(), null);
      }
  </code></pre>