getThumbnailJPGImage

Servoy Help Navigator suggests that thumbnailing only works in record view. Does this permanently exclude list view? I am about to start work on a solution which requires thumbnails in both record AND list view. Is there any way to retrieve thumbnails into a field which can then be viewed in list view?

Any help appreciated.

Bevil

I think, creating the thumbnail is only possible in form-view.
Not viewing it!

Thanks for the reply Harjo

I’m confused though. If I get a form to get a thumbnail from pictures in a folder on the hard disk (or from a blob) - as a one off part of adding pictures to this folder, is it then possible to view (and print) those thumbnail pictures in record AND list view???

This is my understanding and what I want to do:

Servoy client can add a picture to a record in a form called artwork. Table “artwork” has a relationship with table “pictures” so that a particular artwork can have several pictures attached to it. Since some of these pictures are going to be big (~ 5MB), and since it is to be accessed across a broadband network, I want to retrieve and show thumbnails of each jpeg rather than the original file. As I understand the Servoy Help viewer, these thumbnails are only accessible in record view (which I assume means that they are not accessible in list view). I need to be able to print pictures in list view, is there any way to do this?

Thanks

Bevil

Hi Bevil,

Servoy Developer
Version R2 2.2rc5-build 323
Java version 1.4.2-38 (Mac OS X)

Have you tried to do this ?

What version are you on ?

There is a Servoy example solution called: ‘photo_gallery’ which demonstrates the creation of a thumbnail from a blob field and you can create a list view of these records and view and print them too.

Is this what you wish to do or am I misunderstanding ?

Cheers
Harry

Yes, thunder, you can print thumbails in list-view

You have to use: getThumbnailImage once! By putting the BIG image in a blob, create a thumbnail just once and put in an other blob.
Than you can use this blob everywhere you want!.

Hope this helps.

Hi Harry and thanks again Harjo, I am going to try to do it that way (although I’d like to keep the images NOT in blobs but rather on the filesystem (at least the big ones))

Harry, these are my stats:
Servoy Developer
Version R2 2.2rc5-build 323
Java version 1.4.2-38 (Mac OS X)
Mac OS X 10.3.9
apparently the same as you - what difference does it make though? have they recently changed something to do with images?

I haven’t yet actually tried to do it, I just wanted to be clear about which was the best way before starting (I’m working on it now though).

I’d be very grateful to know where the photo_gallery example is.. I’ve just checked the developer site and sat through “using images in your solutions”..

Thanks

Bevil

Hi Bevil,

Thunder:
I’d be very grateful to know where the photo_gallery example is..

It is inside your Servoy folder in Solutions/Projects…

Hi Bevil,

If it is not in the Solutions folder as Christian mentioned then give me a shout back channel and I’ll mail it to you

Cheers
Harry

haha, you’d think I might have thought to look for it locally… Never been in that examples folder is my excuse… :)

Thanks guys