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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • Blocks: ImageOp
    • None
    • Normal
    • Patch available
    • Blocks: ImageOp - 1.0.0-M1-SNAPSHOT
    • 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. ResizeOperation.patch
          3 kB
          Robin Wyles
        2. RevisedResizeOperationPatch.txt
          3 kB
          Robin Wyles
        3. cocoon-core-SitemapComponentTestCase-read-method.patch
          3 kB
          Grzegorz Kossakowski
        4. cocoon-imageop-impl-no-effects-test.patch
          16 kB
          Grzegorz Kossakowski
        5. cocoon-imageop-impl-resize-operation-and-test.patch
          11 kB
          Robin Wyles
        6. 4x2.jpg
          0.8 kB
          Robin Wyles

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: