I was wondering if there is a converter, a program, that lets you upload or create an image and then gives you the tikz code to create it in LaTeX? I found a similar problem here, but none of the answers refer to a converter. I found some converters for equations. However, that is not what I want to convert.
I want to take an image, my signature for example, and make a command \signature
that prints my signature in the same size as the text and in the same color. I want to make the command in a .sty file (package) so that I can use the command in all the documents I write, and therefore I do not want a solution intended for one document only.
It's not just my signature I want in this format, but logos as well. I would therefore like a general solution: A converter that converts PNG/JPEG or other image file types to tikz code.
In the signature exaple the code would look something like this:
\NeedsTeXFormat{LaTeX2e}\ProvidesPackage{mypackage}\RequirePackage{tikz}\newcommand{\signature}{%... tikz code ... %}\endinput
and:
\documentclass{article}\usepackage[utf8]{inputenc}\usepackage{mypackage}\begin{document}My name is \signature. Now I can easysign documents. This document was created by \signature.\end{document}