I know this topic is covered elsewhere in this forum, so I would not ask if I was not desperate and had tried everything I could already.

I have a large PhD thesis with over a hundred images in it written in lyx. When I try to export to pdf, for three particular images I keep getting the error "cannot determine the size of graphics"

To try to remove this error I have tried the following:

  • Specifying the scale graphics % in the lyx graphics dialogue box.

  • Manually specifying the exact width and height of the graphics, in cm, in the lyx graphics dialogue box.

  • Deleting the original .bmp files and re-exporting the images as .bmp files from the graph creation software I am using (Sigmaplot in case anyone knows it.)

  • Converting .bmp files to .jpg files, and when that did not work, converting to .png files, which did not work either.

These three files look to me to be very similar to other files which I have exported from the same graph creation software, but I am not receiving any errors for those. So at this stage I am completely out of ideas.

Any help would be greatly appreciated. Also I am not a programmer and don't understand coding very well, so assume you are responding to a complete dummy when it comes to latex etc.

closed as unclear what you're asking by Paul Gessler, Andrew, Werner, Claudio Fiandrino, user31729 Mar 10 '15 at 7:37

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    When converting the image, see if there is some kind of dialogue box where you can switch of writing meta information (like the size) to the image file. – Johannes_B Dec 6 '14 at 11:39
  • Welcome to TeX.SX! Usually, we don't put a greeting or a “thank you” in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Accepting and upvoting answers is the preferred way here to say “thank you” to users who helped you. – Martin Schröder Dec 6 '14 at 13:03
  • 1
    Can you provide a MWE and one of the files so we can test it? – penguinpreferred Dec 6 '14 at 13:32
  • What exactly is an MWE? – Tim Dec 6 '14 at 16:25
  • Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – Martin Schröder Dec 6 '14 at 21:02