Skip to content

An action to convert .eps (Encapsulated PostScript) files to image and vector formats.

License

Notifications You must be signed in to change notification settings

devicons/eps2img

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EPS 2 Image

An action to convert .eps (Encapsulated PostScript) files to image and vector formats.

Supported output formats

  • Image formats (raster)

    • .png * default
    • .bmp
    • .tiff
    • .jpeg
  • Vector formats

    • .svg
    • .ps
    • .pdf

Usage

Inputs

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

Outputs

 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:

To auto commit

To upload image


Available options

- 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

input

 This input parameter is required and is the full relative path to your .eps file.

Example

input: ./folder/myFile.eps

output

 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 

format

 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 ❤

About

An action to convert .eps (Encapsulated PostScript) files to image and vector formats.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 94.6%
  • Dockerfile 5.4%