Link to home
Start Free TrialLog in
Avatar of shuboarder
shuboarderFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Automatically resize jpgs in rich text fields

Hello,

I need a formula or script that will automatically resize an image when it is pasted into a rich text field.
Is this possible? and also is it possible to enable only images in rich text, i.e no attachments or text etc.

Thanks,
Avatar of NormCox
NormCox
Flag of United States of America image

I am afraid that I am not smart enough for the first part, but in the second, if you are using version 6, you can make the variable a rich text lite type. Then you can specify what can be placed. You make the specifications on the control tab of the field properties.
Here you'll find an excellent example of an agent that can resize, rotate, and otherwise manipulate JPEG image files (making use of LS2J):

http://www.nsftools.com/tips/NotesTips.htm#ls2jexamples


Hope this'll help you,

Marko
Avatar of shuboarder

ASKER

Is Java the only way this can be done?

Perhaps a formula could be used to restrict the size of a record?

Basically I don't want people to put 3.5MB Photos into the database. I want them all to be 300 pixels in width by their proportional height
ASKER CERTIFIED SOLUTION
Avatar of Bozzie4
Bozzie4
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial