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

learn more… | top users | synonyms

84
votes
3answers
6k 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 ...
50
votes
6answers
4k 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 ...
33
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 ...
30
votes
1answer
68k 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 ...
26
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 ...
12
votes
4answers
764 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?
12
votes
2answers
1k 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 ...
10
votes
2answers
977 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 ...
10
votes
1answer
22k 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
2k 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
641 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 ...
8
votes
3answers
5k 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 ;-) ...
7
votes
2answers
2k 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
304 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
948 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
140 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
371 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 ...
6
votes
4answers
2k 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
617 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
1k 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
55 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
138 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 ...
6
votes
1answer
117 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: ...
5
votes
5answers
438 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 ...
5
votes
3answers
6k 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
560 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
284 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, ...
4
votes
2answers
392 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
705 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
2answers
6k views

Error including a .png: Cannot determine size of graphic

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} ...
4
votes
1answer
274 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
955 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
51 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
221 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 ...
4
votes
2answers
161 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. ...
3
votes
2answers
2k 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?
3
votes
1answer
36 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
417 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
233 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
333 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
262 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
170 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

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: ...
2
votes
1answer
38 views

Create PNG image from PSTricks drawing [closed]

Can I turn the following drawing into a PNG image? If so, how do I do it? % xelatex <filename>.tex \documentclass[11pt]{article} \usepackage{fontspec} \setmainfont{Calibri} \usepackage[margin ...
2
votes
1answer
1k views

\includegraphics[width=40mm], reserves correct space, but includes full size image

I'm using the following code to include an image. The reserved space in the resulting .pdf document is correct and changes according to the width I set. Nevertheless, the .png is always embedded in ...
2
votes
1answer
151 views

Command(s) which would render a LaTeX document into a PNG on Mac

I am using TexShop on a Mac, which handles all of the rendering for me, but have been asked by a colleague to find the command(s) that would render the LaTex document as a PNG instead of PDF. By way ...
2
votes
1answer
148 views

dvipng error when using htlatex on eps file. includegraphics Unrecoverable error 36096

I am hoping someone here can give me a hint about this error. I am not really sure this is latex problem, but part of the software that I am using to process the latex document. The setup is very ...
2
votes
1answer
169 views

How to increase the dpi without increasing the size of the picture via dvipng?

There is a useful tool in MikTeX called dvipng, which can transform dvi file to png file. My question is about the useage of this command. I usually use it with options -T tight -D 120 -z 9 -bg ...
2
votes
1answer
242 views

Cannot set pixel density in standalone package for PNG output

I want to output a PNG image with the standalone package. Here is a minimal working example: \documentclass[preview, convert={density=300}]{standalone} \begin{document} Hello world ...
2
votes
1answer
353 views

Graphing algebraic functions and converting to image (PNG)

My goal is to be able to generate, on-the-fly, a small variety of graphs--linear functions, quadratics, inequalities, multiple plots of each. Nothing more complex than what you'd see in a high school ...