Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-2133

Addition of "allow-enlarge" parameter to ImageOp resize operation

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Blocks: ImageOp
    • Labels:
      None
    • Urgency:
      Normal
    • Other Info:
      Patch available
    • Affects version (Component):
      Blocks: ImageOp - 1.0.0-M1-SNAPSHOT
    • Fix version (Component):
      Blocks: ImageOp - 1.0.0-M1-SNAPSHOT

      Description

      The addition of an "allow-enlarge" parameter to the resize operation allows the user to control whether an image should be enlarged by the operation.

      This new parameter is declared in the sitemap like so:

      <map:read type="imageop" src="image.jpg">
      <map:parameter name="prefix-preserve-ratio" value="true"/>
      <map:parameter name="prefix-allow-enlarge" value="false"/>
      <map:parameter name="prefix-width" value="320"/>
      <map:parameter name="prefix-height" value="240"/>
      </map:read>

        Attachments

        1. 4x2.jpg
          0.8 kB
          Robin Wyles
        2. cocoon-imageop-impl-resize-operation-and-test.patch
          11 kB
          Robin Wyles
        3. cocoon-imageop-impl-no-effects-test.patch
          16 kB
          Grzegorz Kossakowski
        4. cocoon-core-SitemapComponentTestCase-read-method.patch
          3 kB
          Grzegorz Kossakowski
        5. RevisedResizeOperationPatch.txt
          3 kB
          Robin Wyles
        6. ResizeOperation.patch
          3 kB
          Robin Wyles

          Issue Links

            Activity

              People

              • Assignee:
                grek Grzegorz Kossakowski
                Reporter:
                rob@robinwyles.com Robin Wyles
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: