[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Image size with XSL?

Subject: Re: Image size with XSL?
From: "Mark Wilson mark@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 19 Dec 2016 07:20:27 -0000
Re:  Image size with XSL?
Thanks. Nice to know the problem is not sully and has received attention.
Mark

On 12/18/2016 10:03 PM, Liam R. E. Quin liam@xxxxxx wrote:
On Sun, 2016-12-18 at 19:54 +0000, Mark Wilson mark@xxxxxxxxxxxx wrote:
[...] Is there a way to obtain the height or width of a
jpeg
image from the file itself (image.jpg, for instance) using XSLT?
Yes. I've done this for JPEG and GIF and maybe some others. It relies
on XSLT 2 or later and the ability to access codepoints, as John Lumley
mentioned I use saxon:base64Binary-to-octets() and file:read-binay()

If I get permission from the people I wrote it for I'll happily share
what I have. But looks like there are others around too.

This would be a good candidate for EXPATH or EXSLT...

Liam

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.