image manipulation with coldfusion 8
play

Image Manipulation with ColdFusion 8 Presentation By Pete Freitag - PowerPoint PPT Presentation

Image Manipulation with ColdFusion 8 Presentation By Pete Freitag Foundeo Inc. Todays Agenda 1. CFIMAGE Tag 2. Image Functions 3. Advanced Image Metadata 4. Business Uses 5. Foundeos Image Effects Component Image Processing in CF8


  1. Image Manipulation with ColdFusion 8 Presentation By Pete Freitag Foundeo Inc.

  2. Today’s Agenda 1. CFIMAGE Tag 2. Image Functions 3. Advanced Image Metadata 4. Business Uses 5. Foundeo’s Image Effects Component

  3. Image Processing in CF8 • New CFIMAGE tag supports 9 operations • Over 50 new image processing functions added to CF8

  4. CFIMAGE Actions • border • captcha • convert • info • read • resize • rotate • write • writeToBrowser

  5. Example: Resize <cfimage action=”resize” source=”filePath” destination=”filePath” height=”n” width=”n”>

  6. CFIMAGE Source & Destination Attributes • An absolute server file system path • A relative path • A URL • A CFIMAGE Object Variable

  7. Example 1 Resize an Uploaded Image

  8. What if... • You only wanted to resize big images?

  9. Image Info • <cfimage action=”info” source=”file” structName=”imgInfo”>

  10. Example 2: Image Info

  11. Example 3: Conditionally Resize an Image.

  12. CAPTCHA • Whatcha talkin about? • C ompletely A utomated P ublic T uring test to tell C omputers and H umans A part.

  13. CAPTCHAs • Used to detect spammers • Displays hard to read text via an image • To foil OCR or image to text apps • CAPTCHAs do not meet Section 508 Accessibility standards

  14. CFIMAGE CAPTCHAs • <cfimage action=”captcha” text=”display” width=”300” height=”50”>

  15. Example 4: CAPTCHA Images generated by CFIMAGE

  16. Example 5: CAPTCHA Form Example

  17. Image Functions • Create Images from Scratch • Add Shapes & Lines to an Image • Add Text to an Image • Overlay an Image on another Image • Crop, Flip, Blur, Grayscale, Invert, Rotate • Get EXIF & IPTC Image Metadata

  18. Example 6: Building a button from scratch using Image functions.

  19. Advanced Metadata • EXIF - Exchangeable Image Format • IPTC - International Press Telecommunications Council

  20. 10 Most Useful Image Functions • ImageRead(), ImageWrite() & ImageNew() • ImageDrawText() • ImageGetWidth() & ImageGetHeight() • ImageScaleT oFit() • ImageSetAntialiasing() • ImageSetDrawingColor() & ImageSetDrawingStroke()

  21. Business Use Cases • Manipulating Product Images • Branding • Watermarks • Localization

  22. What if you wanted... • Gradients • Rounded Corners • Reflection Effect • Drop Shadows • More...

  23. Foundeo’s CFIMAGE Effects http://foundeo.com/image-effects/

  24. One more thing...

  25. Foundeo is launching 3 new Image Effects for ColdFusion today

  26. Sepia Tone

  27. Darken Image

  28. Brighten Image

  29. Demo Foundeo’s CFIMAGE Effects

  30. Pricing • Currently $39 • Price Will Increase to $49 on April 15th

  31. Questions? Thank You. Blog: http://www.petefreitag.com Company: http://foundeo.com/

Recommend


More recommend