W3C home > Mailing lists > Public > xproc-dev@w3.org > April 2014

Re: Image dimensions?

From: Romain Deltour <rdeltour@gmail.com>
Date: Tue, 29 Apr 2014 16:20:48 +0200
Message-Id: <24F0C38F-CBB4-414D-8E60-F28EFC55035B@gmail.com>
To: XProc Dev <xproc-dev@w3.org>
We do this by registering the following extension function to Saxon:

https://github.com/daisy/pipeline-modules-common/blob/master/image-utils/src/main/java/org/daisy/saxon/functions/image/ImageDimensions.java

Romain.

On 29 avr. 2014, at 16:08, Erik Siegel <erik@xatapult.nl> wrote:

> Hi all,
>  
> Is there any way to find the dimensions of an image file from inside an XProc pipeline?
>  
> So, for instance, I have a path to a jpg file in a variable. I want to know its dimensions in pixels (or whatever). Is there a trick or extension that does this?
>  
> Regards,
> Erik Siegel
Received on Tuesday, 29 April 2014 14:21:19 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:12 UTC