LaTeX forum ⇒ MiKTeX and proTeXtUpdated MikTeX and PNG/JPEG not working Topic is solved

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

Updated MikTeX and PNG/JPEG not working

Postby JRCD » Sun Feb 25, 2018 3:33 am

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...


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:



and more tests


and even more tests



User avatar
Site Moderator
Posts: 3644
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sun Feb 25, 2018 10:19 am

Your code snippets are useless. Please try the MWE from the Wikibook. What do you get?

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 8708
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany

Postby Stefan Kottwitz » Sun Feb 25, 2018 2:37 pm

Welcome to the forum!

Perhaps post actual code, that can be compiled and tested (Infominimal 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.

Site admin

Posts: 2
Joined: Sun Feb 25, 2018 2:15 am

Postby JRCD » Sun Feb 25, 2018 7:40 pm

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.

Return to “MiKTeX and proTeXt”

Who is online

Users browsing this forum: No registered users and 2 guests