## LaTeX forum ⇒ MiKTeX and proTeXt ⇒ Updated MikTeX and PNG/JPEG not working Topic is solved

Information and discussion about MikTeX distribution for Windows and the related proTeXt: Installing, updating, configuring
JRCD
Posts: 2
Joined: Sun Feb 25, 2018 2:15 am

### Updated MikTeX and PNG/JPEG not working

Usually I find all of my answers from others in the larger community. I'm a late adopter and so lots of work has been done before I find my problems. Thanks. But, this time I'm stumped. I updated my MiKTeX last week and then no jpeg or png files would be incorporated into the pdf file. I found a hint that this was a 64-bit problem, so I just reinstalled the latest 32-bit version. The tex file compiles without error, but again no images.

Using latex/dvips/ps2pdf worked for eps. But, neither the latex command in emacs nor the pdflatex dos command window produced files with images. They compiled without error, but the resulting pdf was white where the images should have been.

I'm using files that I used just last week for presentations. They worked just fine. This week nothing is working. So, I'm happy to post an example of my code, but it feels like the upgrade not working for me.

Please let me know. Most of my life is on tex and I need it working...

Thanks.

Here's the example, but again, the full beamer presentation I used for a talk last Friday will now not produce a single image, just white space where the images should be.

My test file:

\begin{document}
test\\

and more tests

\includegraphics[width=64mm,natwidth=610,natheight=642]{pics//packard4.jpg}\\

and even more tests

\end{document}

Johannes_B
Site Moderator
Posts: 3853
Joined: Thu Nov 01, 2012 4:08 pm
Your code snippets are useless. Please try the MWE from the Wikibook. What do you get?

Crosspost
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Stefan Kottwitz
Posts: 9100
Joined: Mon Mar 10, 2008 9:44 pm
Welcome to the forum!

Perhaps post actual code, that can be compiled and tested (minimal working example). The only issue I see is the double slash // in the file name, there should be a single slash separating parts of path and file name.

Stefan

JRCD
Posts: 2
Joined: Sun Feb 25, 2018 2:15 am
Thank you both for your replies...and for the MWE lesson. It turns out that it was the natwidth/natheight terms in the \includegraphics commands. When I removed them, the file compiled with the images. My fault. I clipped the natwidth terms from someone online and it's worked for a year since I did that. But, the update didn't like both the width and nat width.

As for the double slash, it's another legacy of more than a decade using MikTex. The double slash always worked for me so I never had a reason to change it. I've been doing my papers, lectures, and a book in LaTeX. I even wrote my own calendar program in perl that wrote the LaTex code to produce the calendar. But, something like this happens and I realize I'm still basically a beginner on LaTeX when it comes to the underlying framework.

I very much appreciate your help. Thanks, Chris.