Code Monkey home page Code Monkey logo

Comments (8)

skotz avatar skotz commented on June 2, 2024

The examples came through as PNGs, but if it's really an SVG then you can probably solve it super simply by parsing the path data out of it directly. It doesn't even look like there's any distortion. Do you have an example of the SVG format itself?

from cbl-js.

skotz avatar skotz commented on June 2, 2024

You can provide them in this thread. If it's converting them to png on you, then open one with a text editor and copy the contents into a code block.

from cbl-js.

jimmylannister avatar jimmylannister commented on June 2, 2024

<svg xmlns="http://www.w3.org/2000/svg" width="150" height="50"><path d="M14 35C77 2 94 25 143 1" stroke="#777" fill="none"/><path d="M16 19c43 11 68 25 120 26" stroke="#333" fill="none"/><path fill="#111" d="M54.38 37.95l-.02-.02v-.01q.37 1.06.9 3.08l-.14-.14.14.14q-4.27-1.38-8.88-1.12l-.09-.08-.03-.04q-4.44.4-8.43 2.38l.04.05-.14-.15q.37-.54.41-.46l-.01-.01-.14-.14q3.88-3.82 7.8-8.23l-.06-.06.02.02q4.41-5 5.59-9.68l.05.06-.03-.04q.35-1.85-.93-3.03l.12.11-.05-.04q-1.38-1.3-3.17-1.14l.05.05-.01-.01q-.37-.07-.71-.07l.01.02.02.02q-1.56-.04-2.82.87l.14.14-.07-.07q-1.31 1.35-1.08 4.02l.1.1-.09-.09q-1.7-.26-2.92-.71l-.14-.14.13.12q-.31-1.52-.38-2.96l-.05-.05.12.12q-.16-1.73.44-2.87l.17.17-.06-.06q1.67-1.49 5.02-1.49l.16.16 1.59-.16.14.14q2.15-.1 3.1.02l.15.14-.05-.05q4.41.49 4.67 2.92l-.11-.11.1.1q.01.51-.06 1.31l-.06-.06h-.01q0 .68-.15 1.36l.1.11-.07-.07q-1.67 8.07-9.24 14.93l-.09-.09.05.05q1.38-.19 2.75-.19l.1.1v.01q3.14-.1 5.99.7zm-.67-20.93l.03.04.03.03q-1.6-.65-3.31-.73l.06.07-3.41-.18-.15-.16q-4.44-.24-6.65.86l.14.14-.06-.06q-1.02 1.42-1.02 3.47l-.05-.05q-.02.67.29 3.48l.11.12-.16-.16q.64.33 1.82.63l-.11-.11v1.03l-.01-.01q-.02.48.05 1.01l.17.17-.03-.04q1.29.16 3.77.39l-.15-.15-.01-.01q-.07-.41-.07-.76l.14.14.05.05q-.12-1.94 1.1-3.29l.12.12-.05-.06q1.21-1.35 3-1.24l-.08-.07-.02-.03q.88.16 1.64.31l.04.04-.02-.03q.02.29.09.71l.04.04-.01-.02q.05.44-.02.79l.03.03-.03-.03q-1.32 4.69-5.73 9.53l-.04-.04.09.09q-2.18 2.21-7.62 8.26l-.05-.05-.01-.01q-.1.92-.45 1.49l-.01-.01-.07-.07q1.65-.82 3.17-1.36l.07.07-.09-.09q-.57.72-1.52 2.21l-.08-.08-.05-.05q-.17.28-.29.63l.06.06.12.11q4.76-2.16 10.25-1.97l-.02-.01.09.08q5.7.18 10.26 2.54l-.08-.08-.96-2.11-.03-.02q-.65-1.35-.92-2.15v.01l.07.06q-.81-.5-2.03-.92l.03.03-.06-.06q-.06-.63-.44-2l-.01-.01.02.02q-2.25-.61-4.53-.8l.04.04q4.71-4.54 6.23-12.8l-.14-.14.33-2.76-.16-.16q.05-1.67-1.17-2.35l-.08-.08.02.06-.08-.08q-.06-.1-.13-.1l.06.06.01.02q-.17-.78-1.28-1.39z"/><path fill="#222" d="M117.77 29.56v.01l.1.09q.05 4.31-.68 8.46l.03.03-.19-.19q2.37-.45 5.45-.56l-.03-.03.05.05q1.21.06 2.27-.95l.05.05.08.08q1.02-1.06 1.02-2.39l-.04-.04.03.03-.09-.62.12.12-.1-.1q-.17-2.95-2.42-3.79l.07.06.01.01q-.69-.23-1.38-.15l-.16-.17.04.04q-.96.04-1.99.07l-.14-.14.08.08q-1.07.03-2.1.03zm-1.15-10.36l.09.09-.06-.06q.88 3.32 1.15 7.7l.04.04-.04-.04q1.4.07 4.07.1l-.07-.06.06.06q2.92.03 3.27-3.51l-.06-.06.15.15q.18-1.95-1.23-2.79l-.05-.05.02.02q-1.03-.65-5.44-1.29l.01.01.1.1q-1.16-.24-2.07-.47zm-3.59 22.94l.02.03v-.01q2.48-6.65 2.22-14.03l-.18-.18.1.1q-.24-7.25-3.17-13.72l-.09-.08-.03-.04q3.84 2.59 10.06 2.83l.1.1-.05-.05q6.1.12 6.44 3.01l.16.16.01.02q.22 2.65-1.19 5.31l.01.01.06.07q-.7 1.54-2.3 2.22l-.1-.1.07.07q3.66.69 3.88 6.06l-.14-.15.01.02q.23 1.26.16 2.66l-.09-.08.02.02q-.1 1.26-1.04 2.2v-.01l.09.1q-.9.96-2.23 1.11l-.07-.07.04.04q-1.53.04-2.59.04l.07.07-.06-.06q-5.78-.07-10.31 2.22zm12.66.18l.05.05.06.06q.85-.03 2.71.08l.14.14-.01-.01q1.37 0 2.47-.88l-.08-.08q.84-.87.73-2.43l-.05-.05.07.07q-.02-.89-.74-4.36l-.05-.05-.07-.07q-.69-3.23-2.55-4.72l.03.03-.29-.71-.14-.14q1.75-1.33 2.32-5.1l-.1-.1.1.11q.07-1.23 0-2.64l.15.15-.2-.19q.1-1.16-1.01-2l-.01-.01-.01-.01q-.28-.17-.4-.21l-.08-.08.1.1q-.4-.67-1.24-1.47l.06.06.09.09q-1.57-1.12-5.8-1.31l.03.03-.13-.13q-6.47-.11-10.46-3l.01.01-.16-.16q3.4 7.13 3.71 14.67l-.05-.05-.06-.05q.36 7.85-2.46 14.78l.13.13 2.04-.97-.09-.09q-.29 1.23-.79 2.38l.03.02-.02-.01q4.29-1.88 9.32-1.88l-.07-.07.04.04q1.36-.05 2.81.11zm-2.02-10.44l.01.02-.07-.07q.81 0 1.72.46l-.1-.1.13.13q0 .22.15 1.29l.05.05-.11-.11q.34 1.52-.59 2.57l-.01-.01-.01-.01q-.89 1.09-2.3.97l-.05-.05-1.54.06-.03-.03q-.7.1-1.42.22l-.01-.01.09.09q.3-1.83.37-5.3l-.15-.15.13.13q.64-.09 1.9-.12l-.02-.02.04.04q1.17-.12 1.78-.08zm-.97-9.53l-.01-.01.27-.11q.33.1.52.14l-.03-.03.3-.09.36.18.71.17-.11-.1q.14.28.14.59l.02.02-.09.44-.02-.02q.05 1.31-.82 2.24l.07.08-.16-.16q-.87.94-2.08.94l.1.11.08.07-1.1-.06-.05-.06-.05-.05q-1.23.07-.89.07l-.03-.03-.1-.1q.16-1.33-.15-4.38l-.14-.14.05.04q1.65.22 3.18.22z"/><path d="M2 44c88-22 75 2 146-13" stroke="#888" fill="none"/><path fill="#111" d="M98.85 39.78l.08.08-2.02-.08.11.12q-.94.01-1.89.12l-.12-.12.1.1q.49-6.28.49-10.28l.09.09-.02-.02q-4.04-6.74-11.69-15.42l.09.09.02.02q1.7.9 5.05 1.7l.08.07.04.05q4.89 5.42 7.9 10.64l-.01-.02.15.16q2.87-5.69 7.25-10.72l.05.05.09.09q2.43-.39 4.94-1.19l-.02-.02-.1-.1q-6.09 6.05-10.96 14.47l.01.01-.03-.03q.16 7.2.46 10.28zm9.19-22.48l2.59-2.97.09.09q-3.05 1.22-6.17 1.67l-.05-.05-.01-.01q-4.27 4.68-7.08 9.79l.01.01.1.1q-2.2-3.73-5.4-7.61l-.06-.06.17.17q-.46-.19-.95-.27l.13.14-.03-.03q-.75-.87-2.27-2.54l.13.13-.08-.08q-3.32-.7-6.29-2.26l-.09-.09.11.11q7.58 8.35 12.34 16.27l.07.07-.1-.11q.01 6.45-.6 10.6l-.03-.03-.06-.06q.85.08 2.29-.03l.04.03-.07.96-.05-.05q.05.51-.03 1.04l-.01-.01.06.06q3.54 0 5.29.19l-.09-.09.04.04q-1.18-4.61-1.29-10.59l-.03-.02.05.05q4.36-8.47 10.91-15.82h-.01l-3.55 1.28z"/><path fill="#222" d="M13.66 14.32l.01.01q3.69 2.43 8.44 2.65l.18.18-.1-.1q4.61.15 8.87-1.6l.07.07-.1-.1q-.16.64-.92 3.42l.05.05-.09-.09q-2.64 1.13-5.61 1.28l-.18-.18.09.09q-2.87.25-5.77-.47h.01l-.01-.01q.68 3.62.87 7.27l-.1-.1-.03-.03q1.98.19 3.57.15l.03.02.01.01q1.29.08 3.69-.04l-.05-.05.06.06q-.08.61-.08 1.29v1.33l-.05-.04q-2.23.16-7.03.24v-.01l-.03-.02q-.13 3.98-.7 7.98l.11.11-.1-.1q2.65-.63 5.39-.51l-.05-.05q2.72.09 5.31.93l.02.01.05.06q.14.86.41 1.62l-.07-.06.47 1.54-.08-.09q-3.06-1.16-6.49-1.16l-.13-.13q-4.73.14-9 2.39l-.03-.04-.11-.11q2.36-6.77 2.1-13.89l.03.03-.03-.03q-.3-7.18-2.96-13.85zm.3 28.39l.01.01-.02-.01q1.37-.62 2.13-.96l-.11-.11.08.08q-.22.73-.79 2.25l.11.12-.02-.02q4.38-2.14 9.44-1.87l.02.02.06.06q5.12.24 9.12 2.95l.01.01.1.1q-1.22-2.59-1.9-4.53l-.01-.01.04.04q-1.05-.67-2.04-1.01l.03.03-.09-.09q-.28-1.27-.44-2.07l.06.06-.01-.01q-3.23-1.14-6.39-1.14l.15.15-.1-.11q-1.14.01-2.28.12l-.05-.04.05.04q.08-1.29.11-2.51l-.01-.01.14-2.45.02.02q1.77-.13 3.56-.09l.02.02.05.05q1.89.1 3.68.25l-.05-.05-.01-.01v-1.83l-.18-.18-.01-1.91-.7.18-.08-.08q-.37.12-.83.12l.07.07-.1-.11q.03-.65.18-1.94l.1.1-.03-.04q-1.59.24-2.77.28l-.14-.14.17.17q-1.1-.14-2.92-.22l.03.03q.04-1.29-.15-4.11l-.07-.06.03.02q1.04.14 2.03.14l-.12-.13.04.04q4.8.08 8.49-1.83l.04.04-.03-.02q.53-2.41 1.4-4.62l-.11-.11.07.07q-1.31.86-2.15 1.2l.06.06.04.03q.22-.83.68-2.39l-.01-.01-.11-.11q-4.54 2.23-9.41 1.93l-.02-.02.03.03q-5.33-.35-9.18-3.2l-.04-.04-.01-.01q2.89 6.96 3.19 14.57l.01.01.15.15q.32 7.93-2.19 14.71z"/><path fill="#444" d="M72.35 18.53l-.1-.09.02.02q-.78.32-.93 1.12l.09.09-.01 5.13.07.07q1.11-.03 3.32-.3l-.13-.13.07.07q-.13.33-.17 1.17l.08.08-.09-.1q.02.82.02 1.28l.04.04-1.48.2-.12-.12q-.86.01-1.74.01l.12.12.07.07q-.14 4.04-.22 12.42l-.03-.03.17.17q-2.26.02-3.74.71l-.06-.06-.02-.02q1.11-6.12 1-13.35l.06.06-.16-.17q-.59.03-1.89-.24l.11.1-.03-.02q-.04-1.03-.23-2.97l.02.02.07.07q.96.35 1.92.54l.04.04-.03-.03q-.09-.69-.39-3.17l.17.18v-.01q-.39-2.21-.39-3.16l.11.11-.03-.03q-.02-1.7 1.39-2.27l-.01-.01-.03-.02q.85-.34 5.68-1.18l.14.14-.17-.17 1.68-.22.02.02-.08-.08q-.05.94-.2 1.82l-.14-.14-.22 1.64.04.04q-.65-.16-1.15-.04l-.04-.05.04.04q-.67-.06-2.57.55zm5.26.97l.02.01.11.11q.22-2.33.83-4.88l.19.19q-.61.34-1.9.95l-.1-.1.36-1.73.08.08q-1.36.06-3.83.59l.14.14-.11-.11q-1.06.2-4.26 1.11l-.07-.07-.08-.09q-1.49.49-1.49 2.36l-.04-.04.1.1q-.15.16-.07.5l.04.04.01.02q.28 1.38.4 2.71l-.06-.05.22 2.69.05.05q-1.45-.46-2.1-.92l.14.14-.15-.15q.08.91.12 1.94l.01.02.29 2.15-.08-.08q.78.25 1.58.32l-.04-.04.04 2.14.25-.13.13.13q-.21 6.03-1.2 11.48h.01l.02.02q1.05-.43 2.23-.69l-.03-.04-.24 2.01.02.02q1.35-.17 2.64-.21l-.14-.15.01.01q1.28.03 2.53.3l-.1-.11.14.14q-.97-5.12-.97-13.07l.09.09-.02-.02q1.15.04 3.25.12l.02.02-.07-1.94.06.07q-.15-1.1-.11-2.05l.09.09.05.05q-.47.1-1.54.36l-.03-.03-.02-.02q-.1-.79.01-2.12l.13.13-.04-.05q-.79.28-1.59.36l-.02-.02.01.01q-.07-1.48.05-2.89v.01l.02.02q.07-.73.6-1.07l.01.01.04.03q1.05-.58 1.87-.66l.02.02-.1-.09q.75-.16 1.58-.23z"/></svg>

from cbl-js.

jimmylannister avatar jimmylannister commented on June 2, 2024

<svg xmlns="http://www.w3.org/2000/svg" width="150" height="50"><path fill="#222" d="M95.89 19.59l.05.06.07.07q-2 .09-2.95.24l-.05-.04.04.04q-1.59.27-2.81.8l-.06-.06-.06-.06q-3.44 1.51-3.55 6.19l.04.04v.01q-.12 2.62.53 5.55l-.08-.07.11.1q.92 4.08 4.54 5.26l-.08-.07-.07-.07q2.02.69 3.47.53l-.03-.02.35-.11-.01-.01q.3.11.49.15l-.03-.04.06.07q.05-.11.2-.15l.06.06.06.06q2.57-.32 3.94-.89l-.13-.14-3.56-3.52.07.08q.29-.36.9-.97l.04.04.93-.89-.08-.09q1.92 2.15 3.9 4.21l-.12-.12.18.18q2.29-1.86 2.56-7.23l-.01-.01-.04-.04q.11-.88.11-1.79l-.13-.13.03.03q.12-5.55-4.94-6.66l-.09-.08v-.01q-1.26-.26-3.77-.42zm12.87 22.16l-.07-.06q-.47.55-1.65 1.43l-.12-.12-4.41-3.69.09.09q-2.6 1.09-6.86 1.13l.06.07.1.09q-6.73-.06-9.55-2.31l.04.04.04.04q-1.85-1.85-2.31-4.82l.14.14-.09-.09q-.1-1.71-.48-5.28l.03.03-.15-.15q.08-.65-.04-2.4l-.03-.03-.08-.07q-.02-1.43.02-2.31l-.11-.11.08.08q.12-3.04 1.87-4.61l.03.03.04.04q1.45-1.39 4.65-1.89l-.04-.04.1.1q2.45-.41 5.34-.33l-.02-.03-.02-.01q7.54.15 10.66 2.51l-.05-.05.08.08q2.12 2.08 1.85 6.99l-.11-.11.18.18q-.28 3.56-.47 4.89l-.02-.01.07.07q-.63 4.51-2.95 6.83l-.13-.13.16.16q1.32 1.09 4.06 3.56zm-4.91-24.32l.06.06-.07-.07q-2.04-.75-8.55-1.24l.12.12-.05-.05q-1.42-.01-4.2.1l.05.05.02.02q-4.32.13-6.57 2.11l.17.17-.17-.17q-1.6 1.52-1.6 4.68l.06.06-.1-.1q.13.97.28 2.68l-.11-.11.1.1q.13 1.69.13 2.57l-.14-.15.15.16q-.01 1.58.37 5.16l.1.1h-.01q.27 2.77 1.87 4.83l.04.05.07.07q.39.88 1.61 2.02l-.01-.01-.17-.16q2.79 2.06 7.97 2.33l.13.13-.12-.13q.46.13 2.86.24l-.07-.06.02.01q4.67.03 6.96-1.04v.01l.05.05q1.01.82 5.73 4.39l-.04-.04-.09-.09q.61-.52 1.91-1.51l.01.01-.02-.02q-.74-.55-1.54-1.24l-.11-.11-1.61-1.42.01-.14.05.05q-.56-.45-1.78-1.47l-.06-.06.15.15q1.74-2.68 1.74-7.21l-.02-.02.03.03q.09-.33.13-1.17l-.06-.06-.05-.05q.15-.72.15-1.14l.06.06-.17-.17q.07-5.45-.65-7.81l-.09-.09.05.05q-.43-1.34-1.31-2.41l.09.09.06.06q-.89-2.22-3.82-3.25zM97.84 22l-.04-.04q4.13-.02 5.96 1.58l.1.11v-.01q.42 1.08.54 2.41l.01.01.06.06q.14 1.32.06 2.69l-.1-.11.09.1q-.5 4.79-2.44 6.5l.07.07.03.04q-1.34-1.35-3.85-4.09l.09.09-.06-.05q-.73.79-2.29 2.35l-.12-.12.09.08q.46.51 1.61 1.69l-.02-.01v.11l.05.05q.51.47 1.54 1.54l-.01-.01.07.07q-1.03.23-3.35.53l.07.08-.66-.13-.38.04.08.11q-3.44.03-5.42-1.61l-.03-.03-.13-.13q-1.03-2.1-.99-5.22v.01l.1.1q.15-8.72 9.33-8.8z"/><path d="M17 10c69-8 75 37 116 1" stroke="#111" fill="none"/><path fill="#333" d="M54.38 37.94l-.05-.05-.03-.02q.37 1.05.9 3.07l.04.04-.09-.1q-4.15-1.25-8.76-.99l.02.03-.16-.17q-4.53.31-8.53 2.29l-.04-.04q.26-.66.3-.58l.02.02.02.02q3.71-3.98 7.64-8.39l.07.07.01.01q4.46-4.94 5.64-9.62l-.16-.17.15.15q.36-1.84-.92-3.02l.03.03-.02-.02q-1.35-1.26-3.14-1.11l.04.04.04.04q-.37-.07-.71-.07l.12.13-.07-.08q-1.58-.05-2.84.86l-.01-.01-.03-.03q-1.24 1.42-1.02 4.08l.06.06-.01-.01q-1.82-.37-3.03-.83l.03.03-.05-.05q-.22-1.42-.29-2.87l-.03-.03.14.14q-.19-1.75.42-2.89l.13.13-.04-.05q1.85-1.3 5.2-1.3l-.11-.11 1.79.04-.08-.08q2.31.06 3.26.17l.01.01.05.05q4.29.38 4.56 2.81l-.07-.07.11.11q0 .49-.08 1.29l.04.04-.06-.05q.06.74-.09 1.43l-.06-.07-.03-.02q-1.57 8.17-9.15 15.02l-.03-.03.07.07q1.4-.16 2.78-.16l.01.02-.14-.14q3.3.07 6.16.86zm-.7-20.95l.01.02.09.09q-1.6-.66-3.32-.73l-.09-.1-3.36-.12-.08-.08q-4.41-.22-6.61.88l-.05-.04.01.01q-.95 1.48-.95 3.54l.03.03-.04-.05q-.02.68.29 3.49l-.01-.01.06.07q.55.24 1.73.55l-.01-.01-.11.92.15.14q-.17.33-.09.86l.08.08h-.01q1.26.11 3.73.34l.08.08-.02-.02q-.07-.41-.07-.76l-.03-.03-.07-.07q.07-1.75 1.29-3.1l-.08-.09.07.08q1.17-1.4 2.96-1.28l.05.04-.02-.02q.79.07 1.56.22l.03.04-.07-.07q.14.41.22.83l.01.01-.06-.07q.13.52.06.87l-.06-.06-.05-.05q-1.29 4.73-5.7 9.56l.11.12-.1-.11q-2.12 2.27-7.56 8.32l-.01-.01-.02-.02q-.02 1.01-.36 1.58l-.13-.13.13.13q1.55-.93 3.07-1.46l-.01-.01.06.06q-.86.43-1.81 1.92l.09.09.06.06q-.29.17-.4.51l.02.03.13.13q4.76-2.17 10.24-1.98l.05.04.04.05q5.55.02 10.11 2.38l.12.12L58 42.59l.04.05q-.69-1.38-.95-2.18l-.03-.02.12.12q-.77-.47-1.99-.89l-.02-.02.01.01q-.23-.8-.61-2.17l.02.02.03.03q-2.22-.58-4.5-.77l.04.04q4.66-4.59 6.18-12.85l-.05-.06.18-2.9.02.02q-.04-1.75-1.25-2.43l.01.01h-.04l-.03-.03q.02-.02-.06-.02l-.12-.12.2.2q-.28-.89-1.38-1.5z"/><path d="M8 16c51 27 60 0 140 6" stroke="#333" fill="none"/><path fill="#222" d="M120.64 40.28v-.01l-2.5-6.95-.05-.05q-4.38-12.61-10.32-19l.07.07.07.07q1.95 1 4.54 1.61l-.03-.03q5.13 6.27 9.47 19.02l.08.08-.01-.01q2.93-8.22 3.61-9.82l.01.01-.01-.01q2.52-5.48 5.34-8.79l-.08-.07.11.11q2.01-.43 4.64-1.31l-.12-.11.11.1q-4.49 4.69-7.54 11.92l-.01-.01-.05-.05q-1.5 3.56-5.2 13.08l.03.02.1.1q-.66-.09-1.23-.13l-.03-.02.15.14q-.69-.12-1.26-.08zm4.9 2.3l.13.13-.12-.11q2.82-9.97 4.38-14.01l-.09-.09.16.16q3.01-7.69 7.43-12.56l-.18-.17.03.02q-1.03.38-3.13 1.1l.06.06 1.23-1.25-.03-.02q.44-.82 1.05-1.47l.15.15-.04-.04q-2.93.88-5.93 1.45l.06.07.09.08q-4.42 5.3-8.3 16.76l-.12-.12.13.12q-3.63-10.1-6.83-14.48l-.05-.05.05.06q-.41-.12-1.29-.27l-.03-.03.04.04q-.24-.39-1.84-2.44l-.1-.11.15.16q-3.04-.8-5.74-2.21l-.03-.03.12.12q6.6 7.06 10.98 19.85l-.1-.1.03.03q1.18 3.62 2.36 7.2l.03.02.04.04q.36.06 1.19-.05l-.02-.02v-.01q.43.78 1.12 2.11l-.11-.11.08.09q.85-.07 1.58.01l-.08-.08q.87.15 1.63.15z"/><path d="M4 34C91 23 67 1 149 11" stroke="#666" fill="none"/><path fill="#444" d="M27.44 40.87l-.01-.01.13.13q-1.3-1.68-2.6-4.77l-.03-.03-2.17-5.18.06.06q-1.71 3.89-2.32 5.18l.1.1.07.07q-1.45 2.93-3.05 4.83l-.04-.04.03.04q-.37 0-1.13.11l-.11-.11v.01q.06-7.37-5.77-13.31l.05.05q-1.89-1.97-3.91-3.45l.02.02.06.06q1.94.64 3.8.95l-.13-.13.06.05q6.14 5.04 7.59 11.28v.01l-.11-.11q.93-1.81 2.11-5.01v-.01q1.42-3.67 2-4.97l-.09-.08 1.39-.02.07.07q.85 1.68 2.03 4.96l-.1-.1.1.1q1.32 3.65 1.97 5.06l-.07-.08-.08-.08q1.83-6.27 7.31-10.84l.04.04.13.12q1.08-.21 3.82-.78l.08.08.07.07q-8.79 5.86-9.97 15.84l-.08-.08-.63-.1.01.01q-.21.1-.55.14zm3.02 2.48l2.14.28.05.05q-.43-1.64-.43-3.17l.12.12-.01-.01q-.1-3.34 1.31-6.57l-.09-.09.1.1q1.88-4.63 5.99-7.71l.12.11-.06-.06q-1.25.23-3.12.58l.17.17-.02-.03q1.96-1.65 3.26-2.56l-.09-.09-2.56.41.01.01q-1.18.27-2.52.42l.08.07-.03-.02q-5.13 4.27-7.07 9.29l-.15-.15.14.14q-.7-2.22-2.07-6.48l-.05-.05.12.12q-.28.06-.55.06l-.06-.06-.6-.07-.02-.02q-.05-.24-.85-1.99l-.06-.06-2.04.01q-.92 2.85-3.01 8.49l.04.04-.01-.01q-1.45-3.81-4.54-7.09l.12.12q-.24.03-.54-.01l-.03-.02-.51-.06-.12-.12q-.83-.79-2.62-2.39l-.06-.07.04.04q-3.05-.53-4.73-1.03l-.13-.13.07.07q10.64 7.37 10.26 17.68l.1.1-.06-.06q.3.11.66.08l-.08-.08-.03-.03q.47.06.66.06l-.09-.09.04.04q.03-.11.22 1.98l-.03-.03 1.91-.19.11.11q2.48-2.92 4.73-8.67l-.05-.05.1.1q1.52 3.88 3.39 6.55l-.04-.04-.09-.09q.32-.02.59 0l.09.09-.14-.14q.37.13.64.13l.07.06 1.89 1.89z"/><path fill="#333" d="M62.91 38.96l-.02-.02.13.13q1.69-2.57 6.45-9.85l.03.04.06.06q4.08-6.16 6.94-9.44l-.09-.09.09.1q-2.14.25-4.24.25l-.08-.08.04.04q-5.13.12-9.13-1.67l-.16-.16.05.05q-.66-1.92-1.35-3.48l-.01-.02.06.06q4.42 2.03 10.1 2.15l.1.1-.06-.06q5.2.14 10.38-1.77l-.02-.02q-.44.78-.75 1.58l.05.05-.57 1.6.07.07q-3.19 3.51-7.19 9.34l.06.05-3.41 4.74.09.09q-1.7 2.41-3.53 4.69l.07.07-.08-.07q3.41-.52 6.73-.44l-.06-.05.06.05q3.34.1 6.49 1.02l-.07-.08.54 1.64.04.04q.07.65.42 1.49l.01.02h.01q-4.7-1.61-9.84-1.42l.12.11.03.03q-5.14.2-9.63 2.21l.05.06-.04-.05q.35-1.1 1.07-3.15zm-1.62 3.9l-.14-.14.06.06q1.31-.52 2.11-.78l-.03-.04-.02-.02q-.36.67-1.04 2.2l-.04-.04.1.11q5.75-2.1 11.73-1.87l-.15-.15.15.15q6.26.17 11.28 2.95l.04.03-.09-.08Q83.8 42.8 83 40.63l.02.01-.01-.01q-.41-.14-1.93-.71l-.05-.05q-.21-.78-.63-2.26v-.01l.12.13q-4.19-1.22-9.29-1.03l.07.07-.02-.03q2.04-2.83 5.58-8.39l.01.02-.03-.04q3.64-5.72 5.54-8.27l.08.07-.04-.03q.52-1.38 1.55-4.09l.06.06-.01-.01q-.78.25-2.23.86l-.03-.03.03.02q.32-.82 1.04-2.34l.1.09q-5.29 2.18-11 2.11l-.05-.06-.02-.02q-5.92-.05-10.87-2.57l-.02-.02-.13-.13q1.2 2.42 1.92 4.67l.06.05q1.14.57 1.94.8l-.01-.01-.06-.06q.28.7.54 2.14l-.01-.02.1.11q3.61.94 8.48.75l.08.08-.1-.1q-2.26 3.34-5.57 8.33l-.11-.12-5.54 8.32-.02-.01q-.25 1.38-1.28 3.93z"/></svg>

from cbl-js.

jimmylannister avatar jimmylannister commented on June 2, 2024

Hi I am unable to upload sag directly. But here's the solution.
It would be awesome if I could console.log the output to the browser too.
Tried the above code. Unable to crack this svg
@skotz

from cbl-js.

skotz avatar skotz commented on June 2, 2024

This library wasn't really built for SVGs so you might have to build something custom. The SVG format is absolutely the least secure CPTCHA format because it just hands you the outline of every object. What I would do is actually try just string parsing the path data out of the SVG markup and seeing if you find patterns. Like maybe all "A" characters have the exact same path data. It's quite possible you could get 100% accuracy with that method.

from cbl-js.

sagar-desshmukh avatar sagar-desshmukh commented on June 2, 2024

Nope unable to find any pattern.
Would you like to give this a shot?
@skotz

from cbl-js.

skotz avatar skotz commented on June 2, 2024

Unfortunately I don't have the time right now.

My suggestion is that you extract each <path> from the image and convert them to arrays of points (try googling something like "javascript svg to points"), toss all but the 5 paths with the most points (which should represent the 5 characters in the CAPTCHA), and then compare similar paths using a contour analysis library. That should result in almost 100% accuracy.

This library doesn't currently support SVG; however, another (less effective option) might be to first get an SVG to PNG library to convert it so this library can be used. If possible, remove the lines before converting. SVGs have way more information than PNGs, so it's not the best option.

from cbl-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.