Create Thumbnail

Stable Version 1.0.0 (OutSystems 11)
Published on 17 November 2020 by 
Created on 17 November 2020

Create Thumbnail

Details
Create a Thumbnail of an Image.
Read More

Create a Thumbnail of an Image, based on input image file, and a max size factor to resize the image.

The extension has two inputs:

- The 'SourceImageBin';

- MaxSize.


The max size is to calculate the thumbnail proportion. 

The calc is based on the follwing formula:


if (ImageOriginal.Width > (ImageOriginal.Width .Height)

{

return new Size(MaxSize,(int)(((double)(ImageOriginal.Width .Height / (double)(ImageOriginal.Width .Width) * MaxSize));

}

else

{

return new Size((int)(((double)(ImageOriginal.Width .Width / (double)(ImageOriginal.Width .Height) * MaxSize), MaxSize);


}

Reviews (0)
Category
User interface, Media
Tags
Support Options
This component is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from Emidio Correia who created this component.
Dependencies
Create Thumbnail has no dependencies.
Requirements
Platform:
11.0.0.200
Database:
All
Stack:
.NET
Component Consumers
No consumers yet.
Weekly Downloads