List Info

Thread: Created: (JBSEAM-1123) Constrain width or height for s:graphicImage




Created: (JBSEAM-1123) Constrain width or height for s:graphicImage
country flaguser name
United States
2007-03-29 04:19:57
Constrain width or height for s:graphicImage
--------------------------------------------

                 Key: JBSEAM-1123
                 URL: http://
jira.jboss.com/jira/browse/JBSEAM-1123
             Project: JBoss Seam
          Issue Type: Feature Request
          Components: JSF
    Affects Versions: 1.2.1.GA
            Reporter: Shane Bryzak
         Assigned To: Pete Muir
            Priority: Minor


Pete - It would be nice if s:transformImageSize could
constrain an image by either its width or height.  I have a
scenario where neither the width or height should exceed
80px, yet the ratio should be maintained.  Something along
the lines of this syntax would probably do the job but you
can probably come up with something nicer:

<s:graphicImage value="#">
  <s:transformImageSize max-width="80"
max-height="80"
maintainRatio="true"/>
</s:graphicImage>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the
administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atl
assian.com/software/jira

        
_______________________________________________
jbossseam-issues mailing list
jbossseam-issueslists.jboss.org
https://lists.jboss.org/mailman/listinfo/jbossseam-issu
es

Updated: (JBSEAM-1123) Constrain width or height for s:graphicImage
country flaguser name
United States
2007-03-29 17:14:57
     [ http://jira.jboss.com/jira/browse/JBSEAM-1123?page=all
]

Pete Muir updated JBSEAM-1123:
------------------------------

    Fix Version/s: 1.3.0.BETA1

How about

<s:constrainImageHeight max="100"
min="50" />
<s:constrainImageWidth max="" min=""
/>
<s:constrainImageRatio maintainOriginal="true"
/>

e.g

The problem here is that some transforms just aren't
possible e.g. if you had a image 40x40 in the above example,
you could never scale it to the dimensions specified above
and maintain the aspect ratio.  As the idea is that you
*don't* know the image size... I suppose we need some sort
of defined precedence system e.g.

<s:constrainImageHeight min="200"
precedence="low" />
<s:constrainImageWidth max="40"
precedence="high" />
<s:constrainImageRatio maintainOriginal="true"
precedence="required" />

And then the algorithm would try to fulfill all goals, and
drop optional ones if it can't do it.  Log an error and a
facesmessage if it can't meet required goals.

> Constrain width or height for s:graphicImage
> --------------------------------------------
>
>                 Key: JBSEAM-1123
>                 URL: http://
jira.jboss.com/jira/browse/JBSEAM-1123
>             Project: JBoss Seam
>          Issue Type: Feature Request
>          Components: JSF
>    Affects Versions: 1.2.1.GA
>            Reporter: Shane Bryzak
>         Assigned To: Pete Muir
>            Priority: Minor
>             Fix For: 1.3.0.BETA1
>
>
> Pete - It would be nice if s:transformImageSize could
constrain an image by either its width or height.  I have a
scenario where neither the width or height should exceed
80px, yet the ratio should be maintained.  Something along
the lines of this syntax would probably do the job but you
can probably come up with something nicer:
> <s:graphicImage value="#">
>   <s:transformImageSize max-width="80"
max-height="80"
maintainRatio="true"/>
> </s:graphicImage>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the
administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atl
assian.com/software/jira

        
_______________________________________________
jbossseam-issues mailing list
jbossseam-issueslists.jboss.org
https://lists.jboss.org/mailman/listinfo/jbossseam-issu
es

Commented: (JBSEAM-1123) Constrain width or height for s:graphicImag
country flaguser name
United States
2007-03-29 20:58:08
    [ http://jira.jboss.com/jira/browse/JBS
EAM-1123?page=comments#action_12357875 ] 
            
Shane Bryzak commented on JBSEAM-1123:
--------------------------------------

Sounds good to me.

> Constrain width or height for s:graphicImage
> --------------------------------------------
>
>                 Key: JBSEAM-1123
>                 URL: http://
jira.jboss.com/jira/browse/JBSEAM-1123
>             Project: JBoss Seam
>          Issue Type: Feature Request
>          Components: JSF
>    Affects Versions: 1.2.1.GA
>            Reporter: Shane Bryzak
>         Assigned To: Pete Muir
>            Priority: Minor
>             Fix For: 1.3.0.BETA1
>
>
> Pete - It would be nice if s:transformImageSize could
constrain an image by either its width or height.  I have a
scenario where neither the width or height should exceed
80px, yet the ratio should be maintained.  Something along
the lines of this syntax would probably do the job but you
can probably come up with something nicer:
> <s:graphicImage value="#">
>   <s:transformImageSize max-width="80"
max-height="80"
maintainRatio="true"/>
> </s:graphicImage>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the
administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atl
assian.com/software/jira

        
_______________________________________________
jbossseam-issues mailing list
jbossseam-issueslists.jboss.org
https://lists.jboss.org/mailman/listinfo/jbossseam-issu
es

Updated: (JBSEAM-1123) Constrain width or height for s:graphicImage
country flaguser name
United States
2007-05-24 14:19:33
     [ http://jira.jboss.com/jira/browse/JBSEAM-1123?page=all
]

Gavin King updated JBSEAM-1123:
-------------------------------

    Fix Version/s: 1.3.1.BETA1
                       (was: 1.3.0.ALPHA)

> Constrain width or height for s:graphicImage
> --------------------------------------------
>
>                 Key: JBSEAM-1123
>                 URL: http://
jira.jboss.com/jira/browse/JBSEAM-1123
>             Project: JBoss Seam
>          Issue Type: Feature Request
>          Components: JSF
>    Affects Versions: 1.2.1.GA
>            Reporter: Shane Bryzak
>         Assigned To: Pete Muir
>            Priority: Minor
>             Fix For: 1.3.1.BETA1
>
>
> Pete - It would be nice if s:transformImageSize could
constrain an image by either its width or height.  I have a
scenario where neither the width or height should exceed
80px, yet the ratio should be maintained.  Something along
the lines of this syntax would probably do the job but you
can probably come up with something nicer:
> <s:graphicImage value="#">
>   <s:transformImageSize max-width="80"
max-height="80"
maintainRatio="true"/>
> </s:graphicImage>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the
administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atl
assian.com/software/jira

        
_______________________________________________
jbossseam-issues mailing list
jbossseam-issueslists.jboss.org
https://lists.jboss.org/mailman/listinfo/jbossseam-issu
es

Updated: (JBSEAM-1123) Constrain width or height for s:graphicImage
country flaguser name
United States
2007-05-29 23:05:08
     [ http://jira.jboss.com/jira/browse/JBSEAM-1123?page=all
]

Gavin King updated JBSEAM-1123:
-------------------------------

    Fix Version/s:     (was: 1.3.0.BETA1)

> Constrain width or height for s:graphicImage
> --------------------------------------------
>
>                 Key: JBSEAM-1123
>                 URL: http://
jira.jboss.com/jira/browse/JBSEAM-1123
>             Project: JBoss Seam
>          Issue Type: Feature Request
>          Components: JSF
>    Affects Versions: 1.2.1.GA
>            Reporter: Shane Bryzak
>         Assigned To: Pete Muir
>            Priority: Minor
>
> Pete - It would be nice if s:transformImageSize could
constrain an image by either its width or height.  I have a
scenario where neither the width or height should exceed
80px, yet the ratio should be maintained.  Something along
the lines of this syntax would probably do the job but you
can probably come up with something nicer:
> <s:graphicImage value="#">
>   <s:transformImageSize max-width="80"
max-height="80"
maintainRatio="true"/>
> </s:graphicImage>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the
administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atl
assian.com/software/jira

        
_______________________________________________
jbossseam-issues mailing list
jbossseam-issueslists.jboss.org
https://lists.jboss.org/mailman/listinfo/jbossseam-issu
es

[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )