> The image plugin also accepts a quality parameter
that controls the
> compression quality when encoding jpeg images. The default value of this
> parameter (i.e. when not specified in the URL) is configurable. I
> propose we use 0.3 by default, 1 representing the best quality.
>
> (B) Add the ability to limit the image dimensions (preserving aspect
> ratio) when the image width and/or height are not specified in the image
> syntax (or when they are not using pixel unit). The width and height
> limit will be configurable and -1 by default (i.e. no limitation). For
> instance:
>
> image:logo.jpg
>
> will be linked to
>
> /xwiki/bin/download/Spage/Page/logo.jpg?width=1024
>
> when width limit is 1024, and to
>
>
/xwiki/bin/download/Spage/Page/logo.jpg?width=1024&height=768&keepAspectRatio=true
>
> when width limit is 1024 and height limit is 768. Note that in this case
> the image aspect ratio is preserved. The image is resized to best fit
> the limits. If the user want to bypass the limit he has to specify the
> image width/height in the image syntax.
>
> I'm +1 for both (A) and (B). WDYT?
 +1 B
 A I need to hear more about how it will be implemented, from what i
 read it doesn't look right. 
 As Thomas said, it will be implemented in a XWiki
specific
 implementation of WikiModel (
http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-rendering/xwik…
 ). We're going to add a method to get the image URL based on: document
 reference, attachment file name and image parameters. The implementation
 looks for the width, height and style parameters and tries to extract
 image width/height from them. If it succeeds then it adds this
 information to the query string of the attachment download URL. When the
 image is requested by the browser the image plugin is called and it uses
 the width and height request parameters (if specified) to scale the
 image attachment. The image size is never increased. The image plugin
 uses a component for image processing (decode, scale, encode). The
 default implementation of this component uses javax.imageio and java.awt
 classes for image processing.
 Thanks for your feedback,
 Marius
  Caleb
> Thanks,
> Marius
>
> [1]
>
http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/…
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> 
http://lists.xwiki.org/mailman/listinfo/users
>
 _______________________________________________
 users mailing list
 users(a)xwiki.org
 
http://lists.xwiki.org/mailman/listinfo/users 
_______________________________________________
 users mailing list
 users(a)xwiki.org
 
http://lists.xwiki.org/mailman/listinfo/users
   _______________________________________________
 users mailing list
 users(a)xwiki.org