Re: LaTeX suddently blows up .eps images???




Quoth "I.N. Galidakis" <morpheus@xxxxxxxxxxxx>:
Michael Shell wrote:

I also made a pdf of the graphic. In the dvi, ps made via dvips,
and pdf from Ghostscript as well as pdflatex, the figure is the
correct width (386 PostScript points) as specified in its eps
bounding box:

%%BoundingBox: 0 0 386 386


My complete test set can be obtained as:

http://www.michaelshell.org/files/test2.zip

Is this what you get on your system?

Yes, exactly. But if I open your .eps file with Photoshop, it reports:

(Note that Photoshop is completely the wrong tool for manipulating
vector files. Photoshop is a bitmap editor: importing an eps will
rasterize it, involving a conversion from physical units to pixels. I
suspect this is where your problem is: have you tried doing whatever you
need to do in Illustrator instead?)

Image Size: 386x386 pixels = 13.62cm x 13.62cm.

So Photoshop is using 1px == 1bp, or a resolution of 72dpi. (bp stands
for 'big points', or PostScript points, which are 72 to the inch; when
dealing with TeX its important to distinguish between these and TeX
points, which are 72.27 to the inch. Photoshop uses PostScript points.)

Now, if I open Acrobat at 100% and copy the whole graphic from your
z2z.pdf file and import it to PS,

You will have to explain this step in more detail, as I can't follow
what you did. PS here is Photoshop, not PostScript? You copied the
picture to the clipboard in Acrobat and then pasted it into Photoshop?
Why did you think that was a useful thing to do? What format was the
data transferred over the clipboard in: some vector format, or as a
bitmap? What resolution were the vectors eventually rasterized at?

What happens if you open the pdf in Photoshop directly (I presume
Photoshop can read pdfs?), at 72dpi, and then measure the size of the
picture, in both pixels and physical units?

it reports a size of 515x515 points = 18.7cm

(ITYM 18.17cm?)

x 18.7cm, so I have no idea what's going on, but *something* is wrong.

I strongly suspect it isn't, you're just trying to measure things after
Photoshop has changed their sizes. If you place a 386bp-long rule next
to a 386bp-wide graphic and they come out the same width, then there
isn't a problem with LaTeX, and assuming you print the document
correctly the picture will come out 386bp wide.

Either PS or the generated .pdf is wrong. The .pdf graphic is larger
than the .eps graphic opened directly from PS.

If you mean 'the graphic in the pdf appears larger on the screen when
viewed in Acrobat at 100% than it did when viewed in Photoshop at 100%'
that is entirely irrelevant. If Acrobat is rasterizing the pdf at
100dpi, to match your screen, then it will appear somewhat larger than
it did when Photoshop rasterized the eps at 72dpi.

I don't know why you need a before/after measurement to just judge
that the sizes are different. It's fairly obvious to me.

Well, in my case, I have neither Photoshop nor Acrobat here, so 'just
judging' how they would appear is quite tricky...

Ben

.



Relevant Pages

  • Re: LaTeX suddently blows up .eps images???
    ... having exactly the same size as that saved in Photoshop (as Photoshop ... EPS) in the final .pdf, when the .pdf magnification was 100%. ...
    (comp.text.tex)
  • Re: LaTeX suddently blows up .eps images???
    ... having exactly the same size as that saved in Photoshop (as Photoshop ... EPS) in the final .pdf, when the .pdf magnification was 100%. ...
    (comp.text.tex)
  • Re: latex -> pdf: A drawing error occurs with Acrobat
    ... I had saved another copy with PhotoShop and that one works ... I just xfer'd the .pdf to my Win XP laptop, and found that Acrobat 7 generate a 'drawing error occurred' error on one page. ... On my linux machine, xpdf displays it fine, ...
    (comp.text.tex)
  • Re: pdf Graphic einbinden
    ... Ich hab die eps Graphik mit Photoshop geladen und als pdf Datei wieder ... eine Vektorgrafik? ...
    (de.comp.text.tex)
  • Re: LaTeX suddently blows up .eps images???
    ... having exactly the same size as that saved in Photoshop (as Photoshop ... EPS) in the final .pdf, when the .pdf magnification was 100%. ...
    (comp.text.tex)