ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Help with Image Sizing

July 27, 2010 8:06pm

Subscribe [3]
  • #1 / Jul 27, 2010 8:06pm

    vacquah

    355 posts

    I have a site which displays pcitures with a width of 1000px.  Sometimes, the pictures used do not have a width of 1000px.

    I don’t want to stretch any picture which is less than 1000px. For those over 1000px width, they should be resized down to 1000px.  I am using the following codes on my templates:

    {exp:imgsizer:size src="{image}" width="1000" height="400" alt="{title}" remote="on"}

    ( for image sizer )

    and

    {image}


    - how can i change the codes above to (1) not resize any image below 1000px width upwards and ( 2) resize images above 1000px width down to 1000px.

    is there such a thing as max image width and height?

  • #2 / Jul 28, 2010 4:17am

    Studio Meta

    105 posts

    This problem is related to Lumis ImageSizer : http://www.lumis.com/page/imgsizer/

    According to its documentation, there is no way to set up max width/max height

  • #3 / Jul 28, 2010 5:00am

    Steven Grant

    894 posts

  • #4 / Jul 28, 2010 5:12am

    Studio Meta

    105 posts

    NIce Steven, thanks for the link !

  • #5 / Jul 28, 2010 6:06am

    Steven Grant

    894 posts

    No worries - there is a plugin for 1.6.x as well

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases