Showing posts with label ExtremeTech. Show all posts

Martin C. Brown

Create Your Own Cutom Mapping Applications

Building on Your Map, Build a Space Station Tracker

e-books shop
Hacking Google Maps and Google Earth


About the Author
A professional writer for more than six years, Martin C. Brown (MC) is the author of both the
Perl and Python Annotated Archives and Complete Reference books (all four Osborne/McGraw-
Hill), Microsoft IIS 6 Delta Guide (Sams Publishing), and 14 other published computing titles.
His expertise spans myriad development languages and platforms—Perl, Python, Java,
JavaScript, Basic, Pascal, Modula-2, C, C++, Rebol, Gawk, Shellscript,Windows, Solaris,
Linux, BeOS, Microsoft WP, Mac OS, and more—as well as web programming, systems
management, and integration. MC is a regular contributor to ServerWatch.com and IBM
developerWorks.

He is also a regular writer of white papers and how-to guides for Microsoft on subjects such as
migrating Solaris/Unix/Linux development and systems administration to Windows 2000 and
2003 Server product lines. He draws on a rich and varied background as a founding member of
a leading U.K. ISP, systems manager and IT consultant for an advertising agency and Internet
solutions group, technical specialist for an intercontinental ISP network, and database designer
and programmer—and as a self-confessed compulsive consumer of computing hardware and
software. In his formative pre-writing life, he spent 10 years designing and managing mixed
platform environments. As a result he has developed a rare talent of being able to convey the
benefits and intricacies of his subject with equal measures of enthusiasm, professionalism, indepth
knowledge, and insight. MC is currently a member of the MySQL Documentation Team.


Contents at a Glance
Acknowledgments
Introduction
Part I: Basics
Chapter 1: Using Geographical Information
Chapter 2: The Google Local Interface
Chapter 3: The Google Maps API
Chapter 4: The Google Web API
Chapter 5: Storing and Sharing Information
Part II: Instant Gratification
Chapter 6:Working with Existing Address Information
Chapter 7: Extending the Google API Examples
Chapter 8: Discovering Overlays and Mash-ups
Part III: Google Maps Hacks
Chapter 9: Using Overlays
Chapter 10: Overlaying Statistical Data
Chapter 11: Building a Community Site
Chapter 12: The Realtors and Archaeologists Toolkit
Chapter 13: I Need to Get To
Chapter 14: Merging with Flickr Photos
Part IV: Google Earth Hacks
Chapter 15: Introducing Google Earth
Chapter 16: Generating Google Earth Feeds
Chapter 17: History and Planning with Google Earth
Appendix: Resources
Index

Acknowledgments
I’d like to thank Chris Webb for giving me the opportunity to write this book, and Suzy
Thompson and Kelly Talbot, who kept me on the straight and narrow while writing the
chapters. The unseen members of Wiley’s development team for the book also had a serious
role to play in the process. I shouldn’t forget the vital roles played by my agent, Lynn Haller,
and the rest of the team at StudioB.

Helping me ensure the correct content and testing some of the applications were Chris
Herborth and the technical editor, Ben Hammersley. It should go without saying that the users
and developers of Google Maps applications and the rest of the Google Maps community have
served as an inspiration for some of the examples in this book.


Most importantly, I must thank my wife who survives not only my good days, but also my bad.


Introduction

Do you know where you are?
Do you know where you are going?
Could you find the nearest restaurant to your current location?
When you looked at your latest holiday photos, could you remember where you were?

It is just these sorts of questions that drove me to write this book. I’m interested in the answers
to all of these questions, and particularly in ways in which I can represent information about
my world, and the world we live in, in a way that relates that data to its location.

During the course of writing this book I visited New York (U.S.), Edinburgh (Scotland), and
Sorrento (Italy), in addition to many different places within a few miles of my home. 
In each case, Google Maps and Google Earth could be used to record information about where I had been, to look up information about where I was going, or simply to help me understand the
area I was visiting. All of these situations, and more, are documented and described within this book.

Who This Book Is For
This book is aimed at both amateur and professional programmers who want to make use of
either Google Maps or Google Earth in their own applications.To get the best out of this
book, you should have some basic programming experience and ideally be familiar with
HTML and JavaScript. It would also be beneficial to have experience with scripting languages
(particularly Perl) and SQL databases, such as MySQL.

Managers and other interested parties might also find sections of the book useful, because it
can help them understand how the applications work and also provide background knowledge
on what Google Maps and Google Earth are capable of.

How This Book Is Organized
The book is divided into four basic parts:
Part I covers the basics of the Google Maps interface, the fundamentals of the Google Maps
API, and how to organize and translate existing information into a format that can successfully
be used within Google Maps and Google Earth applications. The section should get you up to
speed on the core techniques and abilities you need to work with the rest of the book.
Part II shows you what the Google Maps system is capable of doing. In this section you’ll find
information on some excellent sample applications and how to create your own Google Maps
applications by extending the functionality of the core Google examples.
Part III is crammed full of examples of Google Maps applications, starting with basic markers
and overlays, moving through dynamically driven examples and on to methods of highlighting
key points and elements for archaeologists and Realtors. The section finishes up with an example
of a route description application. All of the examples demonstrated can be viewed online.
Part IV covers the Google Earth application. Google Earth is a standalone application, rather
than a web site solution like Google Maps, and offers a completely new set of methods for
describing information.

Conventions Used in This Book
In this book, you’ll find several notification icons—Note, Caution, and Tip—that point out
important information. Here’s what the three types of icons look like:
Notes provide you with additional information or resources.
A caution indicates that you should use extreme care to avoid a potential disaster.
A tip is advice that can save you time and energy.
Code lines are often longer than what will fit across a page. The symbol ; indicates that the
following code line is actually a continuation of the current line. For example,
var newlat = latpoints[0] + ((latpoints[latpoints.length-1] - ; latpoints[0])/2);
is really one line of code when you type it into your editor.
Code, functions, URLs, and so forth within the text of this book appear in a monospace
font, while content you will type appears either bold or monospaced.

What You Need to Use This Book
For the Google Maps examples in this book, you need access to a publicly available web site
where you can add and update pages, because the Google Maps API must be able to verify
your pages during use. Hosting these pages on your own machine is unlikely to work. 
Full details of requirements, including those for accessing the Google Maps API are provided in Chapter 3.
Google Maps applications are written using JavaScript and HTML, so you should be familiar
with these to be able to understand and adapt the examples. Many of the examples use a Perl
script for providing data, and although these operations could also be written in PHP or
Python, examples of these are not provided. Finally, some examples use a MySQL database to
store information. A similar database solution, such as MySQL, Derby, PostgreSQL, or others
will be required to duplicate some of the samples. All of the examples should work within the
major platforms (Windows, Linux/Unix, and Mac OS X).

All of the examples in this book make use of the version 1 sequence of the Google Maps API.
The API is under constant development and new versions might be released after the publication
of this book that supersede the version used in the examples. The availability of the new
version will not affect the operation of the examples, which are designed to work with the v1
sequence.
The Google Earth application is available for computers running Windows and Mac OS X.
However, new versions and editions for existing and new platforms could be released at any time.

What’s on the Companion Web Site
A companion site for the book is available at http://maps.mcslp.com.
The site includes the following:
Full source code for all the examples in the book.
Working examples of all the applications featured in the book.
Errata and corrections.
Regular follow-up articles and information on Google Maps, Google Earth, and the book contents.
The web site also includes a Weblog. 
Details of how to subscribe to the articles and comments
posted to the blog are available on the site.
As usual, all of the code and errata for the book are also available at http://www.wiley.com/go/extremetech.


Screenshot

e-books shop

Purchase Now !
Just with Paypal



Product details
 Price
 File Size
 11,549 KB
 Pages
 401 p
 File Type
 PDF format
 ISBN-13
 ISBN-10
 978-0-471-79009-9
 0-471-79009-5
 Copyright
 2006 by Wiley Publishing, Inc 

Table of Contents
Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xix
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxi
Part I: Basics 1
Chapter 1: Using Geographical Information . . . . . . . . . . . . . . . . . 3
Understanding Your Location . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Mapping a Location . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Defining a Location . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Moving to Another Location . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Thinking in Terms of Geographical Location . . . . . . . . . . . . . . . . . . . . . 6
To Find Places . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
To Identify Photo Subjects . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
To Understand Statistical Data. . . . . . . . . . . . . . . . . . . . . . . . . . 9
To Generate Data from Maps . . . . . . . . . . . . . . . . . . . . . . . . . 10
Wrapping Up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Chapter 2: The Google Local Interface . . . . . . . . . . . . . . . . . . . 13
System Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Examining the Main Interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Interacting with the Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Moving the Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Zooming In and Out . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Changing the View Types. . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Conducting Searches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Understanding Markers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Markers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Pop-ups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Overlays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Wrapping Up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Chapter 3: The Google Maps API . . . . . . . . . . . . . . . . . . . . . . 35
Using the API Key. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Browser Compatibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Basic Components of a Google Maps Application . . . . . . . . . . . . . . . . . . 37
XHTML (Extensible HTML) . . . . . . . . . . . . . . . . . . . . . . . . . 37
VML (Vector Markup Language) . . . . . . . . . . . . . . . . . . . . . . . 38
Styles and Elements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
XML (Extensible Markup Language) . . . . . . . . . . . . . . . . . . . . . 39
JavaScript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Understanding API Terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Overlays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Information Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
The Google Maps Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
GMap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
GMarker . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
GPolyline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
GIcon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
GEvent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
GXmlHttp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
GXml . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
GXslt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
GPoint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
GSize . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
GBounds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Wrapping Up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Chapter 4: The Google Web API . . . . . . . . . . . . . . . . . . . . . . . 53
Downloading the Google Web API . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Using the Google Web API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Conducting Searches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Comparing Language Samples . . . . . . . . . . . . . . . . . . . . . . . . . 60
Wrapping Up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Chapter 5: Storing and Sharing Information. . . . . . . . . . . . . . . . . 65
Format Types and Uses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Using Flat-Text Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Using XML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Using an RDBMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Parsing and Generating Text Files. . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Reading Delimited Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Writing Delimited Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Reading Fixed-Width Files . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Writing Fixed-Width Files . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Updating Text Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Generating and Parsing XML. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Generating XML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Parsing XML with Perl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Parsing XML with JavaScript . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Working with SQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Creating a Database Structure . . . . . . . . . . . . . . . . . . . . . . . . . 83
Interfacing to the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
Populating the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Extracting Data from the Database . . . . . . . . . . . . . . . . . . . . . . . 89
Wrapping Up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
Part II: Instant Gratification 93
Chapter 6: Working with Existing Address Information . . . . . . . . . . 95
Looking Up Geocode Information . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Looking Up U.S. Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Looking Up Global Information . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Wrapping Up. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
Chapter 7: Extending the Google API Examples . . . . . . . . . . . . . . 103
Installing a Simple Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Adding Controls to the Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
Moving about a Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Adding Overlays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Adding a Single Marker . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Adding Multiple Markers . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Adding Lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Opening an Info Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
Event Listeners . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
Monitoring Movement . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
Adding Markers to Multiple Maps . . . . . . . . . . . . . . . . . . . . . . 125
Monitoring Location . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
Wrapping Up. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
Chapter 8: Discovering Overlays and Mash-ups . . . . . . . . . . . . . 133
Traffic Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
Toronto Transit Commission (TTC) Map . . . . . . . . . . . . . . . . . . 133
Toronto Traffic Cameras. . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
U.K. Speed Cameras . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
Trackers and Locators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
Hurricanes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
Satellites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
Blackbirds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
Wrapping Up. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
Part III: Google Maps Hacks 143
Chapter 9: Using Overlays . . . . . . . . . . . . . . . . . . . . . . . . . 145
Building in Multiple Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
Extending the Source HTML. . . . . . . . . . . . . . . . . . . . . . . . . 145
Making the Generation Dynamic with a Script . . . . . . . . . . . . . . . . 148
Pulling the Data from a Database . . . . . . . . . . . . . . . . . . . . . . . . . . 157
Creating a Suitable Database Structure . . . . . . . . . . . . . . . . . . . . 157
Generating XML from that Information . . . . . . . . . . . . . . . . . . . 159
Extending the Information Pane . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
Formatting Information Panes. . . . . . . . . . . . . . . . . . . . . . . . . 161
Creating More Detailed Windows from XML and XSLT . . . . . . . . . . 163
Making Your Example Truly Dynamic. . . . . . . . . . . . . . . . . . . . . . . . 167
Dividing the Application into Components. . . . . . . . . . . . . . . . . . 168
The JavaScript Component . . . . . . . . . . . . . . . . . . . . . . . . . . 169
Generating the XML on the Backend. . . . . . . . . . . . . . . . . . . . . 174
Using the New Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
Extending the Content . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
Wrapping Up. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
Chapter 10: Overlaying Statistical Data . . . . . . . . . . . . . . . . . . 181
Generating/Obtaining Statistical Information . . . . . . . . . . . . . . . . . . . . 181
The U.S. Census Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182
Converting the Source Data to XML . . . . . . . . . . . . . . . . . . . . . 182
Using Polylines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184
Basic Point Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184
Building an Internal Data Representation. . . . . . . . . . . . . . . . . . . 188
Adding a Bar Graph . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189
Adding a Circle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
Plotting Multiple Data Sets . . . . . . . . . . . . . . . . . . . . . . . . . . 194
Using Custom Icons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
Building Your Own Icon . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
Putting the Icon on a Map . . . . . . . . . . . . . . . . . . . . . . . . . . 202
Using Icon Size to Represent Data . . . . . . . . . . . . . . . . . . . . . . 203
Wrapping Up. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
Chapter 11: Building a Community Site . . . . . . . . . . . . . . . . . . 207
Displaying Highlighted Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
Adding More Data to the Output . . . . . . . . . . . . . . . . . . . . . . . . . . 208
Storing and Creating the Data . . . . . . . . . . . . . . . . . . . . . . . . 209
Backend Database Interface . . . . . . . . . . . . . . . . . . . . . . . . . . 211
Using Custom Icons to Highlight Different Attractions . . . . . . . . . . . . . . 213
Filtering Data through Layers of Information . . . . . . . . . . . . . . . . . . . . 215
HTML Preamble . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
Global Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
Entity Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
Initial Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
Loading a List of Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
Moving the Map. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
Removing Existing Markers . . . . . . . . . . . . . . . . . . . . . . . . . . 218
Adding Markers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
Loading Markers for a Type . . . . . . . . . . . . . . . . . . . . . . . . . . 219
Recentering the Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220
Closing HTML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
Final Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222
Wrapping Up. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
Chapter 12: The Realtors and Archaeologists Toolkit . . . . . . . . . . . 227
Alternative Markers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227
The TLabel Extension. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228
Building a TLabel Application . . . . . . . . . . . . . . . . . . . . . . . . 232
Overlaying Images and Drawings . . . . . . . . . . . . . . . . . . . . . . . . . . 239
The TPhoto Extension . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
Using TPhoto Overlays . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240
Identifying Elements from Click Locations . . . . . . . . . . . . . . . . . . . . . 244
Creating a Unique Map Object . . . . . . . . . . . . . . . . . . . . . . . . 244
Registering the Objects on the Map. . . . . . . . . . . . . . . . . . . . . . 245
Identifying the Click Location . . . . . . . . . . . . . . . . . . . . . . . . 246
Resetting the Map Location. . . . . . . . . . . . . . . . . . . . . . . . . . 246
Resetting the Object Opacity . . . . . . . . . . . . . . . . . . . . . . . . . 247
Final Overlay Application . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
Wrapping Up. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
Chapter 13: I Need to Get To... . . . . . . . . . . . . . . . . . . . . . . . 251
Front-End Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
HTML Wrapper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252
Global Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254
Enabling the Route Recording Process . . . . . . . . . . . . . . . . . . . . 254
Disabling the Route Recording Process . . . . . . . . . . . . . . . . . . . . 255
Clearing the Last Point . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
Clearing the Current Route . . . . . . . . . . . . . . . . . . . . . . . . . . 256
Initializing a New Route. . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
Deleting a Route. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
Saving a Route . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258
Loading a List of Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . 259
Loading a Single Route . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261
Adding Markers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264
Initializing the Application . . . . . . . . . . . . . . . . . . . . . . . . . . 264
Recentering and Zooming the Map . . . . . . . . . . . . . . . . . . . . . . 265
Backend Database Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265
Database Structure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266
Basic Wrapper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266
Message Response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267
Listing Existing Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267
Saving a Route . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268
Deleting an Existing Route . . . . . . . . . . . . . . . . . . . . . . . . . . 269
Obtaining a Single Route . . . . . . . . . . . . . . . . . . . . . . . . . . . 270
Calculating Distance. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271
Using the Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272
Wrapping Up. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277
Chapter 14: Merging with Flickr Photos . . . . . . . . . . . . . . . . . . 279
Flickr and the Flickr API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279
The Flickr API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279
Getting a Flickr API Key . . . . . . . . . . . . . . . . . . . . . . . . . . . 280
Adding Geographic Data to Your Flickr Photos . . . . . . . . . . . . . . . 280
Adding Flickr Photos to a Google Map . . . . . . . . . . . . . . . . . . . . . . . 281
A Flickr Proxy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281
Searching Flickr for Photos . . . . . . . . . . . . . . . . . . . . . . . . . . 282
Getting Individual Photo Data . . . . . . . . . . . . . . . . . . . . . . . . 284
Wrapping Up. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290
Part IV: Google Earth Hacks 291
Chapter 15: Introducing Google Earth . . . . . . . . . . . . . . . . . . . 293
Google Earth Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293
Obtaining the Application. . . . . . . . . . . . . . . . . . . . . . . . . . . 294
Google Earth Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294
Extending Google Earth Information . . . . . . . . . . . . . . . . . . . . . . . . 304
Exporting Your Tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305
Basic KML Principles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306
Wrapping Up. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308
Chapter 16: Generating Google Earth Feeds. . . . . . . . . . . . . . . . 309
Showing Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309
Generating KML from Existing Data. . . . . . . . . . . . . . . . . . . . . 310
Generating KML Dynamically . . . . . . . . . . . . . . . . . . . . . . . . 315
Adding Icons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321
Wrapping Up. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325
Chapter 17: History and Planning with Google Earth . . . . . . . . . . . 327
Location Photos . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327
Using a Photo for a Placemark . . . . . . . . . . . . . . . . . . . . . . . . 327
Scaling the Icon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329
Setting a View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 330
Adding Detail to a Placemark . . . . . . . . . . . . . . . . . . . . . . . . . 331
Final KML. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331
Generating the Information in Google Earth . . . . . . . . . . . . . . . . . 334
Generating a KMZ File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336
Revisiting the Realtor’s Toolkit. . . . . . . . . . . . . . . . . . . . . . . . . . . . 337
Using an Overlay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 337
Creating a 3D Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . 339
Wrapping Up. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 343
Appendix: Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . 345
Google Resources. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 345
Google Maps API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 346
Google Maps API Documentation . . . . . . . . . . . . . . . . . . . . . . 346
Google Maps API Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . 346
Google Web API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 346
Google Maps Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 346
Information Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347
Google Maps Mania. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347
Maplandia.com . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347
Google Maps on Wikipedia . . . . . . . . . . . . . . . . . . . . . . . . . . 347
Google Sightseeing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347
Geocoders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347
MGeocoder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 348
Geocode America . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 348
Geocoder. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 348
Google Maps Tools. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 348
gMap it! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 348
Mobile GMaps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 348
MapBuilder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 348
MapKi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 349
Competitors and Alternatives . . . . . . . . . . . . . . . . . . . . . . . . . . . . 349
MapQuest . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 349
Virtual Earth. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 349
Yahoo! Maps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 349
A9 Maps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 349
Multimap.com . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 350
Map24 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 350
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 351

  ●▬▬▬▬▬❂❂❂▬▬▬▬▬●
●▬▬❂❂▬▬●
●▬❂▬●

═════ ═════

Shangara Singh

See What You Can Achieve Full Color Throughout

More Than 300 Ways to Squeeze the Most from Photoshop!

e-books shop
Hacking Photoshop CS2

About the Author
Shangara Singh has written and designed exam study aids for the Adobe Certified Expert
product proficiency exams for Adobe Photoshop and co-authored exam study aids for Adobe
Illustrator and Macromedia Dreamweaver (www.examaids.com). He regularly answers
Photoshop questions on various lists, forums, and from his Photoshop ACE Web site. He has
also served as technical editor for books on the use of Photoshop in Web site design and digital
photography. He brings his extensive experience as a director of photography, a lighting designer,
a photographer, and a Web and print designer to bear on all his visual work.


Introduction

Agreat number of people come to Photoshop to fix their images and end up being married
to it, doing a thesis on it or, at the very least, pulling out their hair and swearing
never to go near a computer ever again. Photoshop is a tough beast to tame by using
logic or clicking here, there, and everywhere in the hope of breaking it in, throwing a saddle on
it, and riding into the sunset.

Sadly, there is no magic spell for mastering or taming Photoshop. If there were, there would be
less need for books such as this one, Hacking Photoshop® CS2. No, the only sure formula that
seems to work involves learning the basics and then adding to your base knowledge some of the
secret handshakes known to the experts . . . and that’s the raison d’être of this book. It’s written
with the sole intention of imparting insider knowledge that will help you to understand what
Photoshop is capable of and help you speed up your workflow by revealing some of these
“secret handshakes.”

Whom This Book Is For
This book is for people who have a working knowledge of Photoshop and wish to expand
it exponentially. It delves into the nooks and crannies of the interface, the tools, commands,
filters, and their employment. It covers the different ways that a task can be performed in
Photoshop and invites you to make connections and to discover your own techniques for
solving problems. Although squarely aimed at Photoshop CS2 users, people using older versions
of Photoshop can make use of the majority of the hacks and tips contained in the book.

How This Book Is Organized
The book has 18 chapters full of “hacks”—tips, tricks, mods, and customizations designed to
help you get the most out of Photoshop.
Chapter 1, “Optimizing Performance”—This chapter deals with managing your
resources and squeezing the maximum performance out of Photoshop.
Chapter 2, “Hacking the Work Area”—This chapter is all about customizing your
entire work area and saving the changes for future use.
Chapter 3, “The Fine Art of Using Palettes”—This chapter provides insights into
Photoshop’s palettes, some of the secrets that they hold and ways for you to enhance your productivity.
Chapter 4, “Browsing with Bridge”—This chapter helps put Bridge’s viewing modes
and file-sifting capabilities to work for you.
Chapter 5, “Hacking Preferences and Documents”—The hacks in this chapter show
you how to handle Preferences and how to increase your productivity and streamline
your workflow when working with documents.
Chapter 6, “Working with Layers”—To work effectively in Photoshop, it pays to learn
as much about layers as you can. This chapter has the insights into creating, managing,
and editing layers that will help.
Chapter 7, “Creating and Applying Layer Styles”—This chapter discusses how you can
make the most of layer styles to create, save, apply and organize styles.
Chapter 8, “Hacking Layer Masks”—Layer masks are incredibly useful devices for hiding
underlying content without affecting the values of the pixels that make up the content,
and this chapter helps you wield that power.
Chapter 9, “Hacking Selection Masks”—With the techniques, hints, and tips included
in this chapter, you should be well armed for 
creating selection masks for almost any image-editing assignment.
Chapter 10, “Drawing and Painting”—This chapter helps you to use the drawing tools
and related commands productively and ingeniously to draw and to paint.
Chapter 11, “Editing,Transforming, and Retouching Images”—This chapter is about
taking full advantage of the simple, everyday tasks (editing, transforming, and retouching
images) that form the backbone of most Photoshop work.
Chapter 12, “Adjusting and Correcting Colors”—Adjusting and correcting colors in
Photoshop is an art form, and this chapter gives you some of the ins and outs that can
help you master this fine art.
Chapter 13, “Creating and Editing Type”—Type attributes can now be changed in
Photoshop to such an extent that you very rarely have a need to use a page layout program
for every job that requires superimposed type. This chapter helps you take control over that power.
Chapter 14, “Hacking Camera Raw”—For something classed as a plug-in, Camera
Raw is a very deep application, and this chapter enables you to dig into its depths.
Chapter 15, “Automating Tasks”—Using actions to automate tasks is one key way to
optimize your use of Photoshop. This chapter shows you how.
Chapter 16,“Outputting to Print”—Outputting to print can be a tricky business. All
the hard work you put into color correcting, adjusting, and editing could turn into frustration
if your project doesn’t print out as expected. This chapter gives some precautions
that you can take to defend yourself and your creations as you get ready to print.
Chapter 17,“Outputting to the Web”—This chapter helps you grapple with some of
the limitations of outputting images to the Web.
Chapter 18, “Exploiting Filters and Photoshop Flexibility”—Compared to other
image editors on the market, Photoshop does not include too many auto commands or
walkthrough wizards. However, it makes up for it by giving the user the flexibility to perform
almost any task in numerous ways. The hacks discussed in this final chapter give an
indication of what is possible with this flexibility.
Appendix, “Troubleshooting”—This appendix includes some general and specific troubleshooting
advice to apply when dealing with Photoshop.

Conventions Used In This Book
Throughout the book, you’ll find four icons calling some text to your attention.
CAUTION Gives you valuable information that can help you avoid trouble. 
Read all of these carefully.
CROSS-REFERENCE These are pointers to other areas in the book or on the
Internet where you can find more information on the subject at hand.
NOTE Notes contain information pertaining to items of interest related to the subject at hand.
TIP This icon recommends best-practice methods, techniques, or tools.

Companion Web Site
Finally, you can check out this book’s companion Web site at www.wiley.com/go/extremetech. Point your browser there and you’ll find links to Web sites that offer some
cool and useful things for the Photoshop user—tutorials, scripts, keyboard shortcuts, color
management, plug-ins, and so forth—as well as other great ExtremeTech titles.


Screenshot

e-books shop

Purchase Now !
Just with Paypal



Product details
 Price
 File Size
 30,172 KB
 Pages
 483 p
 File Type
 PDF format
 ISBN-13
 ISBN-10
 978-0-7645-9788-6
 0-7645-9788-4
 Copyright
 2005 by Wiley Publishing, Inc 

Contents at a Glance
Introduction . . . . . . .  . . . vii
Chapter 1: Optimizing Performance . . . . . . . .. . . . 1
Chapter 2: Hacking the Work Area . . . . . . . .. . . . 19
Chapter 3: The Fine Art of Using Palettes. . . . . . . . . . 67
Chapter 4: Browsing with Bridge . . . . . . . . . 107
Chapter 5: Hacking Preferences and Documents. . . . . 123
Chapter 6:Working with Layers . . . . . . . . . . 137
Chapter 7: Creating and Applying Layer Styles . . . . .. 163
Chapter 8: Hacking Layer Masks. . . . . . . . . . . . 175
Chapter 9: Hacking Selection Masks . . . .. . . . . . . 189
Chapter 10: Drawing and Painting . . . . . . .. . . 211
Chapter 11: Editing,Transforming, and Retouching Images.  . . . 237
Chapter 12: Adjusting and Correcting Colors . . . . . . . 283
Chapter 13: Creating and Editing Type . . . . . . . 311
Chapter 14: Hacking Camera Raw . . . . . . . 329
Chapter 15: Automating Tasks . . . . . . . . . . . . . 349
Chapter 16: Outputting to Print . . . . . . . . . . 371
Chapter 17: Outputting to the Web . . . . .. . . . 397
Chapter 18: Exploiting Filters and Photoshop Flexibility . . . 413
Appendix: Troubleshooting . . . . .. . . . . . . 427
Index . . . . . . . . . . . . . . . . . . . 431


Table of Contents
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii
Chapter 1: Optimizing Performance
Reducing Startup Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Disabling Plug-ins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Managing Fonts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Managing Presets. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Managing Profiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Setting Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Cache Settings for Image Cache Levels . . . . . . . . . . . . . . . . . . . . . 5
Pixel Doubling for Faster Screen Redraws . . . . . . . . . . . . . . . . . . . . 6
Reducing Overheads by Reducing Histories . . . . . . . . . . . . . . . . . . . 6
Reducing Palette Thumbnail Size . . . . . . . . . . . . . . . . . . . . . . . . 8
Do You Really Need That Snapshot? . . . . . . . . . . . . . . . . . . . . . . 8
The RAM Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Assigning RAM for Optimal Performance . . . . . . . . . . . . . . . . . . . 10
Assigning Scratch Disks . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Single Scratch Disks vs. RAID . . . . . . . . . . . . . . . . . . . . . . . . . 12
16-Bits/Channel vs. 8-Bits/Channel . . . . . . . . . . . . . . . . . . . . . . . . . 13
Saving Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Saving Files in 16-Bits/Channel Mode. . . . . . . . . . . . . . . . . . . . . 15
Saving Files in CMYK Mode. . . . . . . . . . . . . . . . . . . . . . . . . . 15
Reducing Layers and Channels . . . . . . . . . . . . . . . . . . . . . . . . . 16
Maximizing File Compatibility . . . . . . . . . . . . . . . . . . . . . . . . . 16
Faster Access When Switching Applications . . . . . . . . . . . . . . . . . . . . . 17
Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Chapter 2: Hacking the Work Area
Dealing with Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Accessing Opened Documents in ImageReady. . . . . . . . . . . . . . . . . 20
Bringing a Document to the Forefront . . . . . . . . . . . . . . . . . . . . . 20
Closing All Open Documents . . . . . . . . . . . . . . . . . . . . . . . . . 21
Finding the Location of the Currently Open Document. . . . . . . . . . . . 21
Opening and Saving with a Mouse Click (Windows) . . . . . . . . . . . . . 22
Changing the Canvas Border Color . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Customizing the Checkerboard Background . . . . . . . . . . . . . . . . . . . . . 23
Lording Over the Rulers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Resetting the Zero Origin . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Specifying Ruler Units in the Document Window . . . . . . . . . . . . . . . 26
Using Guides and Grids . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Creating . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Moving . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Clearing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Hiding. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Locking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Customizing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Smart Guides . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Showing/Hiding Extras by Using Keyboard Shortcuts . . . . . . . . . . . . . . . . 30
Viewing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Viewing Actual Pixels, Not Interpolated . . . . . . . . . . . . . . . . . . . . 32
Alpha/Spot Channel Info . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Document Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Using an Action to View Full Screen Mode . . . . . . . . . . . . . . . . . . 35
Using Keyboard Shortcuts to View Full Screen . . . . . . . . . . . . . . . . 36
Using the Zoom Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Using the Hand Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Working on the Edges of a Document . . . . . . . . . . . . . . . . . . . . . 37
Multiple Views. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Scrolling and Zooming Multiple Views . . . . . . . . . . . . . . . . . . . . 37
Tiling Multiple Windows. . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Colorizing and Hiding Menu Items for Easier Scanning . . . . . . . . . . . . . . . 39
Hiding Menu Items. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Managing the Palettes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Regrouping and Docking . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Reordering in the Palette Well . . . . . . . . . . . . . . . . . . . . . . . . . 41
Hiding/Showing Quickly . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Organizing Content in the Preset Palettes . . . . . . . . . . . . . . . . . . . 42
Changing the Location of the Options Bar . . . . . . . . . . . . . . . . . . . . . . 43
Entering Values in Text Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Increasing and Decreasing Values by Using Keys . . . . . . . . . . . . . . . . 44
Increasing and Decreasing Values by Scrubbing . . . . . . . . . . . . . . . . 44
Working with the Color Picker . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Selecting a Color Picker . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Choosing a Color Picker Mode. . . . . . . . . . . . . . . . . . . . . . . . . 46
Selecting Colors from Libraries. . . . . . . . . . . . . . . . . . . . . . . . . 47
Viewing a Color Gamut Warning . . . . . . . . . . . . . . . . . . . . . . . 48
Working with Color Samplers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Creating, Moving, and Deleting Color Samplers . . . . . . . . . . . . . . . . 50
Hiding and Showing Color Samplers. . . . . . . . . . . . . . . . . . . . . . 51
Specifying Color Sampler Info Display Option . . . . . . . . . . . . . . . . 51
Changing the Quick Mask Color Overlay Options . . . . . . . . . . . . . . . . . . 52
Specifying Tool Cursors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Specifying Gamut Warning’s Overlay Color and Opacity . . . . . . . . . . . . . . 55
Noting the Magic Wand Tool and Eyedropper Connection . . . . . . . . . . . . . 58
Image Interpolation Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Setting the Default Image Interpolation Method . . . . . . . . . . . . . . . 59
Resetting Default Settings in Dialog Boxes . . . . . . . . . . . . . . . . . . . . . . 60
Resetting All Warnings in Dialog Boxes . . . . . . . . . . . . . . . . . . . . . . . 60
Resetting Foreground and Background Colors to Default . . . . . . . . . . . . . . 61
Customizing Keyboard Shortcuts . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Finding the Install Folder’s Location Quickly. . . . . . . . . . . . . . . . . . . . . 63
Customizing and Saving Your Very Own Workspace . . . . . . . . . . . . . . . . . 64
Accessing Tutorials,Tips and Tricks from the Welcome Screen . . . . . . . . . . . 65
Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Chapter 3: The Fine Art of Using Palettes
Brushes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Preserving New Brush Presets . . . . . . . . . . . . . . . . . . . . . . . . . 68
Previewing a Brush Stroke in Brush Presets . . . . . . . . . . . . . . . . . . 68
Rearranging Brushes in the Brushes Palette . . . . . . . . . . . . . . . . . . 69
Showing the Pop-Up Brushes Palette Temporarily . . . . . . . . . . . . . . . 70
Channels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Creating Alpha Channels . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Creating Spot Channels. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Saving Selections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Combining Selections. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Splitting and Merging Channels . . . . . . . . . . . . . . . . . . . . . . . . 75
Color . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Cycling through the Available Spectrums . . . . . . . . . . . . . . . . . . . 75
Dynamic Color Sliders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Curves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Working in the Curves Dialog Box . . . . . . . . . . . . . . . . . . . . . . . 76
Customizing the Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Awakening the Input and Output Text Fields . . . . . . . . . . . . . . . . . 78
Placing Anchor Points without Modifying the Curve . . . . . . . . . . . . . 78
Cycling through the Anchor Points on a Curve (Mac OS). . . . . . . . . . . 79
Moving Anchor Points without Using the Mouse . . . . . . . . . . . . . . . 79
Selecting Anchor Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Deleting Anchor Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
Creating Freeform Curves with the Arbitrary Map Tool . . . . . . . . . . . . 80
Using the Eyedroppers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
Undoing Curve Moves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Histogram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Evaluating Images . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Viewing Histograms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Creating a New Snapshot Automatically . . . . . . . . . . . . . . . . . . . 89
Allowing Nonlinear History . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Showing New Snapshot Dialog Box Automatically . . . . . . . . . . . . . . 90
Making Layer Visibility Changes Undoable . . . . . . . . . . . . . . . . . . 90
Purging Histories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Info. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Layers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Locking and Unlocking Layers . . . . . . . . . . . . . . . . . . . . . . . . . 94
Adding Color to Layer Tiles . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Specifying Palette Thumbnails, Icons, and Masks . . . . . . . . . . . . . . . 96
Levels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Input Controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Output Controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Clipping Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Navigator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Swatches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
Tool Presets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Defining a New Tool Preset . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Sorting Saved Tool Presets. . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
Chapter 4: Browsing with Bridge
Viewing from Bridge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
Launching Bridge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
Viewing Full, Compact, or Ultra-Compact Mode . . . . . . . . . . . . . . 108
Customizing Thumbnail Views . . . . . . . . . . . . . . . . . . . . . . . . 109
Customizing and Saving Bridge Views . . . . . . . . . . . . . . . . . . . . 110
Slideshow Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Managing Files with Bridge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Applying Camera Raw Settings . . . . . . . . . . . . . . . . . . . . . . . . 112
Opening Files from Bridge . . . . . . . . . . . . . . . . . . . . . . . . . . 113
Opening Raw Files in Bridge or Photoshop . . . . . . . . . . . . . . . . . 114
Rating and Labeling Files for Easier Identification . . . . . . . . . . . . . . 115
Finding Files and Saving Searches . . . . . . . . . . . . . . . . . . . . . . 117
Creating and Applying Keywords to Files. . . . . . . . . . . . . . . . . . . 118
Appending and Replacing Metadata . . . . . . . . . . . . . . . . . . . . . 119
Batch Renaming Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
Viewing Quicker Previews from a CD. . . . . . . . . . . . . . . . . . . . . . . . 121
Deleting the Preferences File. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
Chapter 5: Hacking Preferences and Documents
Hacking Prefs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
Restoring Prefs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
Changing Scratch Disks and Plug-Ins at Launch Time . . . . . . . . . . . 124
Specifying Update Prefs . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
Installing Plug-Ins into a Safe Folder . . . . . . . . . . . . . . . . . . . . . 125
Hacking Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Specifying Default Resolution for New Preset Documents . . . . . . . . . . 126
Specifying Document Width in Columns. . . . . . . . . . . . . . . . . . . 126
Matching New Document to Existing Document . . . . . . . . . . . . . . 127
Finding the Center of a Document . . . . . . . . . . . . . . . . . . . . . . 127
Duplicating Documents in ImageReady on the Fly. . . . . . . . . . . . . . 128
Comparing Documents for Differences . . . . . . . . . . . . . . . . . . . . 128
Opening a Composite Version of a Layered Document. . . . . . . . . . . . 130
Adding Canvas Size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
Adding Text and Audio Annotations . . . . . . . . . . . . . . . . . . . . . 131
Saving Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
Failsafe Way of Including a Background Layer . . . . . . . . . . . . . . . . 132
Saving in Large Document Format . . . . . . . . . . . . . . . . . . . . . . 133
Password Protecting Files . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
Appending File Extensions Automatically . . . . . . . . . . . . . . . . . . 133
Saving Previews . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
Reverting an Accidentally Saved Document . . . . . . . . . . . . . . . . . 134
Removing Camera (EXIF) Metadata . . . . . . . . . . . . . . . . . . . . . 135
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
Chapter 6: Working with Layers
Creating Layers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
Above or Below Current Layer . . . . . . . . . . . . . . . . . . . . . . . . 138
Background Layer from a Normal Layer . . . . . . . . . . . . . . . . . . . 138
Single Layer from Multiple Layers . . . . . . . . . . . . . . . . . . . . . . 138
Adjustment Layers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
Groups from Multiple Layers . . . . . . . . . . . . . . . . . . . . . . . . . 140
Smart Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
Layer Comps. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
Managing Layers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
Showing/Hiding Multiple Layers . . . . . . . . . . . . . . . . . . . . . . . 144
Renaming Layers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
Adding Color to Layer Tiles. . . . . . . . . . . . . . . . . . . . . . . . . . 145
Unlocking a Background Layer . . . . . . . . . . . . . . . . . . . . . . . . 146
Protecting Layer Content . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
Selecting Layers and Groups . . . . . . . . . . . . . . . . . . . . . . . . . 146
Selecting Layers Automatically . . . . . . . . . . . . . . . . . . . . . . . . 147
Moving Layers Up and Down the Stack . . . . . . . . . . . . . . . . . . . 148
Linking Layers and Groups . . . . . . . . . . . . . . . . . . . . . . . . . . 148
Unlinking Single Layers . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
Editing Layers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
Aligning and Distributing Layer Content . . . . . . . . . . . . . . . . . . 150
Rasterizing Layers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
Changing Fill and Opacity . . . . . . . . . . . . . . . . . . . . . . . . . . 152
Copying and Pasting All Visible Layers . . . . . . . . . . . . . . . . . . . . 152
Merging Layers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
Blending Layers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
Cycling through the Layer Blend Modes . . . . . . . . . . . . . . . . . . . 154
Using the Apply Image Command . . . . . . . . . . . . . . . . . . . . . . 155
Using Blend If . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
Excluding Channels when Blending . . . . . . . . . . . . . . . . . . . . . 159
Importing and Exporting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
Importing Layers from Another Document. . . . . . . . . . . . . . . . . . 160
Exporting Layers as Separate Files . . . . . . . . . . . . . . . . . . . . . . 160
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
Chapter 7: Creating and Applying Layer Styles
Creating, Saving, and Organizing Styles . . . . . . . . . . . . . . . . . . . . . . . 164
Applying, Clearing, and Converting Styles . . . . . . . . . . . . . . . . . . . . . 166
Applying to Another Layer Quickly. . . . . . . . . . . . . . . . . . . . . . 166
Applying Same Style to Multiple Layers . . . . . . . . . . . . . . . . . . . 167
Applying a Rollover Style . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
Clearing and Hiding Styles . . . . . . . . . . . . . . . . . . . . . . . . . . 168
Converting Styles into Layers . . . . . . . . . . . . . . . . . . . . . . . . . 169
Applying and Creating Custom Contours . . . . . . . . . . . . . . . . . . . . . . 169
Defining Default Global Light for All Documents . . . . . . . . . . . . . . . . . 171
Moving and Repositioning Effects . . . . . . . . . . . . . . . . . . . . . . . . . . 171
Scaling Layer Styles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
Chapter 8: Hacking Layer Masks
Creating, Viewing, and Applying Masks. . . . . . . . . . . . . . . . . . . . . . . 176
Grayscale Masks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
Vector Masks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
Luminosity-Based Masks . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
Clipping Masks from Layer Transparency. . . . . . . . . . . . . . . . . . . 180
Viewing Layer Masks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
Viewing in the Document Window . . . . . . . . . . . . . . . . . . . . . . 181
Applying Existing Masks to Other Layers . . . . . . . . . . . . . . . . . . 182
Editing and Modifying Masks . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183
Using Painting Tools. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183
Contracting and Spreading Masks . . . . . . . . . . . . . . . . . . . . . . 184
Changing the Opacity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
Via Alpha Channel or Selection . . . . . . . . . . . . . . . . . . . . . . . . 185
Modifying Vector Masks . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
Transforming Masks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
Importing Elements and Preserving Layer Mask . . . . . . . . . . . . . . . 187
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
Chapter 9: Hacking Selection Masks
Creating and Saving Selection Masks . . . . . . . . . . . . . . . . . . . . . . . . 189
Creating Circles and Squares Using Marquee Tools . . . . . . . . . . . . . 190
Color-Based Masks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
Luminosity-Based Masks . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
Channel-Based Masks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
Defining a Selection from an Exact Center Point . . . . . . . . . . . . . . . 195
Defining an Aspect Ratio for a Selection . . . . . . . . . . . . . . . . . . . 196
Irregular Selections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196
Selection from a Work Path . . . . . . . . . . . . . . . . . . . . . . . . . . 198
Feathered Selections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198
Saving a Selection with a File . . . . . . . . . . . . . . . . . . . . . . . . . 201
Modifying Selections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202
Using Painting Tools and Filters. . . . . . . . . . . . . . . . . . . . . . . . 202
Warp Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204
Preventing Rounded Corners when Expanding . . . . . . . . . . . . . . . 204
Selection Mask Quick Hacks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209
Chapter 10: Drawing and Painting
Drawing Paths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
Creating a Path from a Selection . . . . . . . . . . . . . . . . . . . . . . . 215
Converting Individual Path Components to a Selection . . . . . . . . . . . 215
Avoiding Disappearing Paths . . . . . . . . . . . . . . . . . . . . . . . . . 216
Creating Clipping Paths . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
Creating Compound Clipping Paths . . . . . . . . . . . . . . . . . . . . . 216
Previewing How Closely Your Clipping Paths Fit . . . . . . . . . . . . . . 218
Moving,Transforming, and Stroking Paths . . . . . . . . . . . . . . . . . . . . . 219
Moving Paths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220
Moving a Path in Tandem with Layer Content . . . . . . . . . . . . . . . . 221
Combining Path Components. . . . . . . . . . . . . . . . . . . . . . . . . 221
Aligning and Distributing Paths. . . . . . . . . . . . . . . . . . . . . . . . 222
Transforming Clipping Paths to Fit Resized Layer . . . . . . . . . . . . . . 223
Stroking Paths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
Stroking Paths with Gradients or Images . . . . . . . . . . . . . . . . . . . 224
Creating and Editing Shapes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
Combining Existing Shape Layers . . . . . . . . . . . . . . . . . . . . . . 226
Applying Gradients to Shape Layers . . . . . . . . . . . . . . . . . . . . . 227
Drawing Arrow Heads and Tails . . . . . . . . . . . . . . . . . . . . . . . 228
Painting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
Brush Shape Dynamics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
Creating Brush Tip Shapes . . . . . . . . . . . . . . . . . . . . . . . . . . 233
Avoiding Jaggy-Edged Brush Strokes . . . . . . . . . . . . . . . . . . . . . 233
Painting Dotted Straight Lines . . . . . . . . . . . . . . . . . . . . . . . . 234
Painting Quick Hacks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
Chapter 11: Editing, Transforming, and Retouching Images
Cropping, Rotating, and Positioning Layer Content. . . . . . . . . . . . . . . . . 237
Crop Tool Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237
Defining the Crop from the Center of a Document . . . . . . . . . . . . . 241
Preventing the Crop Tool from Snapping to the Edge . . . . . . . . . . . . 241
Using the Rectangular Marquee and Trim to Crop . . . . . . . . . . . . . . 243
Cropping and Straightening Photos Automatically . . . . . . . . . . . . . . 243
Straightening Crooked Images . . . . . . . . . . . . . . . . . . . . . . . . 245
Rotating Layer Content Incrementally . . . . . . . . . . . . . . . . . . . . 249
Matching the Rotation of Two Scans . . . . . . . . . . . . . . . . . . . . . 249
Aligning and Distributing Content on Multiple Layers . . . . . . . . . . . 251
Centering Layer Content . . . . . . . . . . . . . . . . . . . . . . . . . . . 252
Revealing and Deleting Hidden Data . . . . . . . . . . . . . . . . . . . . . 252
Extracting Image Content from Backgrounds . . . . . . . . . . . . . . . . . . . . 254
The Eraser Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254
The Magic Eraser Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255
The Background Eraser Tool . . . . . . . . . . . . . . . . . . . . . . . . . 255
The Extract Filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
Transforming Images . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258
Resizing and Resampling Images . . . . . . . . . . . . . . . . . . . . . . . 258
Correcting Perspective . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259
Warping Layer Content Using Nodal Points . . . . . . . . . . . . . . . . . 261
Correcting Distortion Caused by a Taking Lens . . . . . . . . . . . . . . . 262
Retouching Images . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264
Filling in Dust Spots and Scratch Marks . . . . . . . . . . . . . . . . . . . 264
Reducing Color and Luminosity Noise . . . . . . . . . . . . . . . . . . . . 267
Dodging and Burning Nondestructively. . . . . . . . . . . . . . . . . . . . 269
Smoothing Skin Tones and Wrinkles . . . . . . . . . . . . . . . . . . . . . 270
Correcting Unwanted Highlights on Faces . . . . . . . . . . . . . . . . . . 271
Sharpening . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
Using Unsharp Mask . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
Using Smart Sharpen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276
A Flexible Method for Sharpening Images . . . . . . . . . . . . . . . . . . 277
An Alternative Method for Sharpening Images. . . . . . . . . . . . . . . . 280
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282
Chapter 12: Adjusting and Correcting Colors
Using Profiles. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284
Color Settings and Working Space . . . . . . . . . . . . . . . . . . . . . . 285
Creating Custom CMYK Separation Settings . . . . . . . . . . . . . . . . 289
Checking Files for Embedded Profiles . . . . . . . . . . . . . . . . . . . . 290
Viewing Gamut Warnings for Custom Profiles . . . . . . . . . . . . . . . . 291
Removing Colorcasts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293
Three Ways to Correct a Colorcast . . . . . . . . . . . . . . . . . . . . . . 293
Using Auto Color Manually . . . . . . . . . . . . . . . . . . . . . . . . . . 297
Correcting Images Exposed under Wrong Light Source . . . . . . . . . . . 298
Saturating and Desaturating Images . . . . . . . . . . . . . . . . . . . . . . . . . 300
Saturating Colors Selectively . . . . . . . . . . . . . . . . . . . . . . . . . 300
Ten Ways of Desaturating an Image . . . . . . . . . . . . . . . . . . . . . 301
Replacing and Matching Colors . . . . . . . . . . . . . . . . . . . . . . . . . . . 303
Replacing Selected Colors in an Image . . . . . . . . . . . . . . . . . . . . 303
Selectively Turning Elements to Black and White . . . . . . . . . . . . . . 305
Applying a Multitone Effect to an Image . . . . . . . . . . . . . . . . . . . 306
Matching Color between Two Images. . . . . . . . . . . . . . . . . . . . . 307
Color Adjusting Quick Hacks . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309
Chapter 13: Creating and Editing Type
Creating Type. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311
Specifying Paragraph Type Bounding Box Size . . . . . . . . . . . . . . . . 312
Exiting Type Mode Gracefully . . . . . . . . . . . . . . . . . . . . . . . . 313
Typing on a Path . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314
Enclosing Type Inside a Custom Shape . . . . . . . . . . . . . . . . . . . . 315
Editing and Modifying Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316
Changing Type Attributes across Multiple Layers . . . . . . . . . . . . . . 316
Editing Type Using Keyboard Shortcuts . . . . . . . . . . . . . . . . . . . 316
Kerning and Tracking Type . . . . . . . . . . . . . . . . . . . . . . . . . . 317
Increasing and Decreasing Leading . . . . . . . . . . . . . . . . . . . . . . 318
Converting a Font to a Shape . . . . . . . . . . . . . . . . . . . . . . . . . 319
Applying Filters to Vector Type . . . . . . . . . . . . . . . . . . . . . . . . 320
Restoring Rotated Type Back to Horizontal . . . . . . . . . . . . . . . . . 321
Inserting a Picture into Type . . . . . . . . . . . . . . . . . . . . . . . . . 322
Centering Type on a Layer . . . . . . . . . . . . . . . . . . . . . . . . . . 323
Applying Roman Hanging Punctuation. . . . . . . . . . . . . . . . . . . . 324
Creating Grungy Type. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324
Type-Related Quick Hacks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327
Chapter 14: Hacking Camera Raw
Using the Camera Raw Dialog Box Effectively . . . . . . . . . . . . . . . . . . . 330
Camera Raw Preferences and Settings . . . . . . . . . . . . . . . . . . . . 341
Managing Caches and Sidecar Files . . . . . . . . . . . . . . . . . . . . . . 343
Opening and Saving Raw Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . 344
Using Image Processor to Batch Process Raw Files . . . . . . . . . . . . . . 345
Camera Raw Quick Hacks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 345
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347
Chapter 15: Automating Tasks
Creating, Saving, and Playing Actions . . . . . . . . . . . . . . . . . . . . . . . . 349
Creating an Action. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 350
Including a Safety Net in a New Action. . . . . . . . . . . . . . . . . . . . 355
An Action for All Image Dimensions . . . . . . . . . . . . . . . . . . . . . 356
Including Conditionals (ImageReady). . . . . . . . . . . . . . . . . . . . . 356
Converting History Steps into Action Steps (ImageReady) . . . . . . . . . 357
Creating Unconventional Actions . . . . . . . . . . . . . . . . . . . . . . . 358
Saving Custom Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 358
Saving Actions as Droplets . . . . . . . . . . . . . . . . . . . . . . . . . . 359
Saving Actions as Text Files . . . . . . . . . . . . . . . . . . . . . . . . . . 361
Playing Back Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 361
Playing Actions in Button Mode . . . . . . . . . . . . . . . . . . . . . . . 362
Playing Automatically . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 362
Using Actions in Batch Mode . . . . . . . . . . . . . . . . . . . . . . . . . 364
Actions versus Scripting . . . . . . . . . . . . . . . . . . . . . . . . . . . . 365
Editing and Managing Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . 367
Changing Recorded Values and Adding Steps . . . . . . . . . . . . . . . . 367
Editing Droplets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 368
Loading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 368
Furling/Unfurling Actions the Easy Way . . . . . . . . . . . . . . . . . . . 369
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 369
Chapter 16: Outputting to Print
Preparing Images for Printing . . . . . . . . . . . . . . . . . . . . . . . . . . . . 372
Soft Proofing Images in Photoshop . . . . . . . . . . . . . . . . . . . . . . 372
Sharpening Images . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373
Setting the Shadow and Highlight End Points . . . . . . . . . . . . . . . . 374
Avoiding Posterization and Banding . . . . . . . . . . . . . . . . . . . . . 376
Printing Vector Data at Printer Resolution . . . . . . . . . . . . . . . . . . 378
Four-Color Grayscale Printing . . . . . . . . . . . . . . . . . . . . . . . . 379
Using Spot Colors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 382
Using a PDF/X Standard Workflow. . . . . . . . . . . . . . . . . . . . . . 384
Rotating Images—a Ripping Question . . . . . . . . . . . . . . . . . . . . 386
Printing from Photoshop. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 386
Print with Preview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 387
Printing Multiple Images on a Single Page . . . . . . . . . . . . . . . . . . 390
Printing Selected Channels . . . . . . . . . . . . . . . . . . . . . . . . . . 392
Printing a Folder Full of Images . . . . . . . . . . . . . . . . . . . . . . . . 393
Printing Quick Hacks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 394
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396
Chapter 17: Outputting to the Web
Editing and Preparing Images for the Web . . . . . . . . . . . . . . . . . . . . . 397
Taking the Guesswork Out of Resizing . . . . . . . . . . . . . . . . . . . . 398
Creating Irregular Shaped Image Maps . . . . . . . . . . . . . . . . . . . . 398
In-Betweening . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 400
Copying Hexadecimal Colors . . . . . . . . . . . . . . . . . . . . . . . . . 401
Blending GIFs into Backgrounds . . . . . . . . . . . . . . . . . . . . . . . 402
Applying Weighted Optimization . . . . . . . . . . . . . . . . . . . . . . . 404
Creating Galleries and QuickTime Movies . . . . . . . . . . . . . . . . . . . . . 406
Web Photo Galleries. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406
Flash Photo Galleries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 407
QuickTime Movies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 407
Outputting to the Web Quick Hacks . . . . . . . . . . . . . . . . . . . . . . . . 408
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 412
Chapter 18: Exploiting Filters and Photoshop Flexibility
Hacking Filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 413
Applying RGB Filters to CMYK Files . . . . . . . . . . . . . . . . . . . . 414
Reapplying Filter Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . 415
Filtering a Layer Nondestructively . . . . . . . . . . . . . . . . . . . . . . 415
Placing a Lens Flare Precisely . . . . . . . . . . . . . . . . . . . . . . . . . 416
Creating Seamless Patterns . . . . . . . . . . . . . . . . . . . . . . . . . . 417
Working with the Lighting Effects Filter . . . . . . . . . . . . . . . . . . . 418
The Smart Way to Find Edges . . . . . . . . . . . . . . . . . . . . . . . . 420
Taking Advantage of Photoshop Flexibility . . . . . . . . . . . . . . . . . . . . . 420
Creating Printable Grids. . . . . . . . . . . . . . . . . . . . . . . . . . . . 420
Creating Space Age Grids . . . . . . . . . . . . . . . . . . . . . . . . . . . 421
Creating a Grayscale Step Wedge . . . . . . . . . . . . . . . . . . . . . . . 422
Creating Backgrounds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 424
Creating Fancy Photo Frames . . . . . . . . . . . . . . . . . . . . . . . . . 425
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 426
Appendix: Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . 427
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 431

  ●▬▬▬▬▬❂❂❂▬▬▬▬▬●
●▬▬❂❂▬▬●
●▬❂▬●

═════ ═════

Loading...
DMCA.com Protection Status