My application need to display the images which are stored in local folder as files. The image display size is predefined. So, if suppose my actual image size is bigger, then it should resize on fly.
Is there any way in servoy or better any plugin available?. Pls suggest. Thanks.
place an label and set the image url, like this:
elements.myImageLabel.setImageURL(‘file://c:/temp/myimage.gif’)
use media options property to specify the scaling you want
Jan Blok:
use media options property to specify the scaling you want
I think Shaikna means if Servoy can resize and/or scale images from within Servoy by pre-setting the Width and Hight (parameters) using standard or current methods or use another plugin wich could do the job?
I would like to know too because a customer wants to know if our solution automaticaly can resize or scale images when they are to big for the CMS we are planning to set up.
Hi Jan,
1)
I used setImageURL to a label in the single record form.. it works perfectly. But, I can’t apply the same logic for multi-record form, because the label name is the same for all records. So, how to solve my on fly resize problem?.
Just to recall the requirement: I have images stored as files in local folder and the corresponding filename is stored in a field in the database. I am displaying the records including the image in a label in form, list views etc. Since, the image size is too big compared to the display size, it is not displaying properly. So, on the fly I want it to be resized.
And about getThumbnailJPGImage(), I don’t quite understand. It is basically to extract the image from an icon. Am I correct?. How it can be applied to solve my problem?
what you could do is to store a thumbnail in de database:
-add a media field called ‘thumb’ to your table
-show the image with setImageURL on a label in record view like: