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  (Zatvorena) (Mono Support )

12441 put(a) pogledan, 5 odgovor(a) 30.3.2012. 13:17:00Kreirao(la) rule128
rule128

rule128

30.3.2012. 13:17:00
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
Ovaj sadržaj još nije ocijenjen. 
265 Reputacija 29 Ukupno objava
kpeulic

kpeulic

2.4.2012. 10:56:03
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
Ovaj sadržaj još nije ocijenjen. 
1849 Reputacija 181 Ukupno objava
shawndg

shawndg

22.4.2012. 12:13:58
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.

Ovaj sadržaj još nije ocijenjen. 
1871 Reputacija 252 Ukupno objava
Abigail111

Abigail111

25.9.2013. 7:29:27
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.
Ovaj sadržaj još nije ocijenjen. 
20 Reputacija 3 Ukupno objava
khorvat

khorvat

25.9.2013. 8:37:46
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
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava