GeneralImage not clear

LaTeX specific issues not fitting into one of the other forums of this category.
ma501th
Posts: 50
Joined: Tue Apr 08, 2008 7:31 pm

Image not clear

Post by ma501th »

for some reaon all my images i have used in my document are not clear and comming out with patchy marks

i have used this package
\usepackage{graphicx}

\begin{figure}[H]
\centering
\includegraphics[scale=0.5]{milestone}
\caption{Milestone identification}\label{fig:Milestone identiciation}
\end{figure}

i have used with milestone.eps but makes no difference.

Is there anything i could do about this?

cheers

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: Image not clear

Post by Stefan Kottwitz »

Hi ma501th,

what is the original graphic file format of milestone? eps, or jpg or something else?
With pdflatex you could easily include jpg and png files.

Stefan
ma501th
Posts: 50
Joined: Tue Apr 08, 2008 7:31 pm

Re: Image not clear

Post by ma501th »

the original is jpg as used convert milestone.jpg to milestone.eps

what format would be best for me?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: Image not clear

Post by Stefan Kottwitz »

I would keep the original jpg format and use pdflatex, that means compiling directly to pdf.
Ist that possible for you? Which Editor and which distribution do you use?

Stefan
ma501th
Posts: 50
Joined: Tue Apr 08, 2008 7:31 pm

Re: Image not clear

Post by ma501th »

im sorry but i did not understand what you just have said. Im basically using textpad to type my coding and uploading this to IGOR server which my university uses. I then input a line of code each time:

latex user.tex

dvips -o user.ps user.dvi

dvipdf user.dvi user.pdf

and then displays the pdf file.

does this makes sense?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: Image not clear

Post by Stefan Kottwitz »

Yes, thats makes sense.
But try if on your university server works: pdflatex user.tex

Stefan
ma501th
Posts: 50
Joined: Tue Apr 08, 2008 7:31 pm

Re: Image not clear

Post by ma501th »

can you please briefly explain what the code below means?

pdflatex user.tex

thanks
balf
Posts: 158
Joined: Sat Jan 12, 2008 1:11 am

Re: Image not clear

Post by balf »

pdflatex is an executable which directly outputs a pdf file and supports pdf and jpeg graphic files.

B.A.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Image not clear

Post by Stefan Kottwitz »

That calls pdflatex instead of latex. In other words, its starting the latex compiler in a mode, that produces directly pdf files. No dvi or ps document needs to be generated. And in this pdf mode latex can include jpg files directly, without converting them to eps before.

pdflatex user.tex takes user.tex and generates user.pdf.

Stefan
ma501th
Posts: 50
Joined: Tue Apr 08, 2008 7:31 pm

Re: Image not clear

Post by ma501th »

i have just tried that but seem ot get an erro message. this is what has been displayed:

erro: pdflatex (file milstone.pdf): cannot find image file

then says pdf file not finished.

do i have to convert the image from jpg to pdf?

if so how could i do that
Post Reply