[opencms-dev] getting height and width of images
daniel.wiesner at av-studio.de
Thu Oct 20 09:11:50 CEST 2005
Thank You Alexander,
Thank You thats exactly what I looked for.
hopefully at least the name of the property and the syntax (w:150,h:150)
will not change. I have to use this feature before 6.2 because imageopps
from metamesh has problems in the 6_0_2 branch (the loader returns a
wrong content type).
Alexander Kandzior wrote:
> 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,
> Alexander Kandzior
> 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
More information about the opencms-dev