Page 1 of 1

How can I create thumbnail from existing large image

Posted: Mon May 19, 2014 1:10 pm
by shingo
Please give me advice if you have any ideas to do the following within LongRange.

- Create thumbnail from an already existing large image on IFS
- Resize the large image to make it smaller when the image is displayed in LongRange

I use the following command when I take and save a picture by LongRange.
As for the existing large image, I am looking for a better idea.

Newimage_Resize_Wdth(600) Newimage_Resize_Hght(450)
Newimage_Thmbnl_Wdth(200) Newimage_Thmbnl_Hght(150)

Re: How can I create thumbnail from existing large image

Posted: Mon May 19, 2014 2:23 pm
by Mark_Dale
Probably the simplest way to resize the existing images is to resize them all, outside of Longrange.

If you have a Windows 7 PC, you can use Photo Gallery 2012. That can select a group of images and produce a resized copy (thumbnail).

Or there are other free and paid products you could use.

Re: How can I create thumbnail from existing large image

Posted: Wed May 21, 2014 6:17 pm
by shingo
Thank you for your advice.

But, I focus on a way within LongRange this time.
In the same way of resizing images when uploading, does LongRange currently have like the following command?
- Resize the large image to make it smaller when the image is displayed in LongRange

Re: How can I create thumbnail from existing large image

Posted: Wed May 21, 2014 7:46 pm
by MarkDuignan
Yes it does.
I assume you are programming in RPG.

See http://www.longrangemobile.com/docs/LRP ... /image.htm

For uploading – when you capture the image on a mobile device and upload it to your server you can
• control the size of the image captured on the mobile device.
• request that both large and small (thumbnail) images are captured automatically.
• allow the image to be annotated (drawn on) before it is uploaded.
Look at the NewImage.xxxxxx properties and the NewImage.Thumbnail.xxxxxxx propertries and the Annotation.xxxxxxxxx properties.

For downloading – when you are displaying an image from the server on a client device you can also control the size and the way the image is resized.
Use the ImageSize.xxxxxxxxxx properties and the AutoScale property.

Watch out for sending very large images to the client and displaying them as small images.
They may look small but the large images are sent and they consume resources on the client.
For commonly used images investigate using the resource property and folder.
Also read the notes at the end of the properties.