[opencms-dev] getting height and width of images
Michael, Nick N
Nick.Michael at standardbank.co.za
Thu Oct 20 10:28:51 CEST 2005
Alex I am finding this message very interesting
One question what do you assign to :
String propValue =
Is it the filename of the image or what ?
With kind regards
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org]On Behalf Of Alexander Kandzior
Sent: Thursday, October 20, 2005 09:03
To: 'The OpenCms mailing list'
Subject: RE: [opencms-dev] getting height and width of images
String propValue = // obtain "image.size" String value from property somehow
CmsImageScaler scaler = new CmsImageScaler(propValue);
int height = scaler.getHeight();
int width = scaler.getWidth();
Please note that this API is still pre-eliminary and subject to change until
the public release of 6.2.0.
Alkacon Software - The OpenCms Experts
> -----Original Message-----
> From: opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Wiesner, Daniel
> Sent: Thursday, October 20, 2005 8:44 AM
> To: The OpenCms mailing list
> Subject: [opencms-dev] getting height and width of images
> Since the new image scaling feature is in dev_6_0_1 a have a
> property image.size and resources of image type have values
> like that: "w:150,h:150".
> Is there an api call the get the two values as integers or
> have I to use string opps to get them self?
> regards Daniel
> This mail is send to you from the opencms-dev mailing list To
> change your list options, or to unsubscribe from the list,
> please visit http://mail.opencms.org/mailman/listinfo/opencms-dev
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
Standard Bank Disclaimer and Confidentiality Note
This e-mail, its attachments and any rights attaching hereto are, unless the context clearly indicates otherwise, the property of Standard Bank Group Limited
and/or its subsidiaries ("the Group"). It is confidential, private and intended for the addressee only. Should you not be the addressee and receive this e-mail by
mistake, kindly notify the sender, and delete this e-mail, immediately and do not disclose or use same in any manner whatsoever. Views and opinions
expressed in this e-mail are those of the sender unless clearly stated as those of the Group. The Group accepts no liability whatsoever for any loss or
damages whatsoever and howsoever incurred, or suffered, resulting, or arising, from the use of this email or its attachments. The Group does not warrant the integrity
of this e-mail nor that it is free of errors, viruses, interception or interference. Licensed divisions of the Standard Bank Group are authorised financial services providers
in terms of the Financial Advisory and Intermediary Services Act, No 37 of 2002 (FAIS).
For information about the Standard Bank Group Limited visit our website http://www.standardbank.co.za
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the opencms-dev