[opencms-dev] getting height and width of images
Alexander Kandzior
alex at opencms.org
Thu Oct 20 09:02:46 CEST 2005
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
>
>
More information about the opencms-dev
mailing list