Controlling an image size pasted via URL??
Posted: Tue May 16, 2006 2:11 pm
Hi, I am trying to prevent thread assassins in a forum from posting giant images via url.
Is it possible to grab that images size by 'looking at it' when you have the URL?
So I am thinking of disabling the ability to add images and edit HTML in the editor, but have a seperate text input for the URL for the image if they want to add one.
If the above question is possible, the person would think they have added a giant image, but it would be stripped out, and appended with the size attributes added or not at all if the image is huge.
Does that make any sense?
Thanks,
James MacLeod
Is it possible to grab that images size by 'looking at it' when you have the URL?
So I am thinking of disabling the ability to add images and edit HTML in the editor, but have a seperate text input for the URL for the image if they want to add one.
If the above question is possible, the person would think they have added a giant image, but it would be stripped out, and appended with the size attributes added or not at all if the image is huge.
Does that make any sense?
Thanks,
James MacLeod