Hi,
does anybody know if there is some mechanism to have a sort of control on
uploaded image sizes?
I mean, l would like that when I upload a new image for a product ofbiz
automatically generates the small, medium, large and detailed images scaling
the uploaded image with a fixed dimension regardless of the original one.

Many thanks,
Bruno


Bruni, dont know ofBiz but start by playing with something like this...

           public Image getScaledImage(ImageIcon myLoadedImageIcon)
           {
               Image myImage = myLoadedImageIcon.getImage();
Image scaledImage = myImage.getScaledInstance(height , height, Image.SCALE_SMOOTH);

               return scaledImage;
           }

Then googling on AWT images will probably get you going...

---------------------------------------------------------------------------
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---------------------------------------------------------------------------

Reply via email to