Questions tagged [png]

36 questions
27
votes
3 answers

How to get the DPI of an image file (PNG)

If I export an image with lets say 300 DPI and I read out its meta-info with any application that can do it (like file, exiftool, identify,mediainfo etc.), I always get a value showing Image-Width and Image-Height. In this case: 2254 x 288 how do I…
nath
  • 5,430
  • 9
  • 45
  • 87
8
votes
2 answers

Convert PDF to images in 1920x1080

i want to convert a PDF to PNG images using convert. The images must fit the 1920x1080 ratio by having a ?x1080 ratio, and have the best quality. Here are many options i can use with convert…
Alrick
  • 243
  • 1
  • 3
  • 6
7
votes
5 answers

How to convert multiple XCF files to PNG?

I have a folder with a lot of xcf files which I want all to be converted to png files, at best via a one-liner from bash. How can I achieve such a task?
k0pernikus
  • 14,853
  • 21
  • 58
  • 79
6
votes
3 answers

Create the same PNG with ImageMagick 2 times: Binaries differ

I create two images that should be identical, but their binaries are different: $ convert -size 1x1 xc:white out1/w.png $ sleep 1 $ convert -size 1x1 xc:white out2/w.png $ diff out1/w.png out2/w.png Binary files out1/w.png and out2/w.png…
Nicolas Raoul
  • 7,945
  • 14
  • 43
  • 55
5
votes
1 answer

Imagemagick used to generate PPM's in Linux, PPM's are unreadable

I need to generate PPM's as raw data sources for one program. I have a bunch of png's as Input, which I'm going to convert ppm's. When I try a tool like mogrify it generates files, but these are unreadable to any image viewer programs such as…
IBr
  • 1,745
  • 3
  • 17
  • 26
5
votes
1 answer

Convert Xcursor to PNG

Xcursor is a format for the graphics of the cursor in X11 (file reports X11 cursor). xcursorgen allows you to convert PNG files and some metadata to Xcursor files. How do I convert an Xcursor file to PNG images? Imagemagick's convert unfortunately…
qubodup
  • 2,316
  • 3
  • 19
  • 26
4
votes
1 answer

Drawing a straight line with Pinta

I'm trying to superimpose a straight line onto a .png image. GIMP is notoriously impossible to use for simple things, so people have suggested Pinta. However, as far as I can tell, the only lines you can draw with this program are freeform ones,…
Leo Simon
  • 443
  • 1
  • 5
  • 11
4
votes
0 answers

rsync gets stuck on *.png files

I have been running the following rsync command as a cronjob for the past month. Today I discovered that this has been getting stuck on a *.png file and none of my other data has been backing up! In the meantime I've excluded *.png files and rsync…
4
votes
1 answer

limitations of CUPS command line printing of image files

I have my default printer set: lpoptions -d HP_ENVY_5530_series. I can print some text: echo HELLO > h.txt lp h.txt CUPS understands many different types of files directly, including text, PostScript, PDF, and image files. I can print a Portable…
joharr
  • 144
  • 2
  • 7
4
votes
2 answers

How do I write a script to automatically optimize all the PNGs in my MediaWiki images directory?

I have MediaWiki 1.25.2 installed on my 64-bit Debian 8.1 VirtualBox machine and I'd like to be able to upload the images/ directory from this installation to my DropBox. Being a cheapskate I'm trying to minimize the size of this images directory by…
Josh Pinto
  • 3,483
  • 15
  • 52
  • 87
4
votes
1 answer

Conversion from PNG to EPS

I would like to convert PNG images/graphs to EPS without losing even a bit on resolution. All the commands I tried (potrace, autotrace, convert, gimp) decrease the resolution quality.
HP AS
  • 43
  • 1
  • 1
  • 4
3
votes
1 answer

Icon themes, when is svg format helpful?

I found that arch provides both oxygen-icons and oxygen-icons-svg, what's the necessity of svg format? Is there something that a PNG image "can't do", maybe performance issue? Not sure about it.
daisy
  • 53,527
  • 78
  • 236
  • 383
3
votes
2 answers

How can I save a scrollable terminal window (RoxTerm) into a png image?

I would like to save a Ruby program coloured terminal output into a png file, output doesn't fit into the screen height, so it is scrollable. Is it possible to save the whole or part of the scrollable terminal window area (not only the visible part…
Konstantin
  • 141
  • 5
2
votes
1 answer

Merge a png on top of a gif with shell

I am trying to merge a png with a gif (put the png on top of the gif) and then have the result as a gif. I played around with convert, but cannot quite get it to work the way I need it. I have tried these commands so far: convert layer1.png…
milehigh
  • 23
  • 2
2
votes
1 answer

What is this GhostScript error? “/undefined in /BXlevel”

At first I thought this might have been a missing font issue but as far as I can tell from the output, GS is finding the font just fine.. Any hints as to what the problem might be? $ /usr/bin/gs -dBATCH -dNOPAUSE -sDEVICE=pngalpha…
1
2 3