Commit d2d42aa9 by 曹玉玺

混滚很版

parent 0cc106d7
...@@ -184,9 +184,9 @@ async png2jpg (srcPng, dstJpg) { ...@@ -184,9 +184,9 @@ async png2jpg (srcPng, dstJpg) {
//获取图片尺寸,判断是否需要横向 A4 //获取图片尺寸,判断是否需要横向 A4
var imgSize = await this._getImgSize(jpgpathtmp); var imgSize = await this._getImgSize(jpgpathtmp);
var pageFormat = 'a4'; // 默认竖向 var pageFormat = 'a4'; // 默认竖向
if (imgSize.width > imgSize.height) { // if (imgSize.width > imgSize.height) {
pageFormat = 'a4r'; // 横向 A4 // pageFormat = 'a4r'; // 横向 A4
} // }
//转换为 eps //转换为 eps
var cmd2eps = "jpeg2ps -p " + pageFormat + " " + jpgpathtmp + " -o " + epspath; var cmd2eps = "jpeg2ps -p " + pageFormat + " " + jpgpathtmp + " -o " + epspath;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment