D7 Image.Key

7,247 views

Published on

Slides from DrupalCamp Chicago 2009 presentation about Image handling in Drupal 7 by Joe Shindelar (eojthebrave)

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
7,247
On SlideShare
0
From Embeds
0
Number of Embeds
5,284
Actions
Shares
0
Downloads
10
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Drag & Drop re-order
    First listed image used in teasers
  • Scale and crop achieves the target aspect ratio by cropping the original image
    * equally on both sides
  • Also mention hook_image_style_delete()
  • Also mention hook_image_style_delete()
  • Also mention hook_image_style_delete()
  • Also mention hook_image_style_delete()
  • D7 Image.Key

    1. 1. Images in Drupal core Joe Shindelar (eojthebrave) joe@triangleparkcreative.com
    2. 2. What this is not • hook_image_toolkit() • file.module • PHP Stream Wrappers
    3. 3. Goals • Images in core • Overview of image handling UI • Anatomy of an image generation request • Integrating with image.module
    4. 4. Images in Core
    5. 5. Images in Core Drupal 6 CCK FileField ImageField ImageCache ImageAPI
    6. 6. Images in Core Drupal 6 Drupal 7 CCK An image FileField ImageField ImageCache ImageAPI
    7. 7. Images in Core • Image Fields • Image Styles • Image Effects
    8. 8. Image Fields
    9. 9. Image Fields
    10. 10. Image Fields
    11. 11. Image Styles Configuration and Modules > Image Styles
    12. 12. Image Styles
    13. 13. Image Styles
    14. 14. Image Effects • Crop • Desaturate • Resize • Rotate • Scale • Scale and crop
    15. 15. Image Effects
    16. 16. Generating Images theme(‘image_style’, $variables) <img src=”image/generate/thumbnail/public/field/image/image.jpg” /> <img src=”image/generate/[style_name]/[scheme]/[path]” />
    17. 17. Generating Images 2 1
    18. 18. Image hooks • hook_image_default_styles() • hook_image_style_save() • hook_image_style_delete() • hook_image_styles_alter() • hook_image_style_flush() • hook_image_effect_info()
    19. 19. Image hooks: hook_image_default_styles()
    20. 20. Image hooks: hook_image_style_save() & hook_image_style_delete()
    21. 21. Image hooks: hook_image_style_flush()
    22. 22. Image hooks: hook_image_styles_alter()
    23. 23. Image hooks: hook_image_effect_info()
    24. 24. Recap
    25. 25. Homework •Image effect help text not displayed [#658068] •Image API documentation cleanup [#658056] •image_style_generate does not remove previously created access token [#656856]
    26. 26. Images in Drupal core Joe Shindelar (eojthebrave) joe@triangleparkcreative.com

    ×