Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Task not to resize if dimension is small?
jstephan
Hello All,
How is write a MediaBin task, if the height and width of the image is smaller than what is specified on the MB Task height and width, then it should not re-size the image.
For e.g.: In the MB Task image re-size property is set as HEIGHT: 100 and WIDTH: 100 and if the image is ony HEIGHT: 50 and WIDTH :50 then it should not strech the image. It has to leave that and do the rest of the properties in the MB Task.
Kindly help.
Thanks in Advance.
John
Find more posts tagged with
Comments
Bala_R
Hi john,
I think this can be achieved by customizing the web client asp pages.
Each task is built up of one or more primitives.
Each and every primitives will be applied to the asset object in a loop.
Here during processing 'Image size' primitive(you can check this through primitive ID) , get the image size of the selected asset from the asset object.
Check if image size is greater than 100.If so, apply the primitive else leave it.
Hopes, this will help you for some extent.
Thanks,
Bala R
Migrateduser
There is back door way to do this. Since some of the information is being parsed I attached a text file that contains the necessary steps.
lyman
To add some background as to why this backdoor exists, the situation you described is precisely the logic MediaBin uses in generating preview images. I.e., if an image starts our as 300x300, the "512x512" preview is generated at resolution 300x300 as we only ever downsample.
Because this was an "internal" parameter, it is available via XML import and not via the client task editor UI.
Cheers,
Lyman Hurd