{png} concerns the PNG (Portable Network Graphics) bitmapped image format which employs lossless data compression.

learn more… | top users | synonyms

87
votes
3answers
8k views

Choosing whether to include PDF or PNG in PDFLaTeX

Can I tell graphicx somehow which graphic format to choose when I omit the file extension in includegraphics and both a PDF and a PNG version of the same image exist? The reason is that I have some ...
55
votes
6answers
7k views

Which graphics formats can be included in documents processed by latex or pdflatex?

There several types of graphics files. In no particular order .jpeg .eps .pdf .png .tif .jif (and no doubt others). Some work with latex, dvips and some work with pdflatex. How am I supposed to know ...
43
votes
1answer
103k views

Cannot determine size of graphic

I'm trying to include graphics in my Latex-file, which I compiled with latex+dvipdf on OS X. Latex however returns this error: "Cannot determine size of graphic" My graphic is exported from ...
36
votes
2answers
2k views

Fast PNG embedding using pdflatex

I have a LaTeX document, that includes a lot PNG images. It takes about 18 second to compile. Most of the time is spent for the inclusion of the PNG images. The pdfTeX 1.40 manual from ctan states on ...
27
votes
4answers
7k views

Pixel-perfect vertical alignment of image-rendered TeX snippets?

What is the most accurate way to automatically calculate the text baseline in an image that has been rendered from a TeX snippet—so that the rendered image can be given proper vertical alignment in a ...
15
votes
2answers
2k views

How to convert a png into pdf using LaTeX?

I have a larger png image: width is 5400 pixels and height is 3850 pixels. I need to transform it into a pdf file in SPA3 size, which means 320mm x 450mm. Is there a way to do it with LaTeX? What I ...
14
votes
3answers
16k views

warning: pdflatex> libpng warning: iCCP: known incorrect sRGB profile

when including .png converted with Photoshop CS6 to grayscale I get a warning "warning: pdflatex> libpng warning: iCCP: known incorrect sRGB profile" to be precise, I get 36 of this warnings ;-) ...
13
votes
2answers
2k views

Big data surface plots: Call gnuplot from tikz to generate bitmap and include automatically?

Motivation I have large numerical data files, that I would like to create density (surface) plots of. Since they are very big, we can rule out a few possibilities such as to plot them directly with ...
12
votes
4answers
979 views

What causes latex.exe to be unable to import *.jpg, *.png, *.pdf directly?

Internally, what causes latex.exe to be unable to import *.jpg, *.png, *.pdf directly?
10
votes
1answer
35k views

LaTeX Error: Cannot determine size of graphic in title.png (no BoundingBox)

I seem to be getting a strange error after updating MiKTeX 2.9. I am using pdfLaTeX and TeXmaker with the graphicx package to include .png images. When I try to compile, I get the error LaTeX Error: ...
8
votes
4answers
3k views

Included png appears too big in PDF

I'm a beginner with LaTex and writing an article in it (letter-sized). WinEDT and MikTeX (versions seen in the log). I have a PNG chart (obtained from R/ggplot2) which is 471 x 335 pixels and which ...
8
votes
3answers
1k views

Desktop wallpaper with black background templates

I want to prepare some cheat sheets to be used as desktop wallpapers. I would like to go for something like this: It has, I think, context highlighting (or maybe just environmental highlighting) a ...
7
votes
2answers
3k views

PNG and JPG quality loss inserting webpage screenshot into LaTeX document

I have tried using both a png and jpg file format for my images but I still loose a significant amount of quality when I run pdflatex. Is there some way to work around this? \documentclass[12pt, ...
7
votes
1answer
691 views

PNG figures in black and white

I'm trying to include a png figure and it works when I see it in dvi, but the ps comes in black and white. If I compile directly to pdf there is no problem. However I'm using psTricks for a different ...
7
votes
2answers
1k views

moderncv - filesize of pdf too big

I managed to work out how to create a job application that is entirely written in the moderncv style. I use the moderncv class itself for my CV and the attachments (making each document a section with ...
7
votes
2answers
235 views

Tikz : texture cube faces using png image

I would like to draw a cube using Tikz with some faces of the cube having a texture on it (texture would be a PNG image) my current code is at follows : \documentclass{standalone} \usepackage{tikz} ...
7
votes
1answer
712 views

PNG as a background?

Is it possible to use a PNG image as a background, but with selected opacity? It seems to me that standard solutions found here can not change opacity of PNG... I assume, that in the following one of ...
7
votes
1answer
295 views

Embed image data (png or pdf) inside tex document [duplicate]

Is there a way to include (or "inline") raw image data or pdf data inside the tex document itself, such that it becomes stand-alone? Something like this: ...
7
votes
2answers
1k views

TeX to epub conversion

I want to create epub document, but I only have a tex file (unfortunately, mathematical formulas, and drawing diagrams). I tried pandoc: tex to html, tex to xhtml, to xml, but nothing works properly. ...
6
votes
5answers
541 views

LaTeX images formatting

I'm writing a report and inserting a few raster images in (in PNG format) using: \usepackage[pdftex]{graphicx} \includegraphics[width=4in]{poker.png} My problem is that when saving as a PDF the ...
6
votes
4answers
3k views

Including graphics for both DVI and PNG

I'm asking a question is quite similar to this one (where I don't seem to be able to leave comments): MikTex error for PNG images when trying to produce DVI I'm producing a PDF document, but I'm ...
6
votes
1answer
764 views

From inside a LaTeX article, I want to render several parts of the code into a separate png (a “render pass”)

I have a long article with many, say, TikZ images. Let's say it looks like: \documentclass{article} \usepackage{tikz} \begin{document} ...much more stuff... \begin{tikzpicture} \draw[red] ...
6
votes
1answer
2k views

PNG DPI and image size

I created a PNG file (763px by 600px at 72DPI) from a free image. I opened the image in GIMP and changed the DPI to 300 and saved it. After including it in a LaTeX file with ...
6
votes
1answer
90 views

Delayed import of graphics for latex->DVI->PNG

I have a need for producing PNG output from latex. My current method - and the only one I am aware of - is to latex and then dvipng. In order to do this, I need to include an eps of any graphics I ...
6
votes
1answer
194 views

TeX figure to .png

Let me begin with a confession: when someone says ``command line'' I nearly pee because I get so scared. I know that means I'm asking my question to the wrong community, and yes, I'm seeing someone ...
5
votes
2answers
10k views

Error including a .png: Cannot determine size of graphic [duplicate]

I have a little problem: I am not able to put an image in my document. This is how I start: \documentclass[a4paper,12pt,titlepage]{report} \usepackage{fontenc} \usepackage[italian]{babel} ...
5
votes
2answers
3k views

How to save a figure produced by tikz save/export as JPG/PNG file

I have created various plots using pgfplots package for my thesis. Now I would export them in jpg or png format. Does it exist a way to achieve this porpouse?
5
votes
3answers
7k views

MikTex error for PNG images when trying to produce DVI

I have a tex file with \includegraphic elements for some PNG images. I use MikTeX on Windows and the PDF is fine. Now, I need a DVI so I tried using: \pdfoutput=0 This creates a DVI, but only after I ...
5
votes
1answer
132 views

How can I use arara to get a graphics file?

In a standard TeX Live distribution Ghostscript is, to my knowledge, present; it is hidden, but it is there. Edit: Yes, it is under \Texlive\2013\tlpkg\tlgs So to my question: How can I use ...
5
votes
1answer
700 views

LaTeX producing black background with transparent png

I am trying to use png images that are transparent. This is an example of my LaTeX file (I am intentionally putting the images on top of themselves): \documentclass[10pt,letterpaper]{article} ...
5
votes
1answer
329 views

Formulae PNG anti-aliasing [closed]

I would like to render formulae in PNG format for use in various websites. The problem is, every rendering tool I've come across seems to assume a particular background color to perform anti-aliasing, ...
5
votes
0answers
2k views

Resolution (dpi) for \includeimage pictures and pdflatex

I am trying to create a pdf file with some pictures in it. Those are PNG files with 300dpi. I use texlive and pdflatex from Debian Squeeze. A simple code of my document would be: ...
4
votes
2answers
588 views

PSTricks -> How can I compile a graph/figure to obtain an PNG/JPG with background transparent?

How to obtain this graph in a PNG/GIF/JPG graph with transparent background? \documentclass[12pt,a4paper,x11names]{report} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} ...
4
votes
2answers
877 views

Avoid eps to png conversion using mk4ht oolatex

I have a big set of eps images and I need to place them into an OpenOffice (odt) document. I wrote a simple script that creates a tex file containing these eps images and now I'm trying to convert it ...
4
votes
1answer
249 views

How to decrease the file size of pdf with a lot of (clipped and downscaled) png images

I am writing a report that includes a results section with a lot of generated images. These images are .png files. Judging by the file size of the resulting pdf, these images are included in their ...
4
votes
1answer
110 views

Generating a transparent image from LaTeX

I have a T-shirt I designed in LaTeX, and now I need to convert the LaTeX to a white-foreground transparent-background image. How can I do that easily?
4
votes
1answer
356 views

inserting png introduces inputenc error

I want to write an article in Chinese, which needs to insert pictures. It's fine when I insert pictures as .pdf but the following problem occurs if .png is inserted: ! Package inputenc Error: ...
4
votes
1answer
1k views

RGB Colors in TikZ and conversion with ghost script to PNG

Since a few days I am trying to find a solution for the folowing problem: I am creating a Tikz picture with a simple rectangele and fill the rectange with a special RGB color. The code looks like ...
4
votes
1answer
130 views

Save from LyX to PNG

I have a LyX file with a PSTricks picture. Currently, when I want to convert it to a PNG image, I save the file as PS, then open the PS in gimp, then save it as PNG. Is there a way to save to PNG ...
4
votes
1answer
249 views

Convert Title Page from LaTeX (or the resulting PDF) into a PNG thumbnail

I have written a book in LaTeX using TeXStudio. My title page, which is the book cover, is created using LaTeX source (including images in it), rather than drawn in a graphical program, such as ...
3
votes
1answer
173 views

Export LaTeX to HTML using .gif for equations?

I try to make help files for my wxWidgets-based software. wxWidgets supports displaying simple html pages and i use htlatex executable tool to convert my .tex to .html, where equations are rendered as ...
3
votes
1answer
114 views

Pdf in bookmark dimensions using geometry

Trying to make my own bookmarks, I began with using geometry to get the right dimensions (for some reason this is 20cm x 5.5cm). Using the first two answers to another question, I wrote the following: ...
3
votes
1answer
1k views

pdflatex, dvips: cannot determine size of graphic in … (no Bound ingBox)

I know that there are threads related to this, but it is really painful... I would like to insert images saved from a tool into latex. The images could be saved in any format of the followings: PNG, ...
3
votes
1answer
281 views

Crop image bigger than page from top left to bottom right

I have a small problem when including an image bigger than an A4 page. Normally, I would use this code, but with this I am able to crop it using the bounding box, from 0, 0 to 500,700: %%image start ...
3
votes
1answer
384 views

LaTeX, dvipng and pipes

I am trying to create PNG images for each page in a LaTeX document on the fly. Since the startup time of LaTeX is the limiting factor for speed I tried the following approach using names pipes: Bash ...
3
votes
1answer
309 views

In dvipng output, why does one side of equation expand to size of fractional side?

I have been using dvipng to produce png images of latex equations to be embedded in html, and the output is very nice. However, for equations with a fraction, the non-fraction side produces a font ...
3
votes
0answers
51 views

Transparent png prints incorrectly from Reader

I have a transparent PNG over a tikzpicture. This prints fine from TeXworks (left image), but from Adobe Reader the transparent area is noticeable (right image). Since most people use Reader, this is ...
3
votes
0answers
16 views

Can I disable interpolation (enable nearest-neighbor filtering/upsampling) with \includegraphics? [duplicate]

When I include the .png image on the right side (32x30 px) in a LaTeX document and typeset it with latexpdf I get the blurry result on the left, even if I turn interpolation off using ...
3
votes
0answers
273 views

standalone problem [closed]

I need to get some equations in .png. Looking for the solution on the web I found that the standalone documentclass should do the job using the convert option. My code is the following: ...
3
votes
0answers
1k views

xdvi/ghostscript error on inserting a png into a LaTeX file [closed]

I'm trying to include a .png picture into my LaTeX .dvi file. I use Emacs on Debian, if that is of any importance. I do this by \usepackage{graphicx} \graphicspath{{./dia/}} and then ...