[opencms] RE: [opencms-dev] getting height and width of images
Jorge Gonzalez
informatico at hotelparadisepark.com
Thu Oct 20 16:29:58 CEST 2005
Will this extensions deal with protected resources / images ?
I'm using httpclient authorized + commons image taglib now, and it's a
little tricky.
Atentamente,
Jorge Gonzalez.
-----Mensaje original-----
De: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org]En nombre de Alexander Kandzior
Enviado el: jueves, 20 de octubre de 2005 9:58
Para: 'The OpenCms mailing list'
Asunto: [opencms] RE: [opencms-dev] getting height and width of images
> 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
>
>
_______________________________________________
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