Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
resize / max size
bebzif
Dears,
I would like to resize an image ONLY if it's bigger than a given size. I tried many options in the "Image Size" task of MediaBin, but it always stretch my 72x72 image to 100x100 for example. Is is possible to do it ? Is there some script language available to create custom tasks ?
Thx in advance,
Bertrand
Find more posts tagged with
Comments
lyman
This is definitely "use at your own risk", "undocumented", "subject to change", etc. but works now...
You may have noticed that the MediaBin server doesn't make images bigger when generating thumbnails. If they are bigger than a certain size, they are downsampled, but they are never upsampled. This is acocmplished via an unexposed parameter to the image sizer primitive.
You will need to set up a task that does everything you want (possibly including runtime parameters), and export it to XML. Then you can hand edit the XML and reinsert.
When you edit the XML you will be adding a second parameter within the <PARAMLIST>...</PARAMLIST> (there's one in there already):
<PARAM>
<ID>{06A9DAF0-616D-11d3-81F2-00104B2A9F09}</ID>
<VERSION>1.0</VERSION>
<VALUE>
<BOOLEAN>true</BOOLEAN>
</VALUE>
</PARAM>
Please be sure to double check that your task is well-formed and valid XML before attempting to import back into MediaBin.
Hope this helps!
Lyman Hurd
MediaBin Server Team
Migrateduser
Interesting information...
Thanks for sharing!
Folco