[opencms-dev] getting height and width of images
Alexander Kandzior
alex at opencms.org
Thu Oct 20 10:58:23 CEST 2005
> hopefully at least the name of the property and the syntax
> (w:150,h:150) will not change.
Probably not, but no warranties. It's more likley that we do some
refactoring / extension on the API of the CmsImageScaler class.
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 9:12 AM
> To: The OpenCms mailing list
> Subject: Re: [opencms-dev] getting height and width of images
>
> 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).
>
> regards
> Daniel
>
>
>
> 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,
> > 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
> >
>
>
> _______________________________________________
> 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