[MGNLSTK-353] add imaging support (resize images, thumbnails, ..) Created: 25/May/09  Updated: 23/Jan/13  Resolved: 01/Jun/09

Status: Closed
Project: Magnolia Standard Templating Kit (closed)
Component/s: None
Affects Version/s: None
Fix Version/s: 1.1

Type: New Feature Priority: Major
Reporter: Philipp Bärfuss Assignee: Philipp Bärfuss
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MGNLSTK-348 DAM Support: images and videos can be... Closed
is related to MGNLSTK-359 Preview of versioned STK based conten... Closed
Template:
Acceptance criteria:
Empty

 Comments   
Comment by Philipp Bärfuss [ 25/May/09 ]

Is related to the DAM support. While the DAM support is used in general (images, flash, video) the imaging is used only for images which makes the integration a bit tricky as it is not a generic DAM integration feature.

Comment by Philipp Bärfuss [ 01/Jun/09 ]
  • variations are resolved by building a css selector
  • the first matching rule is used
  • allows to make the image size dependend on areas and body classes
  • generic ImageModel introduced
Comment by Philipp Bärfuss [ 01/Jun/09 ]

All that was a bit trickier to resolve than thought.

The problematic point is that paragraphs can be used in different situations (main or extras, wide or small main are, ...). But the image sizes are then only defined by the css (therefore, based on resulting html). The problematic point is that the paragraph have little knowledge about the html the templates generate.

I have chosen to use a approach which rebuilds that:

  • generate the css selector (full) for the image to generate
  • matches the variations against that selector

see [DEVINT:4.1 Task Image Sizes] for details.

Comment by Philipp Bärfuss [ 01/Jun/09 ]

I have added the following:

  • generic stk generator & and a specific stk parameter
  • variation which provides an image operation (configured or created based on simple properties: width, height & crop)

Therefore an STK developer has not necessary to use/understand the imaging module and the configuration is less spread.

Generated at Mon Feb 12 07:26:11 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.