Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change profilepic size #237

Open
agdamsbo opened this issue Jun 6, 2023 · 1 comment
Open

Change profilepic size #237

agdamsbo opened this issue Jun 6, 2023 · 1 comment

Comments

@agdamsbo
Copy link

agdamsbo commented Jun 6, 2023

Hi! I am using the awesome theme for my cv.

I figured how to change the profilepic fro circle to rectangle. Is there a way to change the height/with of the profilepic?

@zeigerpuppy
Copy link

Have a look at your .cls file for you template, you'll find something like what is below for the "twenty seconds" theme

  • see line 139 of the cls file twentysecondcv.cls:
		\ifthenelse{\equal{\profilepic}{}}{\vspace*{0.5cm}}{
			\begin{center}
				\begin{tikzpicture}[x=\imagescale,y=-\imagescale]
					\clip (600/2, 587/2) circle (587/2);
					\node[anchor=north west, inner sep=0pt, outer sep=0pt] at (0,0) {\includegraphics[width=\imagewidth]{\profilepic}};
				\end{tikzpicture}
			\end{center}
		}

A bit of playing with those values should get the desired effect. I don't understand the settings fully, but I think it's essentially creating a bounding box and then anchoring the image within that box. Scaling/shifting should be possible.

To be honest, it would be nice to pull out some of these as clearer variables, for instance to scale the zoom factor of the image more easily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants