fix: 图片工具转换图片自动去除修复旋转字段,去除旧版脚本
This commit is contained in:
@@ -41,7 +41,7 @@ function processImage(inputPath, outputPath, predetect) {
|
||||
try {
|
||||
if (type === IMAGE_TYPES.SCREENSHOT) {
|
||||
execSync(
|
||||
`magick "${inputPath}" -gravity center -quality 80 "${finalOutputPath}"`,
|
||||
`magick "${inputPath}" -auto-orient -gravity center -quality 80 "${finalOutputPath}"`,
|
||||
{ stdio: 'inherit' }
|
||||
);
|
||||
} else {
|
||||
@@ -51,7 +51,7 @@ function processImage(inputPath, outputPath, predetect) {
|
||||
? `-gravity center -resize "${target.size}^" -extent "${target.size}"`
|
||||
: `-resize "${target.size}"`;
|
||||
execSync(
|
||||
`magick "${inputPath}" ${resizeArgs} -quality 80 "${finalOutputPath}"`,
|
||||
`magick "${inputPath}" -auto-orient ${resizeArgs} -quality 80 "${finalOutputPath}"`,
|
||||
{ stdio: 'inherit' }
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user