Ability to fill margins left after image resize with given color

Components

Labels

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"/>

Context Information

None

Additional information (do not use)

None

Activity

Former user 
October 3, 2009 at 12:56 PM

Closing issues from 5.0.0 version, because version was already released.

Alex 
July 20, 2009 at 2:19 PM

Fix committed to [b]RC branch/b. Commit Message:

Fixes #0000131: Ability to fill margins left after image resize with given color

Fixed

Details

Priority

Assignee

Reporter

External issue ID

External issue URL

Fix versions

Patch Instructions

Patches must be submitted through Phabricator.

Created July 20, 2009 at 2:16 PM
Updated December 29, 2024 at 9:32 PM
Resolved October 3, 2009 at 12:56 PM