vid-com 1.0.7 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vid-com",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Video bitrate scanner & batch compressor with ARW→JPEG conversion (macOS, FFmpeg, hevc_videotoolbox)",
5
5
  "main": "video_bitrate_tool.js",
6
6
  "bin": {
@@ -42,9 +42,6 @@ do_convert() {
42
42
 
43
43
  # 执行转换
44
44
  sips -s format jpeg -s formatOptions 90 "$src_file" --out "$target_file" > /dev/null 2>&1
45
-
46
- # 从原始 ARW 拷贝所有元数据到输出 JPG
47
- exiftool -TagsFromFile "$src_file" -All:All -overwrite_original "$target_file" > /dev/null 2>&1
48
45
  }
49
46
 
50
47
  export -f do_convert
@@ -53,7 +50,7 @@ export -f do_convert
53
50
  # -0: 处理带空格的文件名
54
51
  # -P: 并发数
55
52
  # -I: 占位符
56
- find "$SOURCE_DIR" -type f -iname "*.arw" -print0 | xargs -0 -I {} -P "$THREADS" bash -c "do_convert '{}' '$OUTPUT_DIR'"
53
+ find "$SOURCE_DIR" -type f \( -iname "*.arw" -o -iname "*.dng" \) -print0 | xargs -0 -I {} -P "$THREADS" bash -c "do_convert '{}' '$OUTPUT_DIR'"
57
54
 
58
55
  echo "------------------------------------------"
59
56
  echo "转换完成!所有文件已输出到: $OUTPUT_DIR"