Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-111

Ability to fill margins left after image resize with given color

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.0
    • Component/s: Front End
    • Labels:
      None

      Description

      All images, that user upload have different proportions and sizes and after resize this fact stays that way. When placed together such images don't look very symmetric. I propose to add new "fill" option to image helper, that will allow to specify color, that will fill margins left after image resizing, so all images will be the same size, but will different margins.

      Usage:
      1. catalog items/categories:
      <inp2:prefix_Image render_as="article_image" thumbnail="1" DefaultImage="img/no_article_image.gif" Fill="#FFFFFF" MaxWidth="143" MaxHeight="124" DefaultWidth="143" />

      2. other items:
      <inp2:prefix_Field name="ImageField" format="resize:100x200;fill:#FFDD00"/>

        Attachments

          Activity

            People

            • Assignee:
              alex Alex
              Reporter:
              alex Alex
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: