fixed image company logo

This commit is contained in:
Marc Wäckerlin
2025-11-11 11:50:36 +01:00
parent dd330d412c
commit 65335f7981
14 changed files with 8 additions and 5 deletions
+8 -5
View File
@@ -118,7 +118,7 @@
\ifx\BCQ@data@height\@empty \ifx\BCQ@data@height\@empty
\def\Xcompanylogoheight{1.5em}% \def\Xcompanylogoheight{1.5em}%
\else \else
\def\Xcompanylogoheight{\BCQ@data@height}% \edef\Xcompanylogoheight{\BCQ@data@height}%
\fi \fi
\setlength{\BCQ@companybrandingheight}{\Xcompanylogoheight}% \setlength{\BCQ@companybrandingheight}{\Xcompanylogoheight}%
\fi \fi
@@ -234,7 +234,7 @@
\ifx\BCQ@companylogo@height\@empty \ifx\BCQ@companylogo@height\@empty
\def\Xcompanylogoheight{1.5em}% \def\Xcompanylogoheight{1.5em}%
\else \else
\def\Xcompanylogoheight{\BCQ@companylogo@height}% \edef\Xcompanylogoheight{\BCQ@companylogo@height}%
\fi \fi
\setlength{\BCQ@companybrandingheight}{\Xcompanylogoheight}% \setlength{\BCQ@companybrandingheight}{\Xcompanylogoheight}%
} }
@@ -270,6 +270,8 @@
\newsavebox{\BCQ@logobox} \newsavebox{\BCQ@logobox}
\newlength{\BCQ@logoheightdimen} \newlength{\BCQ@logoheightdimen}
\setlength{\BCQ@logoheightdimen}{0pt}% initialize to prevent errors \setlength{\BCQ@logoheightdimen}{0pt}% initialize to prevent errors
\newlength{\BCQ@bgimagedimen}
\setlength{\BCQ@bgimagedimen}{0pt}
\newlength{\BCQ@reservedheight} \newlength{\BCQ@reservedheight}
\newlength{\BCQ@heightscale} \newlength{\BCQ@heightscale}
\newlength{\BCQ@namewidth} \newlength{\BCQ@namewidth}
@@ -584,7 +586,7 @@ END:VCARD\BCQ@nl}
\begin{minipage}[c][\heightscale][c]{\imagepercents\textwidth} \begin{minipage}[c][\heightscale][c]{\imagepercents\textwidth}
\begin{tikzpicture} \begin{tikzpicture}
% White background behind QR code (for readability over background images) % White background behind QR code (for readability over background images)
\node[fill=white, opacity=\fpeval{\BCQ@qrbgopacity@used}, inner sep=0pt, outer sep=2mm, minimum size=\textwidth] (bg) at (0,0) {}; \node[fill=white, opacity=\BCQ@qrbgopacity@used, inner sep=0pt, outer sep=2mm, minimum size=\textwidth] (bg) at (0,0) {};
% QR code on top % QR code on top
\node[inner sep=0pt, outer sep=0pt] (qr) at (0,0) {% \node[inner sep=0pt, outer sep=0pt] (qr) at (0,0) {%
% QR code with optional qrlogo overlay in center % QR code with optional qrlogo overlay in center
@@ -711,8 +713,9 @@ END:VCARD\BCQ@nl}
\AddToShipoutPictureBG*{% \AddToShipoutPictureBG*{%
\AtPageCenter{% \AtPageCenter{%
\begin{tikzpicture}[overlay] \begin{tikzpicture}[overlay]
\node[inner sep=0pt, opacity=\fpeval{\BCQ@bgopacity@used}] at (0,0) {% \node[inner sep=0pt, opacity=\BCQ@bgopacity@used] at (0,0) {%
\includegraphics[height=\fpeval{\BCQ@bgscale@used}\paperheight]{\Xbackground}% \setlength{\BCQ@bgimagedimen}{\dimexpr\BCQ@bgscale@used\paperheight\relax}%
\includegraphics[height=\BCQ@bgimagedimen]{\Xbackground}%
}; };
\end{tikzpicture}% \end{tikzpicture}%
}% }%
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 778 KiB

After

Width:  |  Height:  |  Size: 779 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB