Hot answers tagged

79 votes

How do I convert a .PNG into a .ICO?

The opensource imagemagick convert utility can pack multiple images into one single icon file. It provides image re-sizing to generate multiple size icons, and support various other image manipulation....
Uriel's user avatar
  • 997
59 votes

correctly sizing PNG images in markdown with pandoc for html/pdf/docx

Dimensions are converted to pixels for output in HTML-like formats. Use the --dpi option to specify the number of pixels per inch. The default is 96dpi. Find the most common element in your pictures ...
BloodyEl's user avatar
  • 1,058
59 votes
Accepted

Invisible PNG image layer that is only visible as a background

I'm guessing it's what was called "Dirty Transparency" in this article from Smashing Magazine. Essentially any color in transparent PNGs can be described by an RGBA value, where RGB stands for the ...
Rhaenys's user avatar
  • 772
33 votes

Command-line application for converting SVG to PNG on Mac OS X

OK, I found a simple way to do it on the Mac if you have Google Chrome. (and this works even if it is to convert a webp file in Chrome to png or jpg) In one sentence, it is to see the svg image in a ...
nonopolarity's user avatar
  • 9,596
19 votes

How to increase the byte size of a file without affecting content?

The literal answer to your question is no, by definition. The size of a file is the length of its content. If you want to change the size, you'll need to change the content. However, it may be ...
Gilles 'SO- stop being evil''s user avatar
16 votes
Accepted

How to convert all non-white parts of an image to black?

Part of the issue is that not only do you have to find a good crossover value for the reds, but also yellows & blues, because the 'black' text is horribly antialiased in colour. If you apply a ...
Tetsujin's user avatar
  • 49.4k
14 votes

How do I convert a .PNG into a .ICO?

Yes you can use websites as some people are recommending in their answers but if you learn how to do it right, you can probably do it yourself in the same amount of time it takes to browse to the site,...
thebunnyrules's user avatar
13 votes

How do I convert an SVG to a PDF on Linux

I'm wondering why it hasn't been mentioned before, but I tested a bunch of different svg->pdf converters and found that the best one is Headless Chrome. It produces the most precise results for me. ...
Avael Kross's user avatar
13 votes

Invisible PNG image layer that is only visible as a background

To add to Nihal's answer, this can be reproduced by using the "anti-erase" brush in the GIMP. The Erase brush can add or remove an alpha channel if the image is using a format that supports it, (hold ...
Blerg's user avatar
  • 1,232
10 votes
Accepted

What are the weird images inside the RCDATA of System32/imageres.dll used for?

They were used as "tattoos" on the Windows 8 metro start screen. You could select from a variety of subtle or more colorful designs. (sorry for the huge image, only had a VM on-hand) Either Windows ...
Daniel B's user avatar
  • 62.4k
10 votes

Everytime I convert PDF to PNG it becomes more pixely. How can I fix it?

How can I fix this? You don't. The formats are inherently different and work in different ways. PDF supports what is known as "vector" graphics. PDF allows you to specify line and curve start and ...
Mokubai's user avatar
  • 92.2k
9 votes
Accepted

How do I convert a TTF into individual PNG character images?

You can use Python with FontForge, it has a Python 2.7 interpreter. On Windows: after installing FontForge, locate the "bin" in installation path and add it to the Windows system path, in my case ...
Mikhail V's user avatar
  • 993
8 votes

Is there any quality difference between PNG vs BMP image formats?

There's no quality difference between BMP & PNG format (except PNG is compressed using deflate algorithm). BMP8 can be compressed using RLE (run-length-encoding) algorithm, but BMP16/24/32/64 ...
Tidy Star's user avatar
7 votes

How do I convert a .PNG into a .ICO?

If you are using OSX. You can actually use the built in Preview application to save the file to a pretty broad range of file types. File → Export... → Hold ⌥ (alt/opt) & click the file Format ...
Jpatrick's user avatar
  • 189
7 votes

How can i make a font using a .png image

calligraphr.com Download a png template, which is a grid with A-Z and 0-9. Paste in the letter images you have. Download the ttf file.
neoneye's user avatar
  • 893
6 votes

Command-line application for converting SVG to PNG on Mac OS X

Yet another method without installing anything. Not in command line though. Open the .svg file in Safari. Press alt-command-i to open the inspector. Right-click on the <svg> tag, select "...
Haotian Yang's user avatar
6 votes

How to Create a PNG image using just notepad?

How can I create a PNG from nothing, using just Notepad? With great difficulty. It would be easier (but still difficult) using a hex editor. Essentially you have to create a file in a format that ...
DavidPostill's user avatar
  • 156k
6 votes
Accepted

How can I increase the resolution of a text in a PNG file?

The short answer is, you cant. PNG is a raster graphics format, while (in your example) the PDF is a vector graphics format. Raster images have a fixed resolution. If you scale them up or down, ...
Keltari's user avatar
  • 73k
5 votes

Command-line application for converting SVG to PNG on Mac OS X

This is what I used: brew install imagemagick --with-librsvg Then run the following commands: find . -type f -name "*.svg" -exec bash -c 'convert $0 $0.png' {} \; rename 's/svg\.png/png/' * Hope ...
Alan Dong's user avatar
  • 193
5 votes

how to change the png file background to transparent

No installation needed - use Preview. Open the image in preview Click the "toolcase" icon in the toolbar Select the "magic wand" tool Click and drag to set the "radius" until it selects what you ...
noɥʇʎԀʎzɐɹƆ's user avatar
5 votes

Export frames of animation separately

For people looking for exports with a transparent background.. First export all frames to layers: Timeline panel > Flatten Frames Into Layers Then Export all layers to files: File > Export > ...
Tieme's user avatar
  • 151
5 votes

Convert many images to one PDF on Mac

I highly recommend the Python CLI program img2pdf for lossless conversion: https://gitlab.mister-muffin.de/josch/img2pdf Example usage: img2pdf img1.png img2.jpg -o out.pdf
Adam Erickson's user avatar
5 votes

How do I convert an SVG to a PDF on Linux

On Mac OS (considering that you already have brew installed) I do: $ brew install cairo libffi python3 $ pip3 install cairosvg $ cairosvg -o blah.pdf ./blah.svg Same should work on Linux, but with ...
Adriel Jr's user avatar
  • 151
5 votes

How do I convert an SVG to a PDF on Linux

The answer by @pts doesn't work with recent versions of Inkscape ( 1.0 or newer). To convert an SVG file to PDF: inkscape --export-type=pdf my_file.svg This will export it to my_file.pdf. If you ...
s.ouchene's user avatar
  • 211
5 votes

Copy an image to clipboard from the Mac terminal

Here is a link to an answer by Chris Johnsen on a related question that does what you're looking for. (In that case it's an HTML file, but it works for our needs here.) https://apple.stackexchange....
squaregoldfish's user avatar
5 votes
Accepted

ffmpeg -- How do I overlay a PNG over another PNG?

If you want to overlay A on top of B, you need to switch either the file input order or the overlay ingest order. ffmpeg -i B.png -i A.png -filter_complex "[1]scale=iw/2:-1[b];[0:v][b] overlay" out....
Gyan's user avatar
  • 35.9k
5 votes

Can PNG images contain embedded thumbnails like JPG files?

You can put a thumbnail image in the Exif profile, then store the Exif profile in a PNG eXIf chunk, if you are using libpng-1.6.32 or later.
Glenn Randers-Pehrson's user avatar
5 votes

How do I convert a TTF into individual PNG character images?

fontforge has switched to a python scripting language. Create a file exportGlyphs.py: import os from fontforge import * font = open(os.sys.argv[1]) for glyph in font: if font[glyph]....
Sembiance's user avatar
  • 151
5 votes

How to increase the byte size of a file without affecting content?

The truncate command has a little-known option to increase the size of files by adding null bytes, which won't be visible in the content unless you're using an editor that explicitly shows these, like ...
Karu's user avatar
  • 4,744
5 votes
Accepted

Copy a `dot`-generated graph to the clipboard (e.g. as png)

Close. You need to tell xclip the type of data, and most programs want the XA_CLIPBOARD for the usual ctrl-v pasting: echo "graph {a--b; b--c;}" | dot -Tpng | xclip -selection clipboard -t ...
Marcus Müller's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible