Supported output formats
-
Image formats (raster)
.png
* default.bmp
.tiff
.jpeg
-
Vector formats
.svg
.ps
.pdf
input:
description: Input path of the EPS file.
required: true
output:
description: Output path of the image file.
required: false
format:
description: Format of the image file.
required: false
default: png
Images exist only within workflow, so you will need another action to commit or upload the created images.
Here are some suggestions of 3rd party actions:
- uses: lunatic-fox/eps2img@v1
with:
# Required. Full relative path to EPS file.
input: ./pathToEPS/file.eps
# Optional. Path to the output file.
# Patterns: "" | "./" | "./dirname/" | "./filename" | "./filename.xyz"
output: ./pathTo/outputFilename
# Optional. Format of the output file.
# Options: "png" | "bmp" | "tiff" | "jpeg" | "svg" | "ps" | "pdf"
format: png
This input parameter is required and is the full relative path to your .eps
file.
Example
input: ./folder/myFile.eps
This input parameter is optional and can be used as shown in the patterns below.
Example: If output
does not exist
Creates the output file in the same path and with the same filename of the .eps
file.
input: ./folder/myFile.eps
# creates -> output: ./folder/myFile.png
Example: Is a complete path
Creates the output file in the described path.
input: ./folder/myFile.eps
output: ./myConvertedFile.png
Example: Is an incomplete path
Creates the output file in the same path until the last /
and uses the end of path as the filename.
input: ./folder/myFile.eps
output: ./screenshot/myPicture
# creates -> output: ./screenshot/myPicture.png
Example: Is an endpoint
Creates the output file in the described path and names the file with the same filename of the .eps
file.
input: ./folder/myFile.eps
output: ./screenshot/
# creates -> output: ./screenshot/myFile.png
This input parameter is optional and output
have priority over it.
Example: If output
is a complete path
Creates the output file in the described path. format
will be ignored.
input: ./folder/myFile.eps
output: ./myConvertedFile.png
format: tiff
Example: If output
is an incomplete path
Creates the output file in the same path until the last /
, uses the end of path as the filename and convert the .eps
file to defined format
.
input: ./folder/myFile.eps
output: ./screenshot/myPicture
format: jpeg
# creates -> output: ./screenshot/myPicture.jpeg
Example: If output
is an endpoint
Creates the output file in the described path, names the file with the same name of the .eps
file and convert the .eps
file to defined format
.
input: ./folder/myFile.eps
output: ./screenshot/
format: bmp
# creates -> output: ./screenshot/myFile.bmp
Example: If output
does not exist
Creates the output file in the same path, with the same filename of the .eps
file and convert the file to defined format
.
input: ./folder/myFile.eps
format: pdf
# creates -> output: ./folder/myFile.pdf
Made with ❤