You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.6 KiB
JavaScript

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

const config = {
//基础公共配置
base: {
/**
* 图片文件夹路径
* 1. 配置文件中inputDir为空
* 则根据directoryPath目录获取该文件夹下最新创建的文件夹作为工作目录
*
* 2. 配置文件中inputDir不为空
* 则直接使用inputDir作为工作目录
*/
inputDir: '',
// inputDir: 'E:\商品资料汇总\商品资料(1201-1250)\ppt1234-海姆立克',
// inputDir: 'C:/Users/Administrator/Desktop/test',
// 指定要查找的目录
directoryPath: 'E:/商品资料汇总/商品资料(1201-1250)',
// 要转换的文件个数, 0表示全部转换
rangeNum: 0,
// rangeNum: 3,
},
// 裁剪商品封面图
cover: {
// 支持处理的常见图片格式
imgFormat: new Set(['jpg', 'jpeg', 'png', 'gif', 'webp', 'tiff', 'svg']),
// 封面图裁剪比例
scaleArr: [
{
name: '主图11',
scale: [1, 1],
dir: '',
},
{
name: '主图34',
scale: [3, 4],
dir: '',
},
],
},
ppt: {
pptFormat: new Set(['ppt', 'pptx']),
pdfFormat: new Set(['pdf']),
},
merge: {
// 每行图片的个数
row: 3,
//画布背景颜色
bgColor: 'rgb(211, 211, 211)',
//画布宽度
width: 1000,
//画布外边距
margin: 3,
//图片间距
padding: 3,
},
};
module.exports = config;