Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [png]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
42 views

Failing to extract image from MP3

I have MP3 files with ID3 images of type "Other". I have tried a variety of methods to extract the images, including the suggestions at How to Extract Album Cover Image from MP3 file? To ...
Ubuntourist's user avatar
0 votes
2 answers
83 views

Is there a way to find all PNG files in a folder that have transparent pixels

I have a couple thousand PNGs, all of them probably support the alpha channel but only some of them actually use it (Only some of them actually have transparent pixels). Is there any way at all for me ...
Cestarian's user avatar
  • 2,071
0 votes
1 answer
57 views

How to scan barcode in JPEG format with zbar in Linux?

I am working on an embedded Linux system (kernel-5.10.24). Now I am trying to use zbar-0.23 to scan barcodes in JPEG format, but I don't know how to do that. There is an example/scan_image.c, which ...
wangt13's user avatar
  • 443
0 votes
1 answer
150 views

difference between convert -quality and convert -resize and convert -density

I'm trying to reduce file size of a .png in the terminal with Imagemagick convert Does anyone know the difference between convert -quality , convert -resize and convert -density ? convert -quality ...
cardamom's user avatar
  • 602
0 votes
1 answer
467 views

Why are my PNG files becoming corrupt so frequently?

I use R/RStudio to draw graphics and maps, and save them as PNG. Along the creation process, I save the same file over and over, to see how it's going, until I get to the final product. Sometimes the ...
Rodrigo's user avatar
  • 1,842
0 votes
0 answers
674 views

BASH: How to check if a file with a specific content is inside a png image

I have recently found a way to put files inside a PNG image without destroying the image using cat example.png example.7z > example-combined.png, which also works with standard ZIP archives. This ...
Lampe2020's user avatar
2 votes
1 answer
258 views

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 ...
milehigh 's user avatar
-2 votes
1 answer
1k views

read apng (Animated PNG) [closed]

How to see those kinds of animations Apparently Firefox support them, but isn't there a more dedicated software for that, a lighter one? A software dedicated to see a picture or something
wxi's user avatar
  • 149
1 vote
2 answers
567 views

Thunderbird/X11 - pasting images from clipboard/primary selection fails unless I first paste to libreoffice

If I do a screenshot to clipboard like this: xsnap -png -stdout | xclip -selection primary -t image/png .....then a middle-mouse-button-paste to thunderbird yields a binary paste starting with '�PNG ...
Dag B's user avatar
  • 11
1 vote
2 answers
2k views

Convert pdf to png, size issue

I have a pdf file created from an impress presentation. I want to convert the pdf to png images to add them to create a video using them. I am using pdftoppm to convert the pdf to png, but the ...
jjcasmar's user avatar
  • 333
1 vote
1 answer
71 views

Method to layout graphics file and pdf file for printing

I'm working on a project to automate the creation of shipping labels, (Avery 8127) to be exact. I get a PNG of the USPS/UPS/FedEx shipping label, but the packing slip can vary between a PDF or a ...
Allan's user avatar
  • 1,060
1 vote
1 answer
2k views

Why are my PNGs executable?

I noticed that most of my image files are green when the ls command is used but some of them look purple. Apparently .png and .jpg files are supposed to look Magenta while executable files are Green. ...
Marcus's user avatar
  • 113
0 votes
0 answers
131 views

Converting many PNGs to PDF?

I have been using the following command: convert *.png out.pdf But it seems to be limited to only convert 38 images, the output file is about 50 MB, it makes me wonder if there is a limitation in ...
Tanatos's user avatar
5 votes
1 answer
3k views

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 ...
Leo Simon's user avatar
  • 453
0 votes
0 answers
241 views

Why is my png image data disappearing?

I've been creating a few PNG images with some maps in the last days (using R). After the images are finished, I move them to a separate folder labeled "ok", so I don't get the risk of overwriting them ...
Rodrigo's user avatar
  • 1,842
4 votes
0 answers
455 views

rsync gets stuck on *.png files [closed]

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 ...
philiporlando's user avatar
8 votes
2 answers
7k views

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 : https:/...
Alrick's user avatar
  • 253
0 votes
1 answer
140 views

Tricky issue with stata and libpng

I use stata 14 in Linux mint 19.3. For some reason stata has a problem with the libpng included in Linux mint 19. To fix that, I followed a fix that installs an older version of libpng (see here) to ...
Tobias's user avatar
  • 243
0 votes
1 answer
178 views

How to convert a png file from from 600 x 800 into 600 x 400? [duplicate]

Get info on my source png file. file old.png old.png: PNG image data, 600 x 800, 8-bit colormap, non-interlaced I want to convert old.png from 600 x 800 into 600 x 400. convert -resize 600x400 ...
showkey's user avatar
  • 415
2 votes
1 answer
1k views

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 -...
I wrestled a bear once.'s user avatar
3 votes
2 answers
446 views

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 ...
Konstantin's user avatar
2 votes
0 answers
721 views

Create small high-quality GIF/APNG from a bunch of PNGs

I have 50 PNGs (like those ones here) and I would like to create a GIF (or APNG) animation from it that approximately retains the quality and is small. What I'm doing so far is to rescale and throw ...
Nico Schlömer's user avatar
30 votes
3 answers
39k views

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 ...
nath's user avatar
  • 5,824
0 votes
1 answer
583 views

Replace a certain color of pixels in a png with another png image

I have a png (items.png) which consists of mostly black pixels. I want to replace all the black pixels with another image. (background.png) The images are not the same size, items.png is smaller ...
Display name's user avatar
  • 1,317
1 vote
0 answers
84 views

match and replace section in PNG file

is it possible to use command line program to replace a section within PNG when it match sample picture? like: When weather report in PNG match the image of "sun.png", replace that specific section ...
Thomas G. Lau's user avatar
2 votes
1 answer
10k views

Display a png image file on a framebuffer: png-fb source

I want do display a png image on a framebuffer on an embedded Linux. I already found the manpage of png-fb: man fb-png But I could not find a source for that. Does anybody know the source for that ...
Chris J's user avatar
  • 95
1 vote
0 answers
492 views

crop and convert to pdf adds unwanted margin

I have a few PNG files that I want to print in a certain scale. For that I want to convert each of them to (DIN-A4 sized) PDF and crop into multiple pages. So far I've used this command: convert -...
Max Matti's user avatar
  • 523
1 vote
1 answer
495 views

How to read XML input in lstopo

I have an XML output file from the lstopo command and I wanted to build a PNG file for it. Can I do this using the command line? Something like: lstopo -i out.xml -o abc.png Is something like this ...
user2635088's user avatar
0 votes
1 answer
115 views

Windows visio pngs can't be opened on linux

I have a PNG image created from VISIO under windows which I tried to use in LaTeX. However, every linux program (LaTeX, Okular, GimP) claims the file is corrupted, however, it shows up fine in Chrome. ...
ted's user avatar
  • 623
2 votes
1 answer
374 views

Searching Files according to PNG Meta-Tags

I want to search for PNG's in a (sub-)folder structure with the meta tag software set to the value GNOME::ThumbnailFactory and delete them with a single bash command. Have the story behind it, you ...
uncanny's user avatar
  • 57
1 vote
1 answer
152 views

Need to replace one cursor of a set; have already created the PNG for the cursor

I have created a replacement for xterm cursor that will allow me to see the cursor (Windows, incidentally, calls the xterm cursor the "i-beam", which is rather more descriptive) much better. Problem ...
R. Danner's user avatar
6 votes
3 answers
1k views

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 ...
Nicolas Raoul's user avatar
5 votes
1 answer
5k views

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, ...
joharr's user avatar
  • 154
2 votes
3 answers
548 views

Bash script to minify PNG's keeps stopping

I have tried to run this script a few times now and it keeps hanging. I have 60,000 images and it goes through about a 1000 and then stops. I have been running the top command and the process ...
JediTricks007's user avatar
5 votes
1 answer
4k views

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 ...
qubodup's user avatar
  • 2,406
4 votes
2 answers
293 views

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 ...
Josh Pinto's user avatar
  • 3,503
4 votes
1 answer
17k views

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's user avatar
  • 43
5 votes
1 answer
17k views

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 ...
IBr's user avatar
  • 1,775
7 votes
5 answers
6k views

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's user avatar
  • 15.7k
3 votes
1 answer
584 views

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's user avatar
  • 54.9k