[ 
https://issues.apache.org/jira/browse/CLEREZZA-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12878539#action_12878539
 ] 

Reto Bachmann-Gmür commented on CLEREZZA-232:
---------------------------------------------

The current resizing makes the image fir into the specified boundaries. I think 
this is a useful feature, as depending on the image adding space in one 
dimension is better than cropping.

I've already been discussing that the service to retrieve a thumbnail must be 
changed to deliver the smallest representation that doesn't have to be scaled 
up (i.e. not scaled or scaled down) in a browser in order to be of the right 
size.

For AlternativeRepresentationGenerator I think that the current "fit-into-box" 
feature shall still be available, i.e. that proportional resizing shall not 
just happen when only one dimension is specified.

So I suggest we have an extended syntax for the format specification to allow 
to specified if, and on which sides images shall be cropped. An idea would be 
to use + and - signs before specifying a size to indicate crop left/right or 
top/bottom respectively.

> org.apache.clerezza.platform.content.representations imageprocessor: 
> AlternativeRepresentationGenerator/Imageprocessor should crop images if width 
> and height is defined
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLEREZZA-232
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-232
>             Project: Clerezza
>          Issue Type: Improvement
>            Reporter: Tsuyoshi Ito
>            Priority: Critical
>
> the service property resolution is defined as: 
> Specifies the resolutions of alternative representations in the format 
> [width]x[height]. Multiple resolutions are separated by comma (e.g. 
> 100x100,30x30) (resolutions)
> What the service does right now is; the images are proportionally resized to 
> a thumbnail
> It is necessary for image galleries that images have an exact size (e.g. 
> 120x90) therefore the images have to be cropped to generate a thumbnail.
> i suggest the following changes:
> format  [width]x[height], if  [width] or [height] is "0" than the images will 
> be resized proportionally otherwise cropped to the defined size (e.g. 300x0 
> := proportionally resized, 120x90 := resized and cropped image to size 120x90)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to