devices for image tag

  • As the last version now supports devices settings for all tags I have tried them on the image tags to force Android to load the full resolution.

    I found that this works fine.

    <image type="CUBE" multires="true" tilesize="507" progressive="false">

    <level devices="desktop|android" tiledimagewidth="2789" tiledimageheight="2789">
    <cube url="panos/elmelunde.tiles/l3_%s_%0v%0h.jpg" />
    </level>
    <level devices="desktop|android" tiledimagewidth="1395" tiledimageheight="1395">
    <cube url="panos/elmelunde.tiles/l2_%s_%0v%0h.jpg" />
    </level>
    <level devices="desktop|android" tiledimagewidth="698" tiledimageheight="698">
    <cube url="panos/elmelunde.tiles/l1_%s_%0v%0h.jpg" />
    </level>
    <mobile devices="iphone" >
    <cube url="panos/elmelunde.tiles/mobile_%s.jpg" />
    </mobile>
    <tablet devices="iPad" >
    <cube url="panos/elmelunde.tiles/tablet_%s.jpg" />
    </tablet>
    </image>

    Also this works.

    <image type="CUBE" multires="true" tilesize="507" progressive="false">

    <level tiledimagewidth="2789" tiledimageheight="2789">
    <cube url="panos/elmelunde.tiles/l3_%s_%0v%0h.jpg" />
    </level>
    <level tiledimagewidth="1395" tiledimageheight="1395">
    <cube url="panos/elmelunde.tiles/l2_%s_%0v%0h.jpg" />
    </level>
    <level tiledimagewidth="698" tiledimageheight="698">
    <cube url="panos/elmelunde.tiles/l1_%s_%0v%0h.jpg" />
    </level>
    <mobile devices="iphone" >
    <cube url="panos/elmelunde.tiles/mobile_%s.jpg" />
    </mobile>
    <tablet devices="iPad" >
    <cube url="panos/elmelunde.tiles/tablet_%s.jpg" />
    </tablet>
    </image>

    But if I just put the devices="desktop|android" tags in the levels tags, my Android phone loads the tablet images or maybe it is just the mobile ones.

    Problem is what about iPhone 3 and 4. What happens if I use the devices="iphone" on the mobile images. What will iPhone 4 use.
    Without any tags it should load the tablet images.

    Hans

  • Hi,

    the selection of the right image for the devices works in that way:

    on iPhone3 / iPod touch 2/3:

    1. look for <mobile> images and if available use them
    2. when not available look for a multires <level> with a size smaller (or equal) than 512x512
    3. still no image => error message


    on iPhone4 / iPad / Android:

    1. look for <tablet> images and if available use them
    2. when not available look for <mobile> images and if available use them
    3. when not available look for a multires <level> with a size smaller (or equal) than 1100x1100
    4. still no image => error message


    best regards,
    Klaus

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!