xsl-list
[Top] [All Lists]

Re: [xsl] Image size with XSL?

2016-12-19 01:20:34
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(_at_)w3(_dot_)org wrote:
On Sun, 2016-12-18 at 19:54 +0000, Mark Wilson mark(_at_)knihtisk(_dot_)org 
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


--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>