cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakub Kaniewski <j...@egonet.pl>
Subject Problem with ImageReader (migration 2.1.5 -> 2.1.7)
Date Fri, 22 Apr 2005 21:38:49 GMT
I am site using ImageReader on my site to reduce my images size to have 
width 150px. Sometimes the image width is smaller than 150px, in this 
case I want to leave original width. Before migration to Cocoon 2.1.7 I 
was setting simply allow-englare to no and everything was OK. After 
migration the migration the allow-englare attribute looks like it 
doesn't work. This thing can be easily tested by editing sitemap.xmap of 
the ImageReader sample (sample/simagereader) and adding this match

<map:match pattern="test-*.jpg">
    <map:read type="image" src="logo.jpg">
        <map:parameter name="width" value="{1}"/>
        <map:parameter name="allow-enlarging" value="no"/>
    </map:read>
</map:match>

And for example we try test-300.jpg (the sample image size is 165x165)

In cocoon 2.1.5 the image is not scaled up, in 2.1.7 is. Any ideas?

J.K.  

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message