image-to-code 0.1.1 → 0.1.2

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/bin/cli.js CHANGED
@@ -55,6 +55,7 @@ function main() {
55
55
  env: {
56
56
  ...process.env,
57
57
  PYTHONPATH: MODULE_DIR + (process.env.PYTHONPATH ? path.delimiter + process.env.PYTHONPATH : ""),
58
+ PYTHONIOENCODING: "utf-8",
58
59
  },
59
60
  });
60
61
  child.on("exit", (code) => process.exit(code));
@@ -16,6 +16,8 @@ def analyze_image(image_path=None, clipboard=False, ocr_language="tha+eng",
16
16
  min_confidence=70, sample_count=2000, quantize_tolerance=15,
17
17
  full=False, json_output=False):
18
18
  """Run full analysis pipeline on an image."""
19
+ if hasattr(sys.stdout, "reconfigure"):
20
+ sys.stdout.reconfigure(encoding="utf-8")
19
21
  resolved_path = image_path
20
22
 
21
23
  if clipboard:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "image-to-code",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Extract structured data (colors, layout, OCR text) from images. No AI vision required.",
5
5
  "bin": {
6
6
  "image-to-code": "bin/cli.js"