Optimizing images for Advanced PDF templates in Netsuite

Netsuite has a data limit of 15Mb (current limit, may be revised in future) for file transfers, so it is recommended to optimize the assets that will be included while a new advanced template is created since PDF templates can use pretty large and graphics-intensive files/images.

Note: Netsuite may or may not throw a data limit error while creating and rendering the template but the combined file size of all the images, if it exceeds the 15 Mb file size limit can throw an error while the generated PDF is being used as an attachment for messages and alerts (Emails etc).

Tips to ensure better performance, print quality, and file sizes:

  • Avoid resizing the provided images to ensure better print quality (provided the aspect ratios are a match for the output), more pixel density means better the print output.
  • Use tools like Ezgif.com that can losslessly compress and optimize your image files which can help reduce the overall file size. It Will not affect the print quality or color calibration drastically.
  • Try different image formats according to use case scenarios, for example, if the image is a full-page one and does not require any transparency attributes, avoid using ‘.PNG’ and other data-rich formats that can take up a lot of space. Netsuite does not give provisions for using data-rich better color-calibrated resource files due to the low file size limit.
  • Use tools (Ezgif.com or similar ones) to losslessly convert the files to a better data-efficient format like ‘.JPG’. Play with the conversion quality sliders for that perfect balance between image quality and file size.
  • Do take care of ensuring the color depth/bit is not drastically affected when converting the images from a data-rich format to less heavy formats like ‘.JPG’. Colors may or may not look washed out when the file type loses a portion of color depth data (bits).
  • Always try to convert ‘.PNG’ files (if needed) to ‘.GIF’ files before moving on to other less heavy formats like ‘.JPG’ since GIF retains most of the image data like color saturation and edge quality (an attribute that determines the sharpness of straight lines) while being efficient in file size. Few format types play well with the BFO template engine.

Leave a comment

Your email address will not be published. Required fields are marked *