General ⇒ jpg Images not recognised
jpg Images not recognised
I have included the following packages at the beginning of the document:
\documentclass[a4paper,twoside,10pt]{article}
\usepackage{fancyhdr}
\usepackage{acronym}
\usepackage{subfigure}
\usepackage{graphicx}
\usepackage[myheadings]{fullpage}
\usepackage{lastpage}
\usepackage{array}
\usepackage{varwidth}
\usepackage{calc}
\usepackage{pst-uml}
And I have included the graphics as follows:
\begin{figure}[ht]
\begin{center}
\includegraphics[scale=.6]{BlockDiagram1}
\end{center}
\caption{\small{ZL20250 Block Diagram}}
\label{ZL20250BlockDiagram}
\end{figure}
Unfortunately, the diagram does not shown in any of the output forms, PDF, DVI, PS->PDF and so fourth. I have also tried adding .jpg extension at the end of the picture file name shown above. Finally, I have tried saving the same picture as a TIFF, BITMAP and GIF and included all four picture formats within the project folder with no avail.
The error message I keep receiving is:
! LaTeX Error: File `BlockDiagram1' not found.
I have ensured that the file name and name presented in the field \includegraphics{....} are the same.
Any suggestions would be greatly appreciated as I have used this method in the past with no problems.
Kind Regards.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
jpg Images not recognised
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: jpg Images not recognised
Firstly, yes the files are within the same directory as the document so I have not needed to reference them within the includegraphics{...} command.
Furthermore, I have saved the same image within this directory as JPG, GIFF, TIFF and bitmap all with the same name.
I am using MikTex 2.6 and TeXnicCentre.
I have tried compiling from LaTeX => PS, LaTeX => PS => PDF, LaTeX => YAP and LaTeX => PDF
None seem to be successful......
- pumpkinegan
- Posts: 91
- Joined: Thu May 03, 2007 10:29 pm
Re: jpg Images not recognised
Try checking that TeXnicCenter is setup correctly.
Go to "Build" >> "Define Output Profiles" and check LaTeX => PDF. Is the LaTeX compile set to:
"..\MiKTeX 2.6\miktex\bin\pdflatex.exe"?
Patrick.
- countbela666
- Posts: 64
- Joined: Thu Apr 26, 2007 2:44 pm
jpg Images not recognised
As you are using a pstricks package (pst-uml) you have to compile with LaTeX, not with pdfLaTeX, but unfortunately LaTeX does not accept JPG images (as localghost already said).Blue Ice wrote: I am experiencing a problem whilst trying to insert a jpg image into a report that I am producing. I am using TeXnic Center 1 Beta v7.01. On XP Home Edition.
I have included the following packages at the beginning of the document:
So you either have to provide your graphics in EPS format or you have to include pst-pdf, which enables you both to compile with pdfLaTeX (via a shell script) and to use your graphics in JPG format.
Regards
Marcel
a thousand worlds for you to see here, take my hand and follow me...