prettysmc

最近在用latex编写自己的论文,遇到了需要添加图片的问题,为了添加方便,我还是选择使用.eps格式的文件。

但是程序运行产生的图片为.png格式,

现在就涉及到图片格式的转换问题。(注:下列命令适用于各种图片格式转换)

1. 运行环境:Ubuntu

2. sudo apt install sam2p

3. 输入密码

4. 用cd命令到你图片所在文件路径

5. sam2p test.png test.eps  就可以把你的png文件换成eps格式了,而且在同一文件目录下。

gaojiaxing@ubuntu:~/Downloads$ ls
hello.png
gaojiaxing@ubuntu:~/Downloads$ sam2p hello.png hello.eps
This is sam2p 0.49.2.
Available Loaders: PS PDF JAI PNG JPEG TIFF PNM BMP GIF LBM XPM PCX TGA.
Available Appliers: XWD Meta Empty BMP PNG TIFF6 TIFF6-JAI JPEG-JAI JPEG PNM GIF89a+LZW XPM PSL1C PSL23+PDF PSL2+PDF-JAI P-TrOpBb.
sam2p: Notice: PNM: loaded alpha, but no transparent pixels
sam2p: Notice: job: read InputFile: hello.png
sam2p: Notice: writeTTT: using template: l23
sam2p: Notice: applyProfile: applied OutputRule #37
sam2p: Notice: job: written OutputFile: hello.eps
Success.
gaojiaxing@ubuntu:~/Downloads$ ls
hello.eps  hello.png

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-12-21
  • 2022-01-09
  • 2021-12-19
  • 2022-12-23
  • 2022-01-08
猜你喜欢
  • 2022-02-28
  • 2022-12-23
  • 2021-07-18
  • 2022-12-23
  • 2021-09-13
  • 2021-11-28
  • 2022-02-12
相关资源
相似解决方案