MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Load images with RadEditor  (Closed) (Mono Support )

Viewed 7700 time(s), 5 post(s) 3/30/2012 1:17:00 PMby rule128
rule128

rule128

3/30/2012 1:17:00 PM
Hello

I would like to limit the size of a picture that is added to a blog. If I insert a big picture it will ruin the design( the control is bigger then the page).
I see that the RadEditor is used when a image is inserted. I would like to verify the size of the image when I press the insert button. Unfortunately I can not find the event that is triggered on insert.
What do I have to override?

Is this the good solution or should the validation be done in another way?

Regards
This content has not been rated yet. 
265 Reputation 29 Total posts
kpeulic

kpeulic

4/2/2012 10:56:03 AM
Hi,

You can resize the image on the "Image Manager" by choosing "Properties" tab and changing values for "Width" and "Hight". Please check the attached screen shot for more details.

Please let me know is this was helpful for you.

Regards
This content has not been rated yet. 
1849 Reputation 181 Total posts
shawndg

shawndg

4/22/2012 12:13:58 PM
Hi Rule,
I think what you want to do is alot like the image cropping I wrote which automaticly crops a image and limits its size upon uploading..
Although yours would only apply cropping if the image is two large.. hell you can even just put a message output saying... hay dont do that.. resize your image.. upon upload.

I just give you a quick overview of the system although mine works just like facebook using jcrop..

I use cute ajax uploader to handle my upload but you can use standard dot net I am sure.
After the upload, I then display the file to the user with a jcrop interface,
The interface then allows the user to crop it using jcrop and then it post back to the server the cords they selected in jcrop.

I then process the image myself using asp.net image handling code.
Asp.net has some nice stream writers and can easily be combined with asp.net imaging encoding to re-size a image.
A quick google search will show a lot of examples.

It was a little bit of work but well worth the control...
Im guessing though, when working with MonoX blogs, if you wanted to use your own uploader you would also have to make it work and store files just like the native MonoX uploaded.. for more help on that one you may want to ask the MonoX staff.

But my guess is for this to work, you are going to have to write your own up-loader and image handler.

This content has not been rated yet. 
1871 Reputation 252 Total posts
Abigail111

Abigail111

9/25/2013 7:29:27 AM
Hi there
This topic is not new,but after reading kpeulic's answer,i learn something of resizing image.
For me ,i often resize the image using an image online zoom section,which can zoom in and out images.
But it turns out to be complicated for me.So ,that really help me a lot.
This content has not been rated yet. 
20 Reputation 3 Total posts
khorvat

khorvat

9/25/2013 8:37:46 AM
Yes there are many ways of resizing images, these are just few of them. If you have any more questions or comments please open a new topic.

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts