A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [png]

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

Filter by
Sorted by
Tagged with
144
votes
4answers
423k 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 ...
113
votes
3answers
23k 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 ...
87
votes
6answers
45k 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 ...
46
votes
2answers
4k 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
4answers
10k 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 ...
25
votes
5answers
51k 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 ;-) ...
25
votes
6answers
34k views

My pixel perfect picture gets blurry when compiled in LaTeX

I have this picture: http://dl.dropbox.com/u/3394117/Temp/fig1.png (I have the original in Pixen and could export it to several different formats. I went with PNG though since it's lossless.) When I ...
23
votes
7answers
7k views

Using LaTeX to generate .png images of an equation

I am familiar with using LaTeX on online websites (like MathOverflow or Physicsforums). My input is rendered using MathJax. However, I do not understand the LaTeX environment in its native OS form. ...
17
votes
2answers
6k 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 ...
16
votes
2answers
8k 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 ...
13
votes
4answers
7k 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 I'...
12
votes
4answers
2k 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
4answers
18k 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?
12
votes
1answer
56k 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: ...
11
votes
5answers
4k views

Printing a table as PNG?

I wrote a whole latex file. Due to journal's restrictions, I am forced to submit a word file. Since I have pretty complex tables: I don't want to rebuild in Word and copying tables with snipping tool (...
9
votes
3answers
15k 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 ...
9
votes
1answer
2k 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 ...
9
votes
2answers
43k 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} \...
9
votes
2answers
3k 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. ...
8
votes
2answers
6k 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, ...
8
votes
3answers
4k 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
2answers
6k 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 ...
8
votes
1answer
51k views

Inserting PNG file as is

I'm inserting PNG file and it's rendered enlared, somehow. Here is MWE: \documentclass{book} \usepackage{graphicx} \begin{document} \mainmatter hello, world. the following screenshot should be ...
8
votes
2answers
1k 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
5answers
1k 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 ...
7
votes
4answers
9k 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 ...
7
votes
2answers
1k views

How do I export tikzpictures to png (Using GraphicsMagick?)

I want to export some of my LaTeX figures to .png with a clear background, so I can use them in my PowerPoint presentation. I'm using TexStudio with MikTex on Windows 10. I've been recommended ...
7
votes
2answers
2k 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
1answer
7k 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 \includegraphics[scale=1....
7
votes
1answer
2k 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} \...
7
votes
1answer
2k 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: \inlinedata[base64]{theimage}{...
7
votes
3answers
2k views

Image compression

I am using texmaker and is writing a thesis where I have many different images. These images needs to have a pixel perfect accuracy so the results are not incorrect. I have many png images I would ...
6
votes
3answers
2k views

The PNG image of a TikZ picture that is generated by the standalone document class has the wrong dimensions

Consider the following LaTeX manuscript, which uses the standalone document class to generate both a PDF as well as a PNG images of a TikZ picture. \documentclass[tikz,convert]{standalone} \begin{...
6
votes
1answer
2k 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] (0,...
6
votes
2answers
290 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 arara,...
6
votes
1answer
1k 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
71 views

PNG/JPEG to tikz code converter

I was wondering if there is a converter, a program, that lets you upload or create an image and then gives you the tikz code to create it in LaTeX? I found a similar problem here, but none of the ...
6
votes
1answer
455 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, ...
6
votes
0answers
15k views

LaTeX Error: Option clash for package graphicx [closed]

I have been trying to implement the solution that is mentioned here to solve the error, "Cannot determine size of graphic". However when I want to add \usepackage[dvipdfmx]{graphicx} \usepackage{...
5
votes
4answers
932 views

Produce cards with a PNG background for each card

I need to produce 50 playing cards (60x90mm) with a template available in PSD or PNG or anything else (see picture below). Here is what I tried: \documentclass{minimal} \usepackage[paperheight=6cm,...
5
votes
2answers
1k 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 ...
5
votes
1answer
2k views

Convert .tex file into PNG without ImageMagick

I'm noob in TeX. Would it be possible to convert a .tex file into PNG without installing ImageMagick? Is there a standalone method that I can use?
5
votes
1answer
1k 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 ...
5
votes
3answers
6k views

Powerpoint: Export Images For Use With pdfLatex [closed]

I need to implement several images which exist in Microsoft Powerpoint into a latex document. The images are detailed. Would anyone have suggestions for a method which will improve resolution over ...
5
votes
1answer
13k views

Exporting .png or .jpg files directly from LaTeX code. Possible?

Sometimes it's impossible to upload .pdf, .dvi and .ps files (usually images of diagrams generated with TiKZ in my case). There, one wishes to obtain a way to export them directly to a .png or some ...
5
votes
1answer
423 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 ...
5
votes
1answer
903 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 ...
5
votes
1answer
697 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 ...
5
votes
1answer
365 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
2k 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} \...