Skip to content

Tag: png

PNG to PDF and PNG to PDF

You can use ImageMagick to convert multiple PNGs into a PDF and convert a multiple pages PDF into multiple PNGs.

PDF to PNG

$ convert document.pdf document.png

For a document with 10 pages, this will generate document-0.png, document-1.png, … document-9.png.

PNG to PDF

$ convert document*.png document.pdf

This convert the PNG pages into pages in the document.pdf document.

what I feel when I see someone using JPG when he should be using a PNG

Seriously, is that hard?

To discovery which file type you have to use for your image just follow these simple instructions in following priority order:

  1. Have text? Use PNG.
  2. Is a piece of art like a draw, a painting or a webcomic? Use PNG.
  3. It is… moving! Use GIF.
  4. Is a photo? Use JPG.
  5. Is not exactly a photo but contains photos (like people. trees and landscapes)? Use JPG.
  6. Is not a photo, does not contain a photo but I remain concerned about the size of my file despite the breakthrough in telecommunication speeds. Try PNG with indexed palette and Floyd–Steinberg color dithering.
  7. Nah, man. Use JPG but with all lower compression or higher quality options you may find.
  8. It’s nothing listed above! Sir, your problem is far away from the scope of these instructions.

Thank you.

OpenSolaris SVG Poster

Sometimes we just need an good template for organizing a OpenSolaris event, I didn’t found a good one in a reusable format so I did this empty OpenSolaris SVG Poster.

OpenSolaris SVG Poster
Download the svg file: opensolaris_poster.svg

But why an SVG poster? SVG means Scalable Vector Graphics, an XML specification and file format for describing two-dimensional vector graphics. If you use a typical bitmap format like png, gif or jpg and need to scale the image you will loss image quality.

Example of loss of image quality in a bitmap format

Using a vector graphics format you can scaled the image indefinitely without loss of image quality.

Example of loseless quality in svg image

Additionally is a free and open format and also very reusable. You can edit and use it in a broad set of tools, from a scalable image editor like Inkscape to, believe it or not, Netbeans!