Due to enormous amounts of spam, the forum has been set to read-only mode.



Reply to topic  [ 2 posts ] 
Image max-width 
Author Message

Joined: Mon Jan 08, 2007 12:24 am
Posts: 11
Post Image max-width

Hello,
I want images with a width greater than 500px to be resized to a width of 500px. Can someone tell me if this is possible or how to do that?

<xsl:if test="image1/filename!=''">
<IMG SRC="{image1/filename}"/>
<BR/>
<xsl:call-template name="add-line-breaks">
<xsl:with-param name="string" select="image1/notes"/>
</xsl:call-template>
<BR/>
</xsl:if>


Tue Oct 06, 2009 2:17 am
Profile
Site Admin
User avatar

Joined: Fri Nov 22, 2002 3:52 pm
Posts: 13748
Post Re: Image max-width

HansieNL wrote:
Hello,
I want images with a width greater than 500px to be resized to a width of 500px. Can someone tell me if this is possible or how to do that?

Since the image width is (currently) not available in the xml data file, this is not possible.

_________________
Fredrik Nordbakke
www.fnprg.com


Tue Oct 06, 2009 1:18 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.