Showing posts with label image-processing. Show all posts
Showing posts with label image-processing. Show all posts

Monday, April 22, 2013

pypng, pure Python module to encode/decode PNG


By Vasudev Ram



pypng is a pure Python library to read/write PNG images.

Here are some code examples of using pypng. Note: the actual library is called png.py, not pypng.py. So import that, not this :-)

I tried out a few of the examples, and they worked.

The image above uses the transparency feature of PNG.

- Vasudev Ram - Dancing Bison Enterprises

Sunday, December 30, 2012

Progressive JPEGs and web performance

Performance Calendar » Progressive jpegs: a new best practice

Interesting article on web and mobile performance with regard to rendering and display of JPEG images.

Progressive JPEG FAQ:

http://www.faqs.org/faqs/jpeg-faq/part1/section-11.html

The article also gives ways to identify a progressive JPEG and a way to convert baseline JPEGs to progressive JPEGs.

And the comments, both on the original article, and in this HN thread about it (  http://news.ycombinator.com/item?id=4983073  ), are informative too.

Google mod_pagespeed, which I blogged about recently, has support for progressive JPEGs.

- Vasudev Ram
www.dancingbison.com

Wednesday, December 26, 2012

Image processing with the Python multiprocessing module

By Vasudev Ram

Interesting demo of the multiprocessing module.
Also uses functools and matplotlib.

http://www.sqlservercentral.com/blogs/sqlwise/2012/12/21/a-really-simple-multiprocessing-python-example/

- Vasudev Ram - Dancing Bison Enterprises



Saturday, June 30, 2012

icat and vcat - show image and video on 256-color terminal

GeeckoDev/vcat · GitHub

Sounds cool. Got to try out. Via @ climagic

- @vasudevram

Monday, April 30, 2012

Converting images to PDF with Reportlab and Python


Seen via @ghoseb tweet.

http://css.dzone.com/articles/reportlab-converting-hundreds

Interesting post, including about the memory error with a large number of files; workaround given in post.

I've used the Platypus module of Reportlab a bit; it is powerful. Gives a good amount of control over layout and appearance of the PDF generated. It works at a higher level of abstraction than the core Reportlab pdfgen module, so can save you programming time, as well as mapping more directly to your intentions (what vs. how). And pdfgen is available if you need more low-level control.

- Vasudev Ram
www.dancingbison.com

Monday, April 9, 2012

Fotobridge


http://www.fotobridge.com/

Photo scanning and digital image processing