Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 2 of 2

Thread: Image sizes, cropping

  1. #1
    MTuttle is offline Junior Member
    Join Date
    Oct 2012
    Posts
    26

    Default Image sizes, cropping

    Ok, I was wondering if there is a way to either add a new image size to the admin panel or if it's possible to call the large image and specify the size I'd like? for instance, is it possible to add a width and height to the code below?

    Code:
    <xsl:value-of select="aspdnsf:LookupEntityImage(EntityID, 'Category', 'medium', 0, '')" disable-output-escaping="yes" />
    When I build Wordpress sites, I can add something like this to the functions.php to create a new image size.

    Code:
    add_image_size( 'testi-thumbnail', 120, 120, true ); // Testimonial Thumbnail
    Is this possible with ASP?

  2. #2
    BFG 9000 is offline Senior Member
    Join Date
    Oct 2006
    Location
    South UK
    Posts
    882

    Default

    You can use aspdnsf:ImageUrl instead of aspdnsf:LookupEntityImage to get just the path to the image - then you can write your own image tag & specify dimensions.


    TTFN

    BFG