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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Editor information
Rights 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
DOI: https://doi.org/10.1007/978-1-4302-0298-1_6
Publisher Name: Apress
Print ISBN: 978-1-59059-856-6
Online ISBN: 978-1-4302-0298-1
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books