docbook-apps

  • 1.  Thumbnails?

    Posted 05-07-2021 07:27
    I've a set of photographs of document pages.
    With small text if the page is zoomed to make the text readable
    the main page text is ... too big.

    html output, is it possible to insert the thumbnail with a link to the
    full size image please?

    TiA

    --
    Dave Pawson
    XSLT XSL-FO FAQ.
    Docbook FAQ.



  • 2.  Re: [docbook-apps] Thumbnails?

    Posted 05-07-2021 21:51
    I think you might be looking to set the stylesheet parameter
    link.to.self.for.mediaobject="1".

    http://docbook.sourceforge.net/release/xsl/current/doc/html/link.to.self.for.mediaobject.html

    That produces the image in place scaled per attributes, and also wraps
    the image in a direct link to the image file, which would show it
    unscaled (or full scale) in the browser window.

    Bob Stayton
    bobs@sagehill.net

    On 5/7/2021 12:27 AM, Dave Pawson wrote:
    > I've a set of photographs of document pages.
    > With small text if the page is zoomed to make the text readable
    > the main page text is ... too big.
    >
    > html output, is it possible to insert the thumbnail with a link to the
    > full size image please?
    >
    > TiA
    >



  • 3.  Re: [docbook-apps] Thumbnails?

    Posted 05-08-2021 06:08
    Perfect Bob, thank you.

    regards

    On Fri, 7 May 2021 at 22:51, Bob Stayton <bobs@sagehill.net> wrote:
    >
    > I think you might be looking to set the stylesheet parameter link.to.self.for.mediaobject="1".
    >
    > http://docbook.sourceforge.net/release/xsl/current/doc/html/link.to.self.for.mediaobject.html
    >
    > That produces the image in place scaled per attributes, and also wraps the image in a direct link to the image file, which would show it unscaled (or full scale) in the browser window.
    >
    > Bob Stayton
    > bobs@sagehill.net
    >
    > On 5/7/2021 12:27 AM, Dave Pawson wrote:
    >
    > I've a set of photographs of document pages.
    > With small text if the page is zoomed to make the text readable
    > the main page text is ... too big.
    >
    > html output, is it possible to insert the thumbnail with a link to the
    > full size image please?
    >
    > TiA
    >


    --
    Dave Pawson
    XSLT XSL-FO FAQ.
    Docbook FAQ.



  • 4.  RE: [docbook-apps] Thumbnails?

    Posted 05-12-2021 10:47
    That’s an interesting parameter! Is there a way to apply this to some images, but not all? For example, we don’t want our admonition graphics or our company logo to be clickable in our output, but only the figures.

    Thanks,

    Michel

    Van: Bob Stayton <bobs@sagehill.net>
    Verzonden: vrijdag 7 mei 2021 23:51
    Aan: docbook-apps@lists.oasis-open.org
    Onderwerp: Re: [docbook-apps] Thumbnails?


    I think you might be looking to set the stylesheet parameter link.to.self.for.mediaobject="1".

    http://docbook.sourceforge.net/release/xsl/current/doc/html/link.to.self.for.mediaobject.html

    That produces the image in place scaled per attributes, and also wraps the image in a direct link to the image file, which would show it unscaled (or full scale) in the browser window.

    Bob Stayton

    bobs@sagehill.net<mailto:bobs@sagehill.net>
    On 5/7/2021 12:27 AM, Dave Pawson wrote:

    I've a set of photographs of document pages.

    With small text if the page is zoomed to make the text readable

    the main page text is ... too big.



    html output, is it possible to insert the thumbnail with a link to the

    full size image please?



    TiA





  • 5.  Re: [docbook-apps] Thumbnails?

    Posted 05-12-2021 15:42
    This parameter is applied in the template named "process.image". That
    template is called only from a mediaobject, inlinemediaobject, or
    graphic element in the XML content, so it would not be triggered by
    admonition graphics or other generated icons.  It would apply to
    instances of your logo inserted by any of those elements in your
    content, but not if the stylesheet generates a reference to the image
    directly.

    Bob Stayton
    bobs@sagehill.net

    On 5/12/2021 3:46 AM, Michel van den Burg wrote:
    >
    > That’s an interesting parameter! Is there a way to apply this to some
    > images, but not all? For example, we don’t want our admonition
    > graphics or our company logo to be clickable in our output, but only
    > the figures.
    >
    > Thanks,
    >
    > Michel
    >
    > *Van:*Bob Stayton <bobs@sagehill.net>
    > *Verzonden:* vrijdag 7 mei 2021 23:51
    > *Aan:* docbook-apps@lists.oasis-open.org
    > *Onderwerp:* Re: [docbook-apps] Thumbnails?
    >
    > I think you might be looking to set the stylesheet parameter
    > link.to.self.for.mediaobject="1".
    >
    > http://docbook.sourceforge.net/release/xsl/current/doc/html/link.to.self.for.mediaobject.html
    > <http://docbook.sourceforge.net/release/xsl/current/doc/html/link.to.self.for.mediaobject.html>
    >
    > That produces the image in place scaled per attributes, and also wraps
    > the image in a direct link to the image file, which would show it
    > unscaled (or full scale) in the browser window.
    >
    > Bob Stayton
    > bobs@sagehill.net <mailto:bobs@sagehill.net>
    >
    > On 5/7/2021 12:27 AM, Dave Pawson wrote:
    >
    > I've a set of photographs of document pages.
    >
    > With small text if the page is zoomed to make the text readable
    >
    > the main page text is ... too big.
    >
    > html output, is it possible to insert the thumbnail with a link to the
    >
    > full size image please?
    >
    > TiA
    >