what happened to application.createThumbnailJPGImage?

I guess it has been deprecated, but I can’t find what to use instead…

Bevil

Have a look at the images plugin.

Hi Nicola

I did. I can’t make it work though. This was my code:

images_to_artwork.temp_image = application.createThumbnailJPGImage(image, 320,260)

Which used to work,

This is my current code:

var vimagefile = plugins.images.getImage(image)
       	var resizedimage = vimagefile.resize(320,260)
	images_to_artwork.temp_image = vresizedimage

But this gives me a

Wrapped java.lang.NullPointerException (/Volumes/Applications/Applications/Servoy/servoy_workspace/art/forms/images.js#221)
at /Volumes/Applications/Applications/Servoy/servoy_workspace/art/forms/images.js:221 (make_image_primary)

Sigh, what am I doing wrong now…

Thanks for any help…

Bevil

Hi Bevil,

what happens on line 221?
Seems like some data is expected, but it isn’t there…

I assume: ‘image’ and ‘temp_image’ are both dataproviders?