You are here

automated-crop-summary.html.twig in Automated Crop 8

Default theme implementation for a summary of an image automated_crop effect.

Available variables:

  • data: The current configuration for this automated_crop effect, including:

    • width: The width of the crop area to extract image.
    • height: The height of the crop area to extract image.
    • min_width : The minimum width of crop area.
    • min_height : The minimum height of crop area.
    • max_width : The maximum width of crop area.
    • max_height : The maximum height of crop area.
    • aspect_ratio : The aspect ratio of crop area to enforce, original aspect ratio of image.
  • effect: The effect information, including:
    • id: The effect identifier.
    • label: The effect name.
    • description: The effect description.

File

templates/automated-crop-summary.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a summary of an image automated_crop effect.
  5. *
  6. * Available variables:
  7. * - data: The current configuration for this automated_crop effect, including:
  8. * - width: The width of the crop area to extract image.
  9. * - height: The height of the crop area to extract image.
  10. * - min_width : The minimum width of crop area.
  11. * - min_height : The minimum height of crop area.
  12. * - max_width : The maximum width of crop area.
  13. * - max_height : The maximum height of crop area.
  14. * - aspect_ratio : The aspect ratio of crop area to enforce, original aspect ratio of image.
  15. * - effect: The effect information, including:
  16. * - id: The effect identifier.
  17. * - label: The effect name.
  18. * - description: The effect description.
  19. *
  20. * @ingroup themeable
  21. */
  22. #}
  23. {% if data.width and data.height -%}
  24. Size of crop area : {{ data.width|e }}×{{ data.height|e }}
  25. {%- else -%}
  26. Enforce original aspect ratio onto : {{ data.aspect_ratio|e }}
  27. {%- endif %}