In-Portal Issue Tracker

Welcome to the In-Portal Open Source CMS Issue Tracker! This is a central management / tracking tool for all types of tasks / issues / bugs for the In-Portal Project. Before reporting any issues, please make sure to read the Guide into Issue Tracker and How to Properly Test and Report Bugs!

Viewing Issue Simple Details Jump to Notes ] Wiki ]  Related Changesets ] View Advanced ] Issue History ] Print ]
ID Category Type Reproducibility Date Submitted Last Update
0000028 [In-Portal CMS] Front End feature request N/A 2009-05-23 03:49 2009-10-03 07:56
Reporter alex View Status public Project Name In-Portal CMS
Assigned To alex Developer
Priority normal Resolution fixed Fixed in Version 5.0.0
Status closed Product Version Target Version 5.0.0
Time EstimateNo estimate
Summary 0000028: Add crop ability to ImageHelper class
Description Add ability to crop image during resizing.

Invocation syntax:
<inp2:sample-prefix_Field name="ImageField" format="resize:100x200;crop:c|c"/>

Invocation syntax for catalog item/category images:
<inp2:prefix_Image render_as="article_image" thumbnail="1" DefaultImage="img/no_article_image.gif" Crop="c|c" MaxWidth="143" MaxHeight="124" DefaultWidth="143" />
<inp2:prefix_Image render_as="article_image" thumbnail="1" DefaultImage="img/no_article_image.gif" Crop="1" MaxWidth="143" MaxHeight="124" DefaultWidth="143" />


Description:
Resize image (keeping proportions) to maximal possible size based on given (width - 100, height - 200), then crop rectangle area of given size (width - 100, height - 200) from center of resized image.

Crop format part accepts 2 arguments separated by "|": "crop:<x_position>|<y_position>". Positive value is crop offset from left/top. Negative value is crop offset from right/bottom. "C"/"c" is centered horizontally or vertically.

Additional Information
Tags No tags attached.
Reference
Change Log Message
Estimate Points 0
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
User avatar (0000143)
alex (manager)
2009-07-19 06:48

Fix committed to RC branch. Commit Message:

Fixes 0000028: Add crop ability to ImageHelper class
User avatar (0000645)
administrator (administrator)
2009-10-03 07:56

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

- Related Changesets
In-Portal CMS: RC r11939
Timestamp: 2009-07-20 13:08:55
Author: alex
Details ] Diff ]
1. optimized code, when "fill", "crop" and "wm" formats could be used simultaneously.
2. added code, that uses target size (width/height), when appropriate maximal possible size (width/height) is not specified in format string.
3. Bug 0000131: Ability to fill margins left after image resize with given color.
4. Bug 0000028: Add crop ability to ImageHelper class.
mod - /in-portal/branches/RC/core/units/general/helpers/image_helper.php Diff ] File ]
mod - /in-portal/branches/RC/core/units/images/image_tag_processor.php Diff ] File ]
In-Portal CMS: RC r11920
Timestamp: 2009-07-19 06:48:18
Author: alex
Details ] Diff ]
Fixes 0000028: Add crop ability to ImageHelper class
mod - /in-portal/branches/RC/core/units/general/helpers/image_helper.php Diff ] File ]
mod - /in-portal/branches/RC/core/units/images/image_tag_processor.php Diff ] File ]

- Issue History
Date Modified Username Field Change
2009-10-03 07:56 administrator Note Added: 0000645
2009-10-03 07:56 administrator Status resolved => closed
2009-07-20 13:08 alex Changeset attached RC r11939
2009-07-20 09:27 alex Description Updated View Revisions
2009-07-19 06:48 alex Fixed in Version => 5.0.0
2009-07-19 06:48 alex Target Version 5.1.0 => 5.0.0
2009-07-19 06:48 alex Note Added: 0000143
2009-07-19 06:48 alex Status active => resolved
2009-07-19 06:48 alex Resolution open => fixed
2009-07-19 06:48 alex Assigned To => alex
2009-07-19 06:48 alex Changeset attached RC r11920
2009-06-07 06:49 alex Reproducibility @70@ => N/A
2009-05-25 18:23 Dmitry Target Version => 5.1.0
2009-05-23 03:49 alex Category (No Category) => Front End
2009-05-23 03:49 alex New Issue



Web Development by Intechnic
In-Portal Open Source CMS
In-Portal Open Source CMS
Copyright © 2000 - 2009 MantisBT Group

Powered by Mantis Bugtracker