docbook-apps

  • 1.  mediaobject, image with two sizes?

    Posted 01-12-2011 15:42

    Input, mediaobject containing imageobject, a jpg graphic.
    I'd like (if it's possible) to have a 'moderate' size image
    that fits the screen, say 800x600.
    Then, at user action to 'expand' that to full size, say 2000x1500 or
    something greater than screen size.

    Is this possible please, with scaling or some such?





    --

    regards

    --
    Dave Pawson
    XSLT XSL-FO FAQ.
    http://www.dpawson.co.uk



  • 2.  RE: [docbook-apps] mediaobject, image with two sizes?

    Posted 01-12-2011 16:52
    Hello,

    > Input, mediaobject containing imageobject, a jpg graphic.
    > I'd like (if it's possible) to have a 'moderate' size image
    > that fits the screen, say 800x600.
    > Then, at user action to 'expand' that to full size, say 2000x1500 or
    > something greater than screen size.

    I'd suggest keeping two versions of the image.
    The larger can be displayed:
    1) using the basic URL link (in the same/new tab/window)
    2) as overlay using lightbox javascript libraries
    http://leandrovieira.com/projects/jquery/lightbox/
    3) as replacement of the original image (java script manipulation of the
    original HTML code)
    4) ...

    All this requires customizations of the process.image template.

    Regards,

    Jan




  • 3.  Re: [docbook-apps] mediaobject, image with two sizes?

    Posted 01-12-2011 20:37
    Perhaps you can use an SVG (scalable vector graphics) image in that location?


    On Wed, Jan 12, 2011 at 7:42 AM, Dave Pawson <davep@dpawson.co.uk> wrote:
    >
    > Input, mediaobject containing imageobject, a jpg graphic.
    > I'd like (if it's possible) to have a 'moderate' size image
    > that fits the screen, say 800x600.
    > Then, at user action to 'expand' that to full size, say 2000x1500 or
    > something greater than screen size.
    >
    > Is this possible please, with scaling or some such?
    >
    >
    >
    >
    >
    > --
    >
    > regards
    >
    > --
    > Dave Pawson
    > XSLT XSL-FO FAQ.
    > http://www.dpawson.co.uk
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >
    >



  • 4.  Re: [docbook-apps] mediaobject, image with two sizes?

    Posted 01-12-2011 21:37
    SVG won't work for HTML output because of lack of browser support.

    http://caniuse.com/

    On 1/12/2011 2:37 PM, Randall K. Harp wrote:
    > Perhaps you can use an SVG (scalable vector graphics) image in that location?
    >
    >
    > On Wed, Jan 12, 2011 at 7:42 AM, Dave Pawson<davep@dpawson.co.uk> wrote:
    >>
    >> Input, mediaobject containing imageobject, a jpg graphic.
    >> I'd like (if it's possible) to have a 'moderate' size image
    >> that fits the screen, say 800x600.
    >> Then, at user action to 'expand' that to full size, say 2000x1500 or
    >> something greater than screen size.
    >>
    >> Is this possible please, with scaling or some such?
    >>
    >>
    >>
    >>
    >>
    >> --
    >>
    >> regards
    >>
    >> --
    >> Dave Pawson
    >> XSLT XSL-FO FAQ.
    >> http://www.dpawson.co.uk
    >>
    >> ---------------------------------------------------------------------
    >> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    >> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >>
    >>
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >

    --

    ------------

    Steve Johnson, Senior Content Developer
    Caringo
    stevej@caringo.com