0

I want to crop an eps file which has a white background. Also, the figure is not produced with LATEX. enter image description here

it is better to change:

enter image description here

Also, the link of eps file as, https://www.dropbox.com/s/hfiftqmov2cgq26/Fig2a.eps?dl=0

sayros
  • 2,629
  • How exactly did you create the eps? If you are running the latex+dvips route, then you get a full page figure unless you use the -E option to dvips. Other than that you can either edit the bounding box manually (the EPS is just a text file, the bounding box is x lower left y lower left x upper right y upper right. Or convert it into PDF via epstopdf and use pdfcrop on it. – daleif Aug 01 '16 at 06:43
  • Thank you, the figure is made out of latex framework tools ( now, it is presented in MS word). – sayros Aug 01 '16 at 07:01
  • Ohh, misread your question then then. What exactly is your question and how is it related to LaTeX if it is Word you are using or am I misreading your text again? – daleif Aug 01 '16 at 07:46
  • My question is that there is a way which can crop the picture by Latex? such as http://tex.stackexchange.com/questions/57418/crop-an-inserted-image – sayros Aug 01 '16 at 08:04
  • Hi, little check: You did not scan the image, pasted it to a word document and exported it to eps (because eps has better quality)? A student of mine once did that and complained about the wide margins ;-) – Johannes_B Aug 01 '16 at 08:23
  • Are you using it in LaTeX? Try opening the eps in your LaTeX editor (as mentioned it is just a text file). Then Replace the BoundingBox line by %%BoundingBox: 200 630 390 750 (found by changing it by hand an previeiwing the result). BTW: the methods in the link you provided also work in EPS files. – daleif Aug 01 '16 at 08:32
  • Ìt can be done with the excellent tool epspdf (a tex-lua script). I've done it , and obtained both a cropped .eps and the resulting .pdf. Is there any place where I can upload them? – Bernard Aug 01 '16 at 08:42
  • There is a small utility called epstool which can fix the bounding box. Invoke it with epstool --copy --bbox Fig2a.eps Fig2b.eps at a command prompt. – Arash Esbati Aug 01 '16 at 08:59

0 Answers0