[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
Nick Michael
tel 2-9032
cell 082-508-1950


-----Original Message-----
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



import org.opencms.loader.CmsImageScaler;

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.

Best Regards,
Alex.

Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com

 

> -----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
http://mail.opencms.org/mailman/listinfo/opencms-dev

__________________________________________________________________________________________________________________________________

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...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20051020/02f1ec36/attachment.htm>


More information about the opencms-dev mailing list