I see that converting SVGs to absolute commands is a common ask:
- Is there a tool to convert SVG line paths from absolute to relative?
- Convert SVG Path to Absolute Commands
However, it looks like most solutions are in JavaScript:
Was wondering if anyone knew of a working solution in Ruby? Or a related tool that might make creating a solution easier? I believe it'd have to "work out what that last coordinate is in absolute terms"
I've found some Ruby projects related to SVGs but they don't seem like they'd be helpful in creating a solution:
Hoping this already exists somewhere. I guess an alternative to creating it in Ruby is to figure out a way to execute JavaScript code in my project (API running Sinatra). I'd need to output the SVG as a string to Ruby though. I'm not sure about how to go about that or if it's feasible