Convert BMP to EPS using API for NodeJS

Overview

This article explains how to convert BMP to EPS using NodeJS. It covers the following topics.

NodeJS Image to EPS Conversion

NodeJS Image to EPS

Converting an image to EPS using NodeJS from other formats like JPG, TIFF, PNG, etc is similar to BMP.

NodeJS BMP to EPS Conversion

You can check the quality of Aspose.Page BMP to EPS conversion and view the results via free online BMP to EPS Converter and than view the resulting EPS file with our EPS Viewer

Steps: BMP to EPS Converter API Code in NodeJS

Just call AsposeSaveImageAsEps method to save image to EPS.

Using strings for saving BMP to EPS in NodeJS

In the following NodeJS code snippet, the input image and the output EPS file are assigned by strings:

 1const AsposePage = require('asposepagenodejs');
 2
 3const img_file = "./data/PAGENET-361-10.bmp";
 4
 5console.log("Aspose.Page for Node.js via C++ examples.");
 6
 7AsposePage().then(AsposePageModule => {
 8
 9    //SaveImageAsEps - convert image to EPS
10    const JSON = AsposePageModule.AsposeSaveImageAsEps(img_file, img_file + ".eps");
11    console.log("SaveImageAsEps => %O",  JSON.errorCode == 0 ? "Files(pages) count: " + JSON.filesCount.toString() + JSON.filesNameResult.toString() : JSON.errorText);
12
13},
14    reason => {console.log(`The unknown error has occurred: ${reason}`);}
15);

See BMP to EPS conversion in Java and C++.

Evaluate BMP to EPS conversion online on our BMP to EPS Converter. You can convert several BMP images to EPS files at once and download the results in a few seconds.

You can download examples and data files from GitHub.

Have any questions about Aspose.Page?



Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.