[Tex/LaTex] Error: LaTeX Error: Cannot determine size of graphic in PRV_internal_structure.jpg (no BoundingBox)

graphicsmiktex

I use Miktex and Winshell to edit my script. I want to inset imae. Whenever I compile my code I get this error:

Error: LaTeX Error: Cannot determine size of graphic in
internal_structure.jpg (no BoundingBox).

This is the minimal script:

\documentclass[letterpaper,twocolumn,10pt]{article}
\usepackage{graphicx}

\begin{document}

\begin{figure}[!b]
  \begin{center}
    \includegraphics[width=0.3\textwidth]{internal_structure.jpg}
  \end{center}
  \caption{\small A general overview}
\end{figure}


\end{document}

I found similar previous posts but please do not mark this as duplicate. I still can not solve the problem despite previously posted solutions. For example, this post Post suggests the following answer:

You need to use pdflatex for this. Actually latex is pdflatex in DVI
mode in modern distributions, but it can read the sizes only in PDF
mode for some reason.

But I do not get how to use pdflatex? I already installed MikTex (basic-miktex-2.9.5872) package which should include the pdflatex and still get the error.

I need to get rid of this error. Can you please help me identify the source of the problem and how to solve it?

Best Answer

Hei, you just need to run it by using "PDFlatex" instead of using "texify"

Here is the process to do so:

In winedit go to the "Tex" option, then "PDF" option and then click on "PDFLatex". You will be able to add .jpg/.png any picture format in your LaTeX. Remember to use \usepackage{graphicx} in the beginning. I am attaching the snapshot for your convenience. Hope your problem will work. :)

enter image description here

Related Question