You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Eric DE MAULDE <er...@free.fr> on 2008/10/23 14:53:28 UTC

Re: Automatically image resizing

Hi,

Is there a building solution about this fonctionality ?
A 1st subject from 2006 : 
http://www.nabble.com/Multiple-images-and-thumbnail-images-td4449827.html#a4451937
Multiple images and thumbnail images 

I havn't seen anything in Jira issue
So, could I create a new feature issue ?

Thanks

Eric



Bruno Busco wrote:
> 
> Johnny,
> thank you for your hint.
> 
> -Bruno
> 
> 2008/7/27 Johnny Kewl <jo...@kewlstuff.co.za>
> 
>>
>>
>>
>>  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
>> ---------------------------------------------------------------------------
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Automatically-image-resizing-tp18677520p20130304.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Automatically image resizing

Posted by Bruno Busco <br...@gmail.com>.
Moving to the DEV ML...

Eric, May be time has came to open the issue !
A possible design could be:
Images are uploaded and stored in the original format.
Image size to be displayed are somehow coded in the request.
When the request is processed the image is resized.
A cache mechanism ensures that already used resized images are stored
to be available without requesting additional CPU power.

My two cents,
-Bruno

2008/10/24 Jacques Le Roux <ja...@les7arts.com>:
> Eric,
>
> I don't think there is currently any solutions in OFBIz.
> Please open a Jira issue only if you have a working solution, ie a patch. If
> you use tools with a licence needing notices let us know.
> BTW about this thread, I apologize to Rohit as I should not have been so
> rude since it was my duty to take care of licence issues and not to blame
> other on that.
> So Rohit, if you still have your solution at hand, please open a Jira issue
> and I will take care of it.
>
> Jacques
>
> From: "Eric DE MAULDE" <er...@free.fr>
>>
>> Hi,
>>
>> Is there a building solution about this fonctionality ?
>> A 1st subject from 2006 :
>>
>> http://www.nabble.com/Multiple-images-and-thumbnail-images-td4449827.html#a4451937
>> Multiple images and thumbnail images
>>
>> I havn't seen anything in Jira issue
>> So, could I create a new feature issue ?
>>
>> Thanks
>>
>> Eric
>>
>>
>>
>> Bruno Busco wrote:
>>>
>>> Johnny,
>>> thank you for your hint.
>>>
>>> -Bruno
>>>
>>> 2008/7/27 Johnny Kewl <jo...@kewlstuff.co.za>
>>>
>>>>
>>>>
>>>>
>>>>  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
>>>>
>>>> ---------------------------------------------------------------------------
>>>>
>>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Automatically-image-resizing-tp18677520p20130304.html
>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>
>
>

Re: Automatically image resizing

Posted by Jacques Le Roux <ja...@les7arts.com>.
Eric,

I don't think there is currently any solutions in OFBIz.
Please open a Jira issue only if you have a working solution, ie a patch. If you use tools with a licence needing notices let us 
know.
BTW about this thread, I apologize to Rohit as I should not have been so rude since it was my duty to take care of licence issues 
and not to blame other on that.
So Rohit, if you still have your solution at hand, please open a Jira issue and I will take care of it.

Jacques

From: "Eric DE MAULDE" <er...@free.fr>
>
> Hi,
>
> Is there a building solution about this fonctionality ?
> A 1st subject from 2006 :
> http://www.nabble.com/Multiple-images-and-thumbnail-images-td4449827.html#a4451937
> Multiple images and thumbnail images
>
> I havn't seen anything in Jira issue
> So, could I create a new feature issue ?
>
> Thanks
>
> Eric
>
>
>
> Bruno Busco wrote:
>>
>> Johnny,
>> thank you for your hint.
>>
>> -Bruno
>>
>> 2008/7/27 Johnny Kewl <jo...@kewlstuff.co.za>
>>
>>>
>>>
>>>
>>>  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
>>> ---------------------------------------------------------------------------
>>>
>>>
>>
>>
>
> -- 
> View this message in context: http://www.nabble.com/Automatically-image-resizing-tp18677520p20130304.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>