Advertisement
s2c-code-share

Automation Script Example: Convert JPGs to Vector PDF using Solid Vectorization Method

Feb 15th, 2022
1,477
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. preset = s2c.Preset()
  2. preset.method = s2c.Preset.Method.Solid
  3.  
  4. imgs = s2c.list("path/to/input_directory", "jpg")
  5. for i in imgs:
  6.     r = i.open()
  7.     r.segment(5, 3)
  8.     v = r.vectorize(preset)
  9.     v.exportToPdf(r.path)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement