Articles
Archive for the ‘Web Development’ tag
Web Development in Ubuntu, 4-part Series
Between December 2008 and March 2009, I wrote a 4-part series on web development in Ubuntu for the online magazine Full Circle Magazine. All articles have been translated into Chinese, French, Hungarian, Italian, Russian and Turkish.
- Part 1 - Software for web development in Ubuntu (issue 20)
- Part 2 - Basic HTML and CSS (issue 21)
- Part 3 - Install a LAMP (web) server (issue 22)
- Part 4 - Basic PHP (issue 23)
I will be re-posting this series in HTML and extending the series soon.
Optimizing PNG images for the web
Since Internet Explorer 6 is no longer the major browser used by most Internet users, it is now safe for us web developers to use PNG images exclusively in our designs.
My personal portfolio uses the PNG image format almost exclusively, especially where quality matters, but also uses JPG and GIF where smaller file sizes make sense.
Unfortunately, since PNG files provide such high quality (and therefore large file size) images, it isĀ imperativeĀ to reduce the size of your images for loading time (be nice to your user) and bandwidth (be nice to your server).
Thus, in Ubuntu, you can install a wonderful program called optipng that allows you to compress PNG files without loosing quality.
First, run
sudo aptitude install optipng
Secondly, change the directory to where your PNG files sit
cd /path/to/png/files
And then run this code to losslessly compress your PNG images
for file in `ls *.png`; do optipng $file ; done
The algorithm is not recursive, so you have to go into each folder that contains PNG images and run the command above. I saved several megabytes on my image-intensive portfolio by running this optimization.
Enjoy!


