Download Apress image magick by Michael Still PDF

By Michael Still

Show description

Read or Download Apress image magick PDF

Best game programming books

Macromedia Fireworks 8: Training from the Source

Should you research most sensible through doing, and what you are motive on doing is create wonderful net snap shots with Macromedia Fireworks eight, this can be where to show. The best-selling instructional publication on Fireworks has been thoroughly up to date to get you hands-on quick with the entire program's most crucial gains, together with its most up-to-date: extra mixture modes, aid for unique characters and AutoShape houses, workflow advancements, and extra.

Essential Mathematics for Games and Interactive Applications

Crucial arithmetic for video games and Interactive functions, second version provides the center arithmetic priceless for stylish 3D snap shots and interactive actual simulations. The booklet starts with linear algebra and matrix multiplication and expands in this starting place to hide such subject matters as colour and lights, interpolation, animation and easy video game physics.

AI Game Programming Wisdom (Game Development Series)

Learn the way AI specialists create clever online game items and characters with this primary quantity within the AI online game Programming knowledge sequence. This particular selection of articles provides programmers and builders entry to the insights and knowledge of over thirty AI execs. every one article delves deep into key AI online game programming matters and gives insightful new principles and strategies that may be simply built-in into your personal video games.

SFML Game Development By Example

Create and enhance interesting video games from begin to end utilizing SFMLAbout This BookFamiliarize your self with the SFML library and discover extra online game improvement techniquesCraft, form, and increase your video games with SFML and customary video game layout elementsA functional advisor that might educate you ways to take advantage of make the most of the SFML library to construct your personal, absolutely practical applicationsWho This booklet Is ForThis e-book is meant for video game improvement fanatics with at the least first rate wisdom of the C++ programming language and an not obligatory history in online game layout.

Extra resources for Apress image magick

Sample text

A simple input image If you take this relatively simple image and make it a fair bit smaller, then each pixel in the new image will be the average of a number of pixels in the original image. Figure 2-9 shows a zoomed-in version of the process that will make this clearer. Figure 2-9. A zoomed-in look at a simple image after it has been made smaller You can see here that the edges of the circle are a lot rougher than they were in the original image, because the averaging process hasn’t been very forgiving.

Anyway, now that you know why it’s desirable to resize images, let’s assume you want to reduce the size of some pictures so that you can post them on your Web site. I’ll use the picture from Figure 2-5 for the following examples. ImageMagick’s convert command supports several ways of performing this resizing operation. Not surprisingly, one of those commands is resize. Resizing an Image The first way of changing the size of an image that I’ll discuss is the resize option to the convert command.

For example, reducing the side length from 160×120 pixels to 80×60 pixels reduces the size of the file by less than 50 percent, whereas reducing the side length from 2560×1920 to 1280×960 reduces the size of the file by about 70 percent. Figure 2-7 shows a graph of that in action. Figure 2-7. qxd 38 11/17/05 3:17 PM Page 38 CHAPTER 2 ■ PERFORMING BASIC IMAGE MANIPULATION Interestingly, you can also see that reducing the dimensions of the image by a small margin results in a larger file size. This is probably because the JPEG compression algorithm doesn’t handle the new file size as well as the original one because it is not a multiple of 8 pixels wide.

Download PDF sample

Rated 4.02 of 5 – based on 11 votes