Skip to main content

Case Study: A Photo Cropping and Resizing Tool

  • Chapter

Abstract

Now that you have several new methods in your ADS library, let’s create the beginnings of a nice WYSIWYG tool that will allow you to crop and resize photos. Before you get too excited, I should mention that it’s not actually possible to crop and resize a photo with your DOM script. The complete tool will require you to write a server-side portion capable of resizing the actual image file. Here, you’ll simulate the cropping and resizing actions in the browser so that once it looks the way you want, you can submit the new information to the server and do the actual modifications. This chapter will set up the tool with the basic functionality you’ll need and will resemble Figure 6-1.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   49.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Editor information

Jeffrey Sambells Aaron Gustafson

Rights and permissions

Reprints and permissions

Copyright information

© 2007 Jeffrey Sambells, Aaron Gustafson

About this chapter

Cite this chapter

(2007). Case Study: A Photo Cropping and Resizing Tool. In: Sambells, J., Gustafson, A. (eds) AdvancED DOM Scripting. Apress. https://doi.org/10.1007/978-1-4302-0298-1_6

Download citation

Publish with us

Policies and ethics