I have a front page with a background image and I want to include a logo that has white background, how to do that without appearing the white background of the logo? I tried includegraphics but it didn't work

  • What is the format of the logo image (PDF, EPS, PNG, ...)? Jul 31, 2017 at 19:43
  • it's a JPEG file, do I need any specific image extension?
    – WagS
    Jul 31, 2017 at 19:45
  • Then you can use the first method of my answer using GIMP, for example. Jul 31, 2017 at 19:53
  • JPEG is both a bitmap and it is not a lossless format. Usually logos are created as vector graphics. The the quality is the best and maybe this version does not even have a white background. Maybe, you can try and get such a version. The conversion to bitmap is often done for web pages, where size matters and the resolution does not need to be high. But, such a bitmap is usually not suited for printing. Jul 31, 2017 at 19:59

1 Answer 1


The best way heavily depends on the format of the logo image. Examples:

  • RGB or grayscale bitmap can be opened in GIMP:

    1. If the image mode is not RGB, then convert it to RGB: Image -> Mode -> RGB

    2. Then convert white to transparent (alpha channel): Colors -> Color to Alpha.

  • Vector image as EPS or PDF: PDF can be uncompressed by PDFtk, e.g.:

    pdftk input.pdf cat output output.pdf uncompress

    Then, the operation for the white background can be tried to be identified and removed. It requires some knowledge of the format. If it is just a white background that is drawn at the beginning, then it might be not to difficult. Both EPS and PDF have % as comment character until the end of line. However, the PDF file should be overwritten only, no characters should be inserted or deleted. Otherwise the positions for the cross-reference table gets invalidated.

    It can be much more problematic, if the white color is used to overwrite other colored parts.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.