• hi

    new custodian - 4.0.2

    have created a new image size of 1000x500 for articles

    some of the images are not as big as that, so how do i get it to use 600x400 instead or 500x333 etc
  • 5 Comments sorted by
  • hi mark,

    in your theme folder there is a file theme.xml and inside there are renditions where you can modify it.
    once you have it go to admin - configure - image rendering and click on reload renditions.
  • Hi petr

    ive got the new size working fine

    its just someone has sent a story will a picture that is only 700 x 600px size

    my article shows 1000x500 so nothing shows

    i need to know a way that makes the article show the next size down, 600x400

  • i see. there is no good support but workaround exists:

    {{ capture name="image" }}
    {{ image rendition="big" }}
    <img .../>
    {{ /image}}
    {{ /capture }}

    {{ if ! trim($smarty.capture.image) }}
        {{ capture name="image" }}
        {{ image rendition="small" }}
        <img .../>
        {{ /image }}
        {{ /capture }}
    {{ /if }}

    {{ $smarty.capture.image }}
    Post edited by Petr Jasek at 2012-11-22 11:44:56
  • that works perfect

    i had tried using {{ else }} etc but got nowhere

    that needs to go in the manual
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi Mark,

    > that works perfect
    >
    > i had tried using {{ else }} etc but got nowhere
    >
    > that needs to go in the manual

    I've added a note on this to the 'Working with images' chapter of the
    Newscoop 4.0 Cookbook.

    Of course, the better solution is to tell your photographers to post
    higher resolution images :-)

    Cheers!

    Daniel