From f78a0e52306951f8e4031bf6db9fbfba83982fcf Mon Sep 17 00:00:00 2001
From: Christian Soffke <christian.soffke@gmail.com>
Date: Wed, 8 Dec 2021 14:01:39 +0100
Subject: Manual (HTML): fix image aspect ratio and size

Change-Id: If7c680badcb1a493e2a2059d84ea5b154382bad2
---
 manual/rockbox_interface/main.tex | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

(limited to 'manual/rockbox_interface/main.tex')

diff --git a/manual/rockbox_interface/main.tex b/manual/rockbox_interface/main.tex
index 45da828143..ccc6e25ae6 100644
--- a/manual/rockbox_interface/main.tex
+++ b/manual/rockbox_interface/main.tex
@@ -15,8 +15,9 @@
 % specify the extension.
 \begin{center}
 \IfFileExists{rockbox_interface/images/\specimg-front.png}
-   {\includegraphics[height=8cm,width=10cm,keepaspectratio=true]%
-    {rockbox_interface/images/\specimg-front}
+   {\Ifpdfoutput{\includegraphics[height=8cm,width=10cm,keepaspectratio=true]%
+    {rockbox_interface/images/\specimg-front}}
+   {\includegraphics{rockbox_interface/images/\specimg-front}}
    }
    {\color{red}{\textbf{WARNING!} Image not found}%
     \typeout{Warning: missing front image}
@@ -26,7 +27,8 @@
   % spacing between the two pictures, could possibly be improved
   \begin{center}
   \IfFileExists{rockbox_interface/images/\specimg-remote.png}
-    {\includegraphics[height=5.6cm,width=10cm,keepaspectratio=true]{rockbox_interface/images/\specimg-remote}
+    {\Ifpdfoutput{\includegraphics[height=5.6cm,width=10cm,keepaspectratio=true]{rockbox_interface/images/\specimg-remote}}
+    {\includegraphics{rockbox_interface/images/\specimg-remote}}
     }
     {\color{red}{\textbf{WARNING!} Image not found}%
      \typeout{Warning: missing remote image}
-- 
cgit v1.2.3

