DRAFT: try png

This commit is contained in:
Cedric
2023-11-26 10:58:43 +00:00
parent c799d65826
commit 20b058fbc6
2 changed files with 4 additions and 3 deletions

View File

@@ -53,7 +53,7 @@ produce a lot of \ch{CO2}.
% Generate first with: cd figures && pdflatex fig-ethanol-oxidation-external.tex % Generate first with: cd figures && pdflatex fig-ethanol-oxidation-external.tex
\begin{figure}[!htb] \begin{figure}[!htb]
\begin{center} \begin{center}
\includegraphics{figures/fig-ethanol-oxidation-external.pdf} \includegraphics{figures/fig-ethanol-oxidation-external.png}
\caption[Acetic acid creation]{Oxygen is required to create acetic \caption[Acetic acid creation]{Oxygen is required to create acetic
acid~\cite{acetic+acid+production}.}% acid~\cite{acetic+acid+production}.}%
\end{center} \end{center}
@@ -70,8 +70,8 @@ produce a lot of \ch{CO2}.
% Works % Works
% Generate first with: cd figures && pdflatex fig-life-planet-sourdough-timeline-external.pdf % Generate first with: cd figures && pdflatex fig-life-planet-sourdough-timeline-external.pdf
\begin{figure}[!htb] \begin{figure}[!htb]
\includegraphics{figures/fig-life-planet-sourdough-timeline-external.pdf} \includegraphics{figures/fig-life-planet-sourdough-timeline-external.png}
\caption[Sourdough microbiology timeline]{Timeline works embedded as pdf}% \caption[Sourdough microbiology timeline]{Timeline works embedded as png}%
\end{figure} \end{figure}
\begin{figure}[!htb] \begin{figure}[!htb]

View File

@@ -10,6 +10,7 @@ if [ "$#" -ne 1 ]; then
done done
else else
target=figures/`basename $1 .png.pdf`.png target=figures/`basename $1 .png.pdf`.png
echo ${target}
echo "Converting: " $1 " to: " ${target} echo "Converting: " $1 " to: " ${target}
convert -density 900 -trim $1 -quality 100 ${target} convert -density 900 -trim $1 -quality 100 ${target}
fi fi